00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkEllipsoidInteriorExteriorSpatialFunction_h
00018 #define __itkEllipsoidInteriorExteriorSpatialFunction_h
00019
00020 #include "itkInteriorExteriorSpatialFunction.h"
00021
00022 namespace itk
00023 {
00024
00036 template <unsigned int VDimension = 3,
00037 typename TInput = Point<double, VDimension> >
00038 class ITK_EXPORT EllipsoidInteriorExteriorSpatialFunction
00039 : public InteriorExteriorSpatialFunction<VDimension, TInput>
00040 {
00041 public:
00043 typedef EllipsoidInteriorExteriorSpatialFunction Self;
00044 typedef InteriorExteriorSpatialFunction<VDimension, TInput> Superclass;
00045 typedef SmartPointer<Self> Pointer;
00046 typedef SmartPointer<const Self> ConstPointer;
00047
00049 itkTypeMacro(EllipsoidInteriorExteriorSpatialFunction,InteriorExteriorSpatialFunction);
00050
00052 itkNewMacro(Self);
00053
00055 typedef typename Superclass::InputType InputType;
00056
00058 typedef typename Superclass::OutputType OutputType;
00059
00061 itkGetMacro(Center, InputType);
00062 itkSetMacro(Center, InputType);
00063
00065 itkGetMacro(Axes, InputType);
00066 itkSetMacro(Axes, InputType);
00067
00070 void SetOrientations(vnl_matrix<double>);
00071
00073 OutputType Evaluate(const InputType& position) const;
00074
00075 protected:
00076 EllipsoidInteriorExteriorSpatialFunction();
00077 virtual ~EllipsoidInteriorExteriorSpatialFunction();
00078
00079 void PrintSelf(std::ostream& os, Indent indent) const;
00080
00081 private:
00082 EllipsoidInteriorExteriorSpatialFunction(const Self&);
00083 void operator=(const Self&);
00084
00086 InputType m_Center;
00087
00089 InputType m_Axes;
00090
00092 double ** m_Orientations;
00093 };
00094
00095 }
00096
00097 #ifndef ITK_MANUAL_INSTANTIATION
00098 #include "itkEllipsoidInteriorExteriorSpatialFunction.txx"
00099 #endif
00100
00101 #endif