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: 2009-04-07 14:33:56 $
00007   Version:   $Revision: 1.29 $
00008 
00009   Copyright (c) Insight Software 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 "itkSpatialObject.h"
00022 #include "itkAffineTransform.h"
00023 #include "itkFixedArray.h"
00024 
00025 namespace itk
00026 {
00027 
00033 template < unsigned int TDimension = 3 >
00034 class ITK_EXPORT EllipseSpatialObject 
00035   : public SpatialObject< TDimension >
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< TDimension >              Superclass;
00045   typedef SmartPointer<Superclass>                 SuperclassPointer;
00046   typedef typename Superclass::PointType           PointType;
00047   typedef typename Superclass::TransformType       TransformType;
00048   typedef typename Superclass::BoundingBoxType     BoundingBoxType;
00049   typedef VectorContainer<unsigned long,PointType> PointContainerType;
00050   typedef SmartPointer<PointContainerType>         PointContainerPointer;
00051 
00052   typedef FixedArray<double,TDimension> ArrayType;
00053   itkStaticConstMacro(NumberOfDimension, unsigned int,
00054                       TDimension);
00055 
00056   itkNewMacro( Self );
00057   itkTypeMacro( EllipseSpatialObject, SpatialObject );
00058 
00061   void SetRadius(double radius);
00062 
00064   itkSetMacro(Radius,ArrayType);
00065 
00067   itkGetConstReferenceMacro(Radius,ArrayType);
00068 
00071   virtual bool ValueAt( const PointType & point, double & value, 
00072                         unsigned int depth=0,
00073                         char * name=NULL) const;
00074 
00077   virtual bool IsEvaluableAt( const PointType & point, 
00078                               unsigned int depth=0,
00079                               char * name=NULL) const;
00080 
00082   virtual bool IsInside( const PointType & point,
00083                          unsigned int depth,
00084                          char *) const;
00085 
00089   virtual bool IsInside( const PointType & point) const;
00090 
00094   virtual bool ComputeLocalBoundingBox() const;
00095 
00097   void CopyInformation(const DataObject *data);
00098 
00099 protected:
00100   EllipseSpatialObject(const Self&); //purposely not implemented
00101   void operator=(const Self&); //purposely not implemented
00102    
00103   EllipseSpatialObject( void );
00104   ~EllipseSpatialObject( void );
00105 
00106   ArrayType m_Radius;
00107 
00109   virtual void PrintSelf( std::ostream& os, Indent indent ) const; 
00110 
00111 };
00112 
00113 } // end namespace itk
00114 
00115 #ifndef ITK_MANUAL_INSTANTIATION
00116 #include "itkEllipseSpatialObject.txx"
00117 #endif
00118 
00119 #endif // __itkEllipseSpatialObject_h
00120 

Generated at Tue Sep 15 02:50:34 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000