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-11-03 12:20:44 $
00007   Version:   $Revision: 1.8 $
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::SizeType               SizeType;
00056   typedef typename Superclass::TransformType          TransformType;
00057   typedef typename Superclass::PointType              PointType;
00058   typedef typename Superclass::BoundingBoxType        BoundingBoxType;
00059 
00060   typedef itk::ImageSliceConstIteratorWithIndex< ImageType >  
00061                                                       SliceIteratorType;
00062 
00064   itkNewMacro( Self );
00065 
00067   itkTypeMacro( ImageMaskSpatialObject, ImageSpatialObject );
00068 
00070   bool IsInside( const PointType & point,
00071                  unsigned int depth, char *name) const;
00072 
00076   virtual bool IsInside( const PointType & point) const;
00077 
00085   RegionType GetAxisAlignedBoundingBoxRegion() const;
00086 
00087 protected:
00088   ImageMaskSpatialObject(const Self&); //purposely not implemented
00089   void operator=(const Self&); //purposely not implemented
00090 
00091   ImageMaskSpatialObject();
00092   virtual ~ImageMaskSpatialObject();
00093 
00094   void PrintSelf( std::ostream& os, Indent indent ) const;
00095 
00096 };
00097 
00098 } // end of namespace itk
00099 
00100 #ifndef ITK_MANUAL_INSTANTIATION
00101 #include "itkImageMaskSpatialObject.txx"
00102 #endif
00103 
00104 #endif //__itkImageMaskSpatialObject_h
00105 

Generated at Fri Apr 16 18:36:34 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000