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

itkPlaneSpatialObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkPlaneSpatialObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-07 14:34:12 $
00007   Version:   $Revision: 1.18 $
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 __itkPlaneSpatialObject_h
00019 #define __itkPlaneSpatialObject_h
00020 
00021 #include "itkSpatialObject.h"
00022 #include "itkAffineTransform.h"
00023 
00024 
00025 namespace itk
00026 {
00027 
00033 template < unsigned int TDimension = 3  >
00034 class ITK_EXPORT PlaneSpatialObject 
00035   : public SpatialObject< TDimension >
00036 {
00037 
00038 public:
00039 
00041   typedef PlaneSpatialObject                        Self;
00042   typedef double                                    ScalarType;
00043   typedef SmartPointer < Self >                     Pointer;
00044   typedef SmartPointer < const Self >               ConstPointer;
00045   typedef SpatialObject< TDimension >               Superclass;
00046   typedef SmartPointer<Superclass>                  SuperclassPointer;
00047   typedef typename Superclass::PointType            PointType;
00048   typedef typename Superclass::TransformType        TransformType;
00049   typedef VectorContainer<unsigned long,PointType>  PointContainerType;
00050   typedef SmartPointer<PointContainerType>          PointContainerPointer;
00051   typedef typename Superclass::BoundingBoxType      BoundingBoxType;
00052 
00053 
00054   itkStaticConstMacro(NumberOfDimension, unsigned int,
00055                       TDimension);
00056 
00057   itkNewMacro( Self );
00058   itkTypeMacro( PlaneSpatialObject, SpatialObject );
00059 
00062   virtual bool ValueAt( const PointType & point, double & value,
00063                         unsigned int depth=0, char * name=NULL) const;
00064 
00067   virtual bool IsEvaluableAt( const PointType & point,
00068                               unsigned int depth=0, char * name=NULL) const;
00069 
00071   virtual bool IsInside( const PointType & point,
00072                          unsigned int depth, char * name) const;
00073 
00077   virtual bool IsInside( const PointType & point) const;
00078 
00082   virtual bool ComputeLocalBoundingBox() const;
00083 
00084   itkSetMacro(LowerPoint,PointType);
00085   itkSetMacro(UpperPoint,PointType);
00086   itkGetMacro(LowerPoint,PointType);
00087   itkGetMacro(UpperPoint,PointType);
00088 
00089 protected:
00090   PlaneSpatialObject(const Self&); //purposely not implemented
00091   void operator=(const Self&); //purposely not implemented
00092    
00093   PlaneSpatialObject( void );
00094   ~PlaneSpatialObject( void );
00095 
00096   PointType m_LowerPoint;
00097   PointType m_UpperPoint;
00098 
00100   virtual void PrintSelf( std::ostream& os, Indent indent ) const; 
00101 
00102 };
00103 
00104 } // end namespace itk
00105 
00106 #ifndef ITK_MANUAL_INSTANTIATION
00107 #include "itkPlaneSpatialObject.txx"
00108 #endif
00109 
00110 #endif // __itkPlaneSpatialObject_h
00111 

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