00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkSurfaceSpatialObject_h
00019 #define __itkSurfaceSpatialObject_h
00020
00021 #include <list>
00022
00023 #include "itkSpatialObject.h"
00024 #include "itkSurfaceSpatialObjectPoint.h"
00025
00026 namespace itk
00027 {
00028
00038 template < unsigned int TDimension = 3 , unsigned int PipelineDimension = 3 >
00039 class SurfaceSpatialObject
00040 :public SpatialObject< TDimension,
00041 AffineTransform<double, TDimension>,
00042 PipelineDimension
00043 >
00044 {
00045
00046 public:
00047
00048 typedef SurfaceSpatialObject Self;
00049 typedef SpatialObject< TDimension,
00050 AffineTransform< double, TDimension>,
00051 PipelineDimension
00052 > Superclass;
00053 typedef SmartPointer < Self > Pointer;
00054 typedef SmartPointer < const Self > ConstPointer;
00055 typedef double ScalarType;
00056 typedef SurfaceSpatialObjectPoint< TDimension > SurfacePointType;
00057 typedef typename SurfacePointType::Pointer SurfacePointPointer;
00058 typedef std::list < SurfacePointPointer > PointListType;
00059 typedef typename Superclass::PointType PointType;
00060 typedef VectorContainer<unsigned long,PointType> PointContainerType;
00061 typedef SmartPointer<PointContainerType> PointContainerPointer;
00062
00064 itkNewMacro( Self );
00065
00067 itkTypeMacro( Self, Superclass );
00068
00070 PointListType & GetPoints( void );
00071
00073 void SetPoints( PointListType & newPoints );
00074
00077 bool IsEvaluableAt( const PointType & point );
00078
00083 void ValueAt( const PointType & point, double & value );
00084
00086 bool IsInside( const PointType & point );
00087
00089 void ComputeBounds( void );
00090
00093 unsigned long GetMTime( void ) const;
00094
00095 protected:
00096
00097 PointListType m_Points;
00098 TimeStamp m_BoundsMTime;
00099
00100 SurfaceSpatialObject();
00101 virtual ~SurfaceSpatialObject();
00102
00104 virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00105 };
00106
00107 }
00108
00109 #ifndef ITK_MANUAL_INSTANTIATION
00110 #include "itkSurfaceSpatialObject.txx"
00111 #endif
00112
00113 #endif // __itkSurfaceSpatialObject_h