00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkPlaneSpatialObject_h
00019 #define __itkPlaneSpatialObject_h
00020
00021 #include "itkSpatialObject.h"
00022 #include "itkAffineTransform.h"
00023
00024
00025 namespace itk
00026 {
00027
00033 template < unsigned int TDimension = 3 >
00034 class PlaneSpatialObject
00035 : public SpatialObject< TDimension >
00036 {
00037
00038 public:
00039
00040 typedef PlaneSpatialObject Self;
00041 typedef double ScalarType;
00042 typedef SmartPointer < Self > Pointer;
00043 typedef SmartPointer < const Self > ConstPointer;
00044 typedef SpatialObject< TDimension > Superclass;
00045 typedef SmartPointer<Superclass> SuperclassPointer;
00046 typedef typename Superclass::PointType PointType;
00047 typedef VectorContainer<unsigned long,PointType> PointContainerType;
00048 typedef SmartPointer<PointContainerType> PointContainerPointer;
00049
00050
00051 itkStaticConstMacro(NumberOfDimension, unsigned int,
00052 TDimension);
00053
00054 itkNewMacro( Self );
00055 itkTypeMacro( Self, Superclass );
00056
00059 virtual bool ValueAt( const PointType & point, double & value,
00060 unsigned int depth=0, char * name=NULL) const;
00061
00064 virtual bool IsEvaluableAt( const PointType & point,
00065 unsigned int depth=0, char * name=NULL) const;
00066
00068 virtual bool IsInside( const PointType & point,
00069 unsigned int depth=0, char * name=NULL) const;
00070
00074 virtual bool ComputeBoundingBox( unsigned int depth=0, char * name=NULL);
00075
00076 itkSetMacro(LowerPoint,PointType);
00077 itkSetMacro(UpperPoint,PointType);
00078 itkGetMacro(LowerPoint,PointType);
00079 itkGetMacro(UpperPoint,PointType);
00080
00081 protected:
00082
00083 PlaneSpatialObject( void );
00084 ~PlaneSpatialObject( void );
00085
00086 PointType m_LowerPoint;
00087 PointType m_UpperPoint;
00088
00090 virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00091
00092 };
00093
00094 }
00095
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkPlaneSpatialObject.txx"
00098 #endif
00099
00100 #endif // __itkPlaneSpatialObject_h