ITK  4.9.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, typename TInput = Point< double, 3 > >
61  public InteriorExteriorSpatialFunction< VDimension, TInput >
62 {
63 public:
64 
70 
74 
76  itkNewMacro(Self);
77 
79  typedef typename Superclass::InputType InputType;
80 
83 
86 
88  OutputType Evaluate(const InputType & position) const ITK_OVERRIDE;
89 
91  itkGetConstMacro(Origin, InputType);
92  itkSetMacro(Origin, InputType);
94 
99 
101  itkGetConstMacro(DistanceMin, double);
102  itkSetMacro(DistanceMin, double);
104 
106  itkGetConstMacro(DistanceMax, double);
107  itkSetMacro(DistanceMax, double);
109 
111  itkGetConstMacro(Epsilon, double);
112  itkSetMacro(Epsilon, double);
114 
116  itkGetConstMacro(Polarity, bool);
117  itkSetMacro(Polarity, bool);
119 
120 protected:
123  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
124 
125 private:
126  ConicShellInteriorExteriorSpatialFunction(const Self &) ITK_DELETE_FUNCTION;
127  void operator=(const Self &) ITK_DELETE_FUNCTION;
128 
131 
134 
137  double m_Epsilon;
139 };
140 } // end namespace itk
141 
142 #ifndef ITK_MANUAL_INSTANTIATION
143 #include "itkConicShellInteriorExteriorSpatialFunction.hxx"
144 #endif
145 
146 #endif
void PrintSelf(std::ostream &os, Indent indent) const override
OutputType Evaluate(const InputType &position) const override
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.