Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkBlobSpatialObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBlobSpatialObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/10/20 10:32:50 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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 
00038 template < unsigned int TDimension = 3 , unsigned int PipelineDimension = 3 >
00039 class BlobSpatialObject 
00040 :public SpatialObject<  TDimension, 
00041                         AffineTransform<double, TDimension>, 
00042                         PipelineDimension
00043                      >
00044 {
00045 
00046 public:
00047 
00048   typedef BlobSpatialObject                          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 SpatialObjectPoint< TDimension >            BlobPointType;
00057   typedef typename BlobPointType::Pointer             BlobPointPointer; 
00058   typedef std::list < BlobPointPointer >              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   const PointListType & GetPoints( void ) const;
00074 
00076   void SetPoints( PointListType & newPoints );
00077 
00080   bool IsEvaluableAt( const PointType & point );
00081 
00086   void ValueAt( const PointType & point, double & value );
00087 
00089   bool IsInside( const PointType & point );
00090 
00092   void ComputeBounds( void );
00093 
00095   unsigned long GetMTime( void ) const;
00096 
00097 protected:
00098 
00099   PointListType   m_Points;
00100   TimeStamp       m_BoundsMTime; 
00101 
00102   BlobSpatialObject();
00103   virtual ~BlobSpatialObject();
00104 
00106   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00107 };
00108 
00109 } // end namespace itk
00110 
00111 #ifndef ITK_MANUAL_INSTANTIATION 
00112   #include "itkBlobSpatialObject.txx" 
00113 #endif 
00114 
00115 #endif // __itkBlobSpatialObject_h

Generated at Wed Mar 12 01:12:48 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000