ITK  4.4.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);
119 
120 protected:
123  void PrintSelf(std::ostream & os, Indent indent) const;
124 
125 private:
126  ConicShellInteriorExteriorSpatialFunction(const Self &); //not implemented
127  void operator=(const Self &); //purposely not
128 
129  // implemented
130 
133 
136 
139  double m_Epsilon;
141 };
142 } // end namespace itk
143 
144 #ifndef ITK_MANUAL_INSTANTIATION
145 #include "itkConicShellInteriorExteriorSpatialFunction.hxx"
146 #endif
147 
148 #endif
149