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

itkEllipseSpatialObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkEllipseSpatialObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:57:14 $
00007   Version:   $Revision: 1.4 $
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 __itkEllipseSpatialObject_h
00019 #define __itkEllipseSpatialObject_h
00020 
00021 #include "itkAffineTransform.h"
00022 #include "itkSpatialObject.h"
00023 #include "itkFixedArray.h"
00024 
00025 namespace itk
00026 {
00027 
00033 template < unsigned int NDimensions = 3 , unsigned int PipelineDimension = 3  >
00034 class EllipseSpatialObject 
00035 : public SpatialObject< NDimensions, AffineTransform< double, NDimensions>, PipelineDimension >
00036 {
00037 
00038 public:
00039 
00040   typedef EllipseSpatialObject Self;
00041   typedef double ScalarType;
00042   typedef SmartPointer < Self > Pointer;
00043   typedef SmartPointer < const Self > ConstPointer;
00044   typedef SpatialObject< NDimensions, AffineTransform< double, NDimensions >, PipelineDimension > Superclass;
00045   typedef SmartPointer<Superclass> SuperclassPointer;
00046   typedef typename Superclass::PointType              PointType;
00047   typedef VectorContainer<unsigned long,PointType>    PointContainerType;
00048   typedef SmartPointer<PointContainerType>            PointContainerPointer;
00049 
00050   typedef FixedArray<double,NDimensions> ArrayType;
00051   itkStaticConstMacro(NumberOfDimension, unsigned int,
00052                       NDimensions);
00053 
00054   itkNewMacro( Self );
00055   itkTypeMacro( Self, Superclass );
00056 
00058   void SetRadius(double radius);
00059 
00061   itkSetMacro(Radius,ArrayType);
00063   itkGetMacro(Radius,ArrayType);
00064 
00067   virtual void ValueAt( const PointType & point, double & value );
00068      
00071   virtual bool IsEvaluableAt( const PointType & point );
00072 
00074   virtual bool IsInside( const PointType & point );
00075 
00079   virtual void ComputeBounds( void ); 
00080 
00082   unsigned long GetMTime( void ) const;
00083 
00084 protected:
00085 
00086   EllipseSpatialObject( void );
00087   ~EllipseSpatialObject( void );
00088 
00089   ArrayType m_Radius;
00090 
00092   virtual void PrintSelf( std::ostream& os, Indent indent ) const; 
00093 
00094 };
00095 
00096 } // end namespace itk
00097 
00098 #ifndef ITK_MANUAL_INSTANTIATION
00099   #include "itkEllipseSpatialObject.txx"
00100 #endif
00101 
00102 #endif // __itkEllipseSpatialObject_h

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