ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFiniteCylinderSpatialFunction.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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#ifndef itkFiniteCylinderSpatialFunction_h
19#define itkFiniteCylinderSpatialFunction_h
20
22#include "itkConceptChecking.h"
23
24namespace itk
25{
37
38template <unsigned int VDimension = 3, typename TInput = Point<double, VDimension>>
39class ITK_TEMPLATE_EXPORT FiniteCylinderSpatialFunction : public InteriorExteriorSpatialFunction<VDimension, TInput>
40{
41public:
42 ITK_DISALLOW_COPY_AND_MOVE(FiniteCylinderSpatialFunction);
43
49
51 itkOverrideGetNameOfClassMacro(FiniteCylinderSpatialFunction);
52
54 itkNewMacro(Self);
55
57 using typename Superclass::InputType;
58
60 using typename Superclass::OutputType;
61
63 itkGetConstMacro(Center, InputType);
64 itkSetMacro(Center, InputType);
66
68 itkGetConstMacro(AxisLength, double);
69 itkSetMacro(AxisLength, double);
71
73 itkGetConstMacro(Radius, double);
74 itkSetMacro(Radius, double);
76
79 itkGetConstMacro(Orientation, InputType);
80 virtual void
81 SetOrientation(const InputType _Orientation);
83
86 Evaluate(const InputType & position) const override;
87
90
91protected:
93 ~FiniteCylinderSpatialFunction() override = default;
94
95 void
96 PrintSelf(std::ostream & os, Indent indent) const override;
97
98private:
101
103 double m_AxisLength{};
104
106 double m_Radius{};
107
111};
112} // end namespace itk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "itkFiniteCylinderSpatialFunction.hxx"
116#endif
117
118#endif
InteriorExteriorSpatialFunction< VDimension, TInput > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
OutputType Evaluate(const InputType &position) const override
~FiniteCylinderSpatialFunction() override=default
virtual void SetOrientation(const InputType _Orientation)
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....