00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkLandmarkSpatialObject_h
00019 #define __itkLandmarkSpatialObject_h
00020
00021 #include <list>
00022
00023 #include "itkSpatialObject.h"
00024 #include "itkSpatialObjectPoint.h"
00025
00026 namespace itk
00027 {
00028
00038 template < unsigned int TDimension = 3 >
00039 class LandmarkSpatialObject
00040 :public SpatialObject< TDimension >
00041 {
00042
00043 public:
00044
00045 typedef LandmarkSpatialObject Self;
00046 typedef SpatialObject< TDimension> Superclass;
00047 typedef SmartPointer < Self > Pointer;
00048 typedef SmartPointer < const Self > ConstPointer;
00049 typedef double ScalarType;
00050 typedef SpatialObjectPoint< TDimension > LandmarkPointType;
00051 typedef std::list < LandmarkPointType > PointListType;
00052 typedef typename Superclass::PointType PointType;
00053 typedef typename Superclass::TransformType TransformType;
00054 typedef VectorContainer<unsigned long,PointType> PointContainerType;
00055 typedef SmartPointer<PointContainerType> PointContainerPointer;
00056
00058 itkNewMacro( Self );
00059
00061 itkTypeMacro( Self, Superclass );
00062
00064 PointListType & GetPoints( void );
00065
00067 const PointListType & GetPoints( void ) const;
00068
00070 void SetPoints( PointListType & newPoints );
00071
00074 bool IsEvaluableAt( const PointType & point,
00075 unsigned int depth=0, char *name = NULL ) const;
00076
00081 bool ValueAt( const PointType & point, double & value,
00082 unsigned int depth=0, char *name = NULL ) const;
00083
00085 bool IsInside( const PointType & point,
00086 unsigned int depth=0, char *name = NULL ) const;
00087
00089 bool ComputeBoundingBox( void ) const;
00090
00091 protected:
00092
00093 PointListType m_Points;
00094
00095 LandmarkSpatialObject();
00096 virtual ~LandmarkSpatialObject();
00097
00099 virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00100 };
00101
00102 }
00103
00104 #ifndef ITK_MANUAL_INSTANTIATION
00105 #include "itkLandmarkSpatialObject.txx"
00106 #endif
00107
00108 #endif // __itkLandmarkSpatialObject_h