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

itkImageMaskSpatialObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageMaskSpatialObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/06/16 13:54:53 $
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 __itkImageMaskSpatialObject_h
00019 #define __itkImageMaskSpatialObject_h
00020 
00021 #include "itkImageSpatialObject.h"
00022 #include "itkImageSliceConstIteratorWithIndex.h"
00023 
00024 namespace itk
00025 {
00026   
00037 template < unsigned int TDimension = 3 >
00038 class ImageMaskSpatialObject 
00039   : public ImageSpatialObject< TDimension, unsigned char >
00040 {
00041 
00042 public:
00043  
00044   typedef ImageMaskSpatialObject< TDimension >        Self;
00045   typedef ImageSpatialObject< TDimension >            Superclass;
00046   typedef SmartPointer< Self >                        Pointer;
00047   typedef SmartPointer< const Self >                  ConstPointer;
00048 
00049   typedef typename Superclass::ScalarType             ScalarType; 
00050   typedef typename Superclass::PixelType              PixelType; 
00051   typedef typename Superclass::ImageType              ImageType;
00052   typedef typename Superclass::ImagePointer           ImagePointer;
00053   typedef typename Superclass::IndexType              IndexType;
00054   typedef typename Superclass::RegionType             RegionType;
00055   typedef typename Superclass::TransformType          TransformType;
00056   typedef typename Superclass::PointType              PointType;
00057   typedef typename Superclass::BoundingBoxType        BoundingBoxType;
00058 
00059   typedef itk::ImageSliceConstIteratorWithIndex< ImageType >  
00060                                                       SliceIteratorType;
00061 
00063   itkNewMacro( Self );
00064 
00066   itkTypeMacro( ImageMaskSpatialObject, ImageSpatialObject );
00067 
00069   bool IsInside( const PointType & point,
00070                  unsigned int depth, char *name) const;
00071 
00075   virtual bool IsInside( const PointType & point) const;
00076 
00083   RegionType GetAxisAlignedBoundingBoxRegion() const;
00084 
00085 protected:
00086 
00087   ImageMaskSpatialObject();
00088   virtual ~ImageMaskSpatialObject();
00089 
00090   void PrintSelf( std::ostream& os, Indent indent ) const;
00091 
00092 };
00093 
00094 } // end of namespace itk
00095 
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkImageMaskSpatialObject.txx"
00098 #endif
00099 
00100 #endif //__itkImageMaskSpatialObject_h
00101 

Generated at Wed May 24 23:21:09 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000