00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSegmentationRegion.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006-02-06 22:01:58 $ 00007 Version: $Revision: 1.10 $ 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 __itkSegmentationRegion_h 00018 #define __itkSegmentationRegion_h 00019 00020 #include "itkObject.h" 00021 #include "itkObjectFactory.h" 00022 00023 namespace itk 00024 { 00025 00045 class ITKCommon_EXPORT SegmentationRegion : public Object 00046 { 00047 public: 00049 typedef SegmentationRegion Self; 00050 typedef Object Superclass; 00051 typedef SmartPointer<Self> Pointer; 00052 typedef SmartPointer<const Self> ConstPointer; 00053 00055 itkNewMacro(Self); 00056 00058 itkTypeMacro(SegmentationRegion,Object); 00059 00061 typedef unsigned int RegionLabelType; 00062 00066 virtual void ApplySegmentationRegion(){}; 00067 00070 itkSetMacro(RegionLabel, RegionLabelType); 00071 itkGetConstReferenceMacro(RegionLabel, RegionLabelType); 00073 00075 itkSetMacro(RegionArea, double); 00076 itkGetConstReferenceMacro(RegionArea, double); 00078 00079 protected: 00080 SegmentationRegion(); 00081 ~SegmentationRegion(); 00082 void PrintSelf(std::ostream& os, Indent indent) const; 00083 00084 private: 00085 SegmentationRegion(const Self&); //purposely not implemented 00086 void operator=(const Self&); //purposely not implemented 00087 00088 RegionLabelType m_RegionLabel; 00089 double m_RegionArea; 00090 00091 }; 00092 00093 00094 } // end namespace itk 00095 00096 00097 #endif 00098