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

itkCylinderSpatialObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCylinderSpatialObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-01-28 19:24:21 $
00007   Version:   $Revision: 1.4 $
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 __itkCylinderSpatialObject_h
00019 #define __itkCylinderSpatialObject_h
00020 
00021 #include "itkSpatialObject.h"
00022 #include "itkAffineTransform.h"
00023 #include "itkFixedArray.h"
00024 
00025 namespace itk
00026 {
00027 
00032 class CylinderSpatialObject 
00033   : public SpatialObject< 3 >
00034 {
00035 
00036 public:
00037 
00038   typedef CylinderSpatialObject                     Self;
00039   typedef double                                    ScalarType;
00040   typedef SmartPointer < Self >                     Pointer;
00041   typedef SmartPointer < const Self >               ConstPointer;
00042   typedef SpatialObject< 3 >                        Superclass;
00043   typedef SmartPointer<Superclass>                  SuperclassPointer;
00044   typedef Superclass::PointType                     PointType;
00045   typedef Superclass::TransformType                 TransformType;
00046   typedef Superclass::BoundingBoxType               BoundingBoxType;
00047   typedef VectorContainer<unsigned long,PointType>  PointContainerType;
00048   typedef SmartPointer<PointContainerType>          PointContainerPointer;
00049 
00050   itkStaticConstMacro(NumberOfDimension, unsigned int,
00051                       3);
00052 
00053   itkNewMacro( Self );
00054   itkTypeMacro( CylinderSpatialObject, SpatialObject );
00055 
00056 
00058   itkSetMacro(Radius,double);
00059   itkGetConstReferenceMacro(Radius,double);
00061 
00063   itkSetMacro(Height,double);
00064   itkGetConstReferenceMacro(Height,double);
00066 
00069   virtual bool ValueAt( const PointType & point, double & value, 
00070                         unsigned int depth=0,
00071                         char * name=NULL) const;
00072 
00075   virtual bool IsEvaluableAt( const PointType & point, 
00076                               unsigned int depth=0,
00077                               char * name=NULL) const;
00078 
00080   virtual bool IsInside( const PointType & point,
00081                          unsigned int depth,
00082                          char *) const;
00083 
00087   virtual bool IsInside( const PointType & point) const;
00088 
00092   virtual bool ComputeLocalBoundingBox() const;
00093 
00094 protected:
00095   CylinderSpatialObject(const Self&); //purposely not implemented
00096   void operator=(const Self&); //purposely not implemented
00097 
00098   CylinderSpatialObject( void );
00099   ~CylinderSpatialObject( void );
00100 
00101   double m_Radius;
00102   double m_Height;
00103 
00105   virtual void PrintSelf( std::ostream& os, Indent indent ) const; 
00106 
00107 };
00108 
00109 } // end namespace itk
00110 
00111 #endif // __itkCylinderSpatialObject_h
00112 

Generated at Mon Apr 14 12:09:29 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000