ITK  6.0.0
Insight Toolkit
itkSymmetricEllipsoidInteriorExteriorSpatialFunction.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 itkSymmetricEllipsoidInteriorExteriorSpatialFunction_h
19#define itkSymmetricEllipsoidInteriorExteriorSpatialFunction_h
20
22
23namespace itk
24{
38template <unsigned int VDimension = 3, typename TInput = Point<double, VDimension>>
40 : public InteriorExteriorSpatialFunction<VDimension, TInput>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(SymmetricEllipsoidInteriorExteriorSpatialFunction);
44
51
53 itkNewMacro(Self);
54
57
59 using typename Superclass::InputType;
60
62 using typename Superclass::OutputType;
63
66 Evaluate(const InputType & position) const override;
67
69 itkGetConstMacro(Center, InputType);
70 itkSetMacro(Center, InputType);
75 void
76 SetOrientation(VectorType orientation, double uniqueAxis, double symmetricAxes);
77
78protected:
81
82 void
83 PrintSelf(std::ostream & os, Indent indent) const override;
84
85private:
87 InputType m_Center{};
88
90 double m_UniqueAxis{ 10 };
91
93 double m_SymmetricAxes{ 5 };
94
97
99 double m_VectorRatio{ 0.0 };
100};
101} // end namespace itk
102
103#ifndef ITK_MANUAL_INSTANTIATION
104# include "itkSymmetricEllipsoidInteriorExteriorSpatialFunction.hxx"
105#endif
106
107#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Returns whether or not a location is "inside" or "outside" a function.
Light weight base class for most itk classes.
void SetOrientation(VectorType orientation, double uniqueAxis, double symmetricAxes)
void PrintSelf(std::ostream &os, Indent indent) const override
OutputType Evaluate(const InputType &position) const override
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....