RTK  1.4.0
Reconstruction Toolkit
rtkDrawQuadricImageFilter.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  * http://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 rtkDrawQuadricImageFilter_h
20 #define rtkDrawQuadricImageFilter_h
21 
23 #include "rtkConfiguration.h"
24 
25 namespace rtk
26 {
27 
37 template <class TInputImage, class TOutputImage>
39 public DrawConvexImageFilter< TInputImage, TOutputImage >
40 {
41 public:
47 
51 
53  itkNewMacro(Self);
54 
57 
59  itkGetMacro(Density, ScalarType);
60  itkSetMacro(Density, ScalarType);
62 
64  itkGetConstReferenceMacro(PlaneDirections, std::vector<VectorType>);
65  itkGetConstReferenceMacro(PlanePositions, std::vector<ScalarType>);
67 
69  void AddClipPlane(const VectorType & dir, const ScalarType & pos);
70 
71  itkGetMacro(A, ScalarType);
72  itkSetMacro(A, ScalarType);
73  itkGetMacro(B, ScalarType);
74  itkSetMacro(B, ScalarType);
75  itkGetMacro(C, ScalarType);
76  itkSetMacro(C, ScalarType);
77  itkGetMacro(D, ScalarType);
78  itkSetMacro(D, ScalarType);
79  itkGetMacro(E, ScalarType);
80  itkSetMacro(E, ScalarType);
81  itkGetMacro(F, ScalarType);
82  itkSetMacro(F, ScalarType);
83  itkGetMacro(G, ScalarType);
84  itkSetMacro(G, ScalarType);
85  itkGetMacro(H, ScalarType);
86  itkSetMacro(H, ScalarType);
87  itkGetMacro(I, ScalarType);
88  itkSetMacro(I, ScalarType);
89  itkGetMacro(J, ScalarType);
90  itkSetMacro(J, ScalarType);
91 
92 protected:
94  virtual ~DrawQuadricImageFilter() ITK_OVERRIDE {}
95 
96  void BeforeThreadedGenerateData ( ) ITK_OVERRIDE;
97 
98 private:
99  DrawQuadricImageFilter(const Self&); //purposely not implemented
100  void operator=(const Self&); //purposely not implemented
101 
102  ScalarType m_Density;
103  std::vector<VectorType> m_PlaneDirections;
104  std::vector<ScalarType> m_PlanePositions;
105 
106  ScalarType m_A;
107  ScalarType m_B;
108  ScalarType m_C;
109  ScalarType m_D;
110  ScalarType m_E;
111  ScalarType m_F;
112  ScalarType m_G;
113  ScalarType m_H;
114  ScalarType m_I;
115  ScalarType m_J;
116 };
117 
118 } // end namespace rtk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 #include "rtkDrawQuadricImageFilter.hxx"
122 #endif
123 
124 #endif
itk::SmartPointer< const Self > ConstPointer
std::vector< VectorType > m_PlaneDirections
void AddClipPlane(const VectorType &dir, const ScalarType &pos)
void operator=(const Self &)
Draws a QuadricShape in a 3D image.
ConvexShape::VectorType VectorType
void BeforeThreadedGenerateData() override
ConvexShape::ScalarType ScalarType
DrawConvexImageFilter< TInputImage, TOutputImage > Superclass
std::vector< ScalarType > m_PlanePositions
itk::SmartPointer< Self > Pointer
Draws a rtk::ConvexShape in a 3D image.
#define itkSetMacro(name, type)