itkSlicerBoxSpatialObject.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkSlicerBoxSpatialObject_h
00019 #define __itkSlicerBoxSpatialObject_h
00020
00021 #include "itkSpatialObject.h"
00022 #include "itkAffineTransform.h"
00023 #include "itkFixedArray.h"
00024
00025 namespace itk
00026 {
00027
00038 template < unsigned int TDimension = 3 >
00039 class ITK_EXPORT SlicerBoxSpatialObject
00040 : public SpatialObject< TDimension >
00041 {
00042
00043 public:
00044
00045 typedef SlicerBoxSpatialObject Self;
00046 typedef double ScalarType;
00047 typedef SmartPointer < Self > Pointer;
00048 typedef SmartPointer < const Self > ConstPointer;
00049 typedef SpatialObject< TDimension > Superclass;
00050 typedef SmartPointer<Superclass> SuperclassPointer;
00051 typedef typename Superclass::PointType PointType;
00052 typedef typename Superclass::TransformType TransformType;
00053 typedef typename Superclass::BoundingBoxType BoundingBoxType;
00054 typedef FixedArray<double,TDimension> SizeType;
00055 typedef VectorContainer<unsigned long,PointType> PointContainerType;
00056
00057 itkNewMacro( Self );
00058 itkTypeMacro( SlicerBoxSpatialObject, SpatialObject );
00059
00061 itkSetMacro( Size, SizeType );
00062 itkGetConstReferenceMacro( Size, SizeType);
00063
00066 virtual bool ValueAt( const PointType & point, double & value,
00067 unsigned int depth=0,
00068 char * name=NULL) const;
00069
00072 virtual bool IsEvaluableAt( const PointType & point,
00073 unsigned int depth=0,
00074 char * name=NULL) const;
00075
00077 virtual bool IsInside( const PointType & point,
00078 unsigned int depth,
00079 char *) const;
00080
00084 virtual bool IsInside( const PointType & point) const;
00085
00089 virtual bool ComputeLocalBoundingBox() const;
00090
00091 protected:
00092 SlicerBoxSpatialObject(const Self&);
00093 void operator=(const Self&);
00094
00095 SlicerBoxSpatialObject( void );
00096 ~SlicerBoxSpatialObject( void );
00097
00098 SizeType m_Size;
00099
00101 virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00102
00103 };
00104
00105 }
00106
00107 #ifndef ITK_MANUAL_INSTANTIATION
00108 #include "itkSlicerBoxSpatialObject.txx"
00109 #endif
00110
00111 #endif // __itkSlicerBoxSpatialObject_h