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

itkMeshRegion.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeshRegion.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/01/15 18:57:06 $
00007   Version:   $Revision: 1.10 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkMeshRegion_h
00021 #define __itkMeshRegion_h
00022 
00023 #include "itkRegion.h"
00024 #include "itkObjectFactory.h"
00025 #include "itkNumericTraits.h"
00026 
00027 namespace itk
00028 {
00029 
00042 class ITK_EXPORT MeshRegion: public Region
00043 {
00044 public:
00046   typedef MeshRegion              Self;
00047   typedef Region  Superclass;
00048   
00050   itkTypeMacro(MeshRegion, Region);
00051 
00054   MeshRegion();
00055 
00058   virtual ~MeshRegion();
00059 
00061   virtual RegionType GetRegionType() const
00062     {return Superclass::ITK_UNSTRUCTURED_REGION;}
00063 
00065   unsigned long GetNumberOfRegions() const
00066     { return m_NumberOfRegions; };
00067 
00069   void SetNumberOfRegions(unsigned long num)
00070     { if ((num >= 1) && (num <= NumericTraits<unsigned long>::max()))
00071       { m_NumberOfRegions = num; } };
00072 
00074   unsigned long GetRegion() const
00075     { return m_Region; };
00076 
00078   void SetRegion(unsigned long region)
00079     { if ((region >= 1) && (region <= NumericTraits<unsigned long>::max()))
00080       { m_Region = region; } };
00081 
00082 private:
00083   // The maximum number of regions possible.
00084   unsigned long int    m_NumberOfRegions;
00085 
00086   // The specified region.
00087   unsigned long int    m_Region;
00088 
00089 };
00090   
00091 } // end namespace itk
00092 
00093 #endif
00094 

Generated at Fri May 21 01:15:03 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000