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: 2009-04-07 14:34:01 $
00007   Version:   $Revision: 1.7 $
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 ITK_EXPORT 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 
00084   RegionType GetAxisAlignedBoundingBoxRegion() const;
00085 
00086 protected:
00087   ImageMaskSpatialObject(const Self&); //purposely not implemented
00088   void operator=(const Self&); //purposely not implemented
00089 
00090   ImageMaskSpatialObject();
00091   virtual ~ImageMaskSpatialObject();
00092 
00093   void PrintSelf( std::ostream& os, Indent indent ) const;
00094 
00095 };
00096 
00097 } // end of namespace itk
00098 
00099 #ifndef ITK_MANUAL_INSTANTIATION
00100 #include "itkImageMaskSpatialObject.txx"
00101 #endif
00102 
00103 #endif //__itkImageMaskSpatialObject_h
00104 

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