ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * 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 rtkDrawQuadricImageFilter_h
20#define rtkDrawQuadricImageFilter_h
21
23#include "rtkConfiguration.h"
24
25namespace rtk
26{
27
37template <class TInputImage, class TOutputImage>
38class ITK_TEMPLATE_EXPORT DrawQuadricImageFilter : public DrawConvexImageFilter<TInputImage, TOutputImage>
39{
40public:
41 ITK_DISALLOW_COPY_AND_MOVE(DrawQuadricImageFilter);
42
48
52
54 itkNewMacro(Self);
55
57 itkOverrideGetNameOfClassMacro(DrawQuadricImageFilter);
58
60 itkGetMacro(Density, ScalarType);
62
64 itkGetConstReferenceMacro(PlaneDirections, std::vector<VectorType>);
65 itkGetConstReferenceMacro(PlanePositions, std::vector<ScalarType>);
66
68 void
69 AddClipPlane(const VectorType & dir, const ScalarType & pos);
70
71 itkGetMacro(A, ScalarType);
73 itkGetMacro(B, ScalarType);
75 itkGetMacro(C, ScalarType);
77 itkGetMacro(D, ScalarType);
79 itkGetMacro(E, ScalarType);
81 itkGetMacro(F, ScalarType);
83 itkGetMacro(G, ScalarType);
85 itkGetMacro(H, ScalarType);
87 itkGetMacro(I, ScalarType);
89 itkGetMacro(J, ScalarType);
91
92protected:
94 ~DrawQuadricImageFilter() override = default;
95
96 void
98
99private:
101 std::vector<VectorType> m_PlaneDirections;
102 std::vector<ScalarType> m_PlanePositions;
103
114};
115
116} // end namespace rtk
117
118#ifndef ITK_MANUAL_INSTANTIATION
119# include "rtkDrawQuadricImageFilter.hxx"
120#endif
121
122#endif
Implements transparent reference counting.
itk::Vector< ScalarType, Dimension > VectorType
void AddClipPlane(const VectorType &dir, const ScalarType &pos)
void BeforeThreadedGenerateData() override
DrawConvexImageFilter< TInputImage, TOutputImage > Superclass
std::vector< VectorType > m_PlaneDirections
~DrawQuadricImageFilter() override=default
itk::SmartPointer< const Self > ConstPointer
std::vector< ScalarType > m_PlanePositions
itk::SmartPointer< Self > Pointer
#define itkSetMacro(name, type)