ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkDrawEllipsoidImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK Consortium
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18
19#ifndef rtkDrawEllipsoidImageFilter_h
20#define rtkDrawEllipsoidImageFilter_h
21
23#include "rtkConfiguration.h"
24
25namespace rtk
26{
27
37template <class TInputImage, class TOutputImage>
38class ITK_TEMPLATE_EXPORT DrawEllipsoidImageFilter : public DrawConvexImageFilter<TInputImage, TOutputImage>
39{
40public:
41 ITK_DISALLOW_COPY_AND_MOVE(DrawEllipsoidImageFilter);
42
48
53
55 itkNewMacro(Self);
56
58 itkOverrideGetNameOfClassMacro(DrawEllipsoidImageFilter);
59
61 itkGetMacro(Density, ScalarType);
63
65 itkGetConstReferenceMacro(PlaneDirections, std::vector<VectorType>);
66 itkGetConstReferenceMacro(PlanePositions, std::vector<ScalarType>);
67
69 void
70 AddClipPlane(const VectorType & dir, const ScalarType & pos);
71
73 itkGetMacro(Center, PointType);
75
77 itkGetMacro(Axis, VectorType);
79
81 itkGetMacro(Angle, ScalarType);
83
84protected:
86 ~DrawEllipsoidImageFilter() override = default;
87
88 void
90
91private:
93 std::vector<VectorType> m_PlaneDirections;
94 std::vector<ScalarType> m_PlanePositions;
95
99};
100
101} // end namespace rtk
102
103#ifndef ITK_MANUAL_INSTANTIATION
104# include "rtkDrawEllipsoidImageFilter.hxx"
105#endif
106
107#endif
Implements transparent reference counting.
itk::Point< ScalarType, Dimension > PointType
itk::Vector< ScalarType, Dimension > VectorType
DrawConvexImageFilter< TInputImage, TOutputImage > Superclass
void BeforeThreadedGenerateData() override
itk::SmartPointer< const Self > ConstPointer
std::vector< VectorType > m_PlaneDirections
~DrawEllipsoidImageFilter() override=default
void AddClipPlane(const VectorType &dir, const ScalarType &pos)
std::vector< ScalarType > m_PlanePositions
#define itkSetMacro(name, type)