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

itkImageRegionMultidimensionalSplitter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageRegionMultidimensionalSplitter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/30 20:56:08 $
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 #ifndef __itkImageRegionMultidimensionalSplitter_h
00018 #define __itkImageRegionMultidimensionalSplitter_h
00019 
00020 #include "itkObject.h"
00021 #include "itkRegion.h"
00022 #include "itkObjectFactory.h"
00023 #include "itkIndex.h"
00024 #include "itkSize.h"
00025 #include "itkImageRegionSplitter.h"
00026 
00027 namespace itk
00028 {
00029 
00059 template <unsigned int VImageDimension>
00060 class ITK_EXPORT ImageRegionMultidimensionalSplitter: public ImageRegionSplitter<VImageDimension>
00061 {
00062 public:
00064   typedef ImageRegionMultidimensionalSplitter              Self;
00065   typedef ImageRegionSplitter<VImageDimension>  Superclass;
00066   typedef SmartPointer<Self>  Pointer;
00067   typedef SmartPointer<const Self>  ConstPointer;
00068 
00070   itkNewMacro(Self);
00071 
00073   itkTypeMacro(ImageRegionMultidimensionalSplitter,ImageRegionSplitter);
00074 
00076   itkStaticConstMacro(ImageDimension, unsigned int, VImageDimension);
00077 
00079   typedef Index<VImageDimension>  IndexType;
00080 
00082   typedef Size<VImageDimension>  SizeType;
00083 
00085   typedef ImageRegion<VImageDimension> RegionType;
00086 
00093   virtual unsigned int GetNumberOfSplits(const RegionType &region,
00094                                          unsigned int requestedNumber);
00095 
00099   virtual RegionType GetSplit(unsigned int i, unsigned int numberOfPieces,
00100                               const RegionType &region);
00101 
00102 protected:
00103   ImageRegionMultidimensionalSplitter() {}
00104   ~ImageRegionMultidimensionalSplitter() {}
00105   void PrintSelf(std::ostream& os, Indent indent) const;
00106 
00107 private:
00108   ImageRegionMultidimensionalSplitter(const Self&); //purposely not implemented
00109   void operator=(const Self&); //purposely not implemented
00110 
00111 };
00112 
00113 
00114 } // end namespace itk
00115 
00116 // Define instantiation macro for this template.
00117 #define ITK_TEMPLATE_ImageRegionMultidimensionalSplitter(_, EXPORT, x, y) namespace itk { \
00118   _(1(class EXPORT ImageRegionMultidimensionalSplitter< ITK_TEMPLATE_1 x >)) \
00119   namespace Templates { typedef ImageRegionMultidimensionalSplitter< ITK_TEMPLATE_1 x > \
00120                                                ImageRegionMultidimensionalSplitter##y; } \
00121   }
00122 
00123 #if ITK_TEMPLATE_EXPLICIT
00124 # include "Templates/itkImageRegionMultidimensionalSplitter+-.h"
00125 #endif
00126 
00127 #if ITK_TEMPLATE_TXX
00128 # include "itkImageRegionMultidimensionalSplitter.txx"
00129 #endif
00130 
00131 #endif
00132 
00133 

Generated at Mon Mar 12 01:05:13 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000