ITK  4.13.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 
71 
75 
77  itkNewMacro(Self);
78 
80  typedef typename Superclass::InputType InputType;
81 
84 
87 
89  OutputType Evaluate(const InputType & position) const ITK_OVERRIDE;
90 
92  itkGetConstMacro(Origin, InputType);
93  itkSetMacro(Origin, InputType);
95 
97  GradientType GetOriginGradient() { return m_OriginGradient; }
98  void SetOriginGradient(GradientType grad);
100 
102  itkGetConstMacro(DistanceMin, double);
103  itkSetMacro(DistanceMin, double);
105 
107  itkGetConstMacro(DistanceMax, double);
108  itkSetMacro(DistanceMax, double);
110 
112  itkGetConstMacro(Epsilon, double);
113  itkSetMacro(Epsilon, double);
115 
119  itkGetConstMacro(Polarity, bool);
120  itkSetMacro(Polarity, bool);
121  itkBooleanMacro(Polarity);
123 
124 protected:
126  virtual ~ConicShellInteriorExteriorSpatialFunction() ITK_OVERRIDE;
127  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
128 
129 private:
130  ITK_DISALLOW_COPY_AND_ASSIGN(ConicShellInteriorExteriorSpatialFunction);
131 
132  InputType m_Origin;
133  GradientType m_OriginGradient;
134  double m_DistanceMin;
135  double m_DistanceMax;
136  double m_Epsilon;
137  bool m_Polarity;
138 };
139 } // end namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkConicShellInteriorExteriorSpatialFunction.hxx"
143 #endif
144 
145 #endif
InteriorExteriorSpatialFunction< VDimension, TInput > Superclass
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.