ITK  4.2.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;
89 
91  itkGetConstMacro(Origin, InputType);
92  itkSetMacro(Origin, InputType);
94 
96  GradientType GetOriginGradient() { return m_OriginGradient; }
97  void SetOriginGradient(GradientType grad);
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);
118 protected:
121  void PrintSelf(std::ostream & os, Indent indent) const;
123 
124 private:
125  ConicShellInteriorExteriorSpatialFunction(const Self &); //not implemented
126  void operator=(const Self &); //purposely not
127 
128  // implemented
129 
132 
135 
138  double m_Epsilon;
140 };
141 } // end namespace itk
142 
143 // Define instantiation macro for this template.
144 #define ITK_TEMPLATE_ConicShellInteriorExteriorSpatialFunction(_, EXPORT, TypeX, TypeY) \
145  namespace itk \
146  { \
147  _( 2 ( class EXPORT ConicShellInteriorExteriorSpatialFunction< ITK_TEMPLATE_2 TypeX > ) ) \
148  namespace Templates \
149  { \
150  typedef ConicShellInteriorExteriorSpatialFunction< ITK_TEMPLATE_2 TypeX > \
151  ConicShellInteriorExteriorSpatialFunction##TypeY; \
152  } \
153  }
154 
155 #if ITK_TEMPLATE_EXPLICIT
156 #include "Templates/itkConicShellInteriorExteriorSpatialFunction+-.h"
157 #endif
158 
159 #if ITK_TEMPLATE_TXX
160 #include "itkConicShellInteriorExteriorSpatialFunction.hxx"
161 #endif
162 
163 #endif
164