RTK  1.4.0
Reconstruction Toolkit
rtkRayQuadricIntersectionImageFilter.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 rtkRayQuadricIntersectionImageFilter_h
20 #define rtkRayQuadricIntersectionImageFilter_h
21 
23 #include "rtkConfiguration.h"
24 
25 namespace rtk
26 {
27 
37 template <class TInputImage, class TOutputImage>
39 public RayConvexIntersectionImageFilter< TInputImage, TOutputImage >
40 {
41 public:
47 
52 
54  itkNewMacro(Self);
55 
58 
60  itkGetMacro(Density, ScalarType);
61  itkSetMacro(Density, ScalarType);
63 
65  itkGetConstReferenceMacro(PlaneDirections, std::vector<VectorType>);
66  itkGetConstReferenceMacro(PlanePositions, std::vector<ScalarType>);
68 
70  void AddClipPlane(const VectorType & dir, const ScalarType & pos);
71 
73  itkGetMacro(A, ScalarType);
74  itkSetMacro(A, ScalarType);
75  itkGetMacro(B, ScalarType);
76  itkSetMacro(B, ScalarType);
77  itkGetMacro(C, ScalarType);
78  itkSetMacro(C, ScalarType);
79  itkGetMacro(D, ScalarType);
80  itkSetMacro(D, ScalarType);
81  itkGetMacro(E, ScalarType);
82  itkSetMacro(E, ScalarType);
83  itkGetMacro(F, ScalarType);
84  itkSetMacro(F, ScalarType);
85  itkGetMacro(G, ScalarType);
86  itkSetMacro(G, ScalarType);
87  itkGetMacro(H, ScalarType);
88  itkSetMacro(H, ScalarType);
89  itkGetMacro(I, ScalarType);
90  itkSetMacro(I, ScalarType);
91  itkGetMacro(J, ScalarType);
92  itkSetMacro(J, ScalarType);
94 
95 protected:
97  virtual ~RayQuadricIntersectionImageFilter() ITK_OVERRIDE {}
98 
99  void BeforeThreadedGenerateData ( ) ITK_OVERRIDE;
100 
101 private:
102  RayQuadricIntersectionImageFilter(const Self&); //purposely not implemented
103  void operator=(const Self&); //purposely not implemented
104 
105  ScalarType m_Density;
106  std::vector<VectorType> m_PlaneDirections;
107  std::vector<ScalarType> m_PlanePositions;
108 
109  ScalarType m_A;
110  ScalarType m_B;
111  ScalarType m_C;
112  ScalarType m_D;
113  ScalarType m_E;
114  ScalarType m_F;
115  ScalarType m_G;
116  ScalarType m_H;
117  ScalarType m_I;
118  ScalarType m_J;
119 };
120 
121 } // end namespace rtk
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "rtkRayQuadricIntersectionImageFilter.hxx"
125 #endif
126 
127 #endif
RayConvexIntersectionImageFilter< TInputImage, TOutputImage > Superclass
Analytical projection of a QuadricShape.
void AddClipPlane(const VectorType &dir, const ScalarType &pos)
#define itkSetMacro(name, type)