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