ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkConicShellInteriorExteriorSpatialFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software 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 #ifndef itkConicShellInteriorExteriorSpatialFunction_h
19 #define itkConicShellInteriorExteriorSpatialFunction_h
20 
21 #include "vnl/vnl_vector.h"
23 #include "itkCovariantVector.h"
24 
25 namespace itk
26 {
59 template< unsigned int VDimension = 3,
60  typename TInput = Point< double, VDimension > >
62  public InteriorExteriorSpatialFunction< VDimension, TInput >
63 {
64 public:
65  ITK_DISALLOW_COPY_AND_ASSIGN(ConicShellInteriorExteriorSpatialFunction);
66 
72 
76 
78  itkNewMacro(Self);
79 
81  using InputType = typename Superclass::InputType;
82 
85 
88 
90  OutputType Evaluate(const InputType & position) const override;
91 
93  itkGetConstMacro(Origin, InputType);
94  itkSetMacro(Origin, InputType);
96 
98  GradientType GetOriginGradient() { return m_OriginGradient; }
99  void SetOriginGradient(GradientType grad);
101 
103  itkGetConstMacro(DistanceMin, double);
104  itkSetMacro(DistanceMin, double);
106 
108  itkGetConstMacro(DistanceMax, double);
109  itkSetMacro(DistanceMax, double);
111 
113  itkGetConstMacro(Epsilon, double);
114  itkSetMacro(Epsilon, double);
116 
120  itkGetConstMacro(Polarity, bool);
121  itkSetMacro(Polarity, bool);
122  itkBooleanMacro(Polarity);
124 
125 protected:
127  ~ConicShellInteriorExteriorSpatialFunction() override = default;
128  void PrintSelf(std::ostream & os, Indent indent) const override;
129 
130 private:
133  double m_DistanceMin{ 0.0 };
134  double m_DistanceMax{ 0.0 };
135  double m_Epsilon{ 0.0 };
136  bool m_Polarity{ false };
137 };
138 } // end namespace itk
139 
140 #ifndef ITK_MANUAL_INSTANTIATION
141 #include "itkConicShellInteriorExteriorSpatialFunction.hxx"
142 #endif
143 
144 #endif
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Returns whether or not a location is &quot;inside&quot; or &quot;outside&quot; a function.