ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkSegmentationRegion.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkSegmentationRegion_h
00019 #define __itkSegmentationRegion_h
00020 
00021 #include "itkObject.h"
00022 #include "itkObjectFactory.h"
00023 
00024 namespace itk
00025 {
00046 class ITK_EXPORT SegmentationRegion:public Object
00047 {
00048 public:
00050   typedef SegmentationRegion         Self;
00051   typedef Object                     Superclass;
00052   typedef SmartPointer< Self >       Pointer;
00053   typedef SmartPointer< const Self > ConstPointer;
00054 
00056   itkNewMacro(Self);
00057 
00059   itkTypeMacro(SegmentationRegion, Object);
00060 
00062   typedef unsigned int RegionLabelType;
00063 
00067   virtual void ApplySegmentationRegion(){}
00068 
00071   itkSetMacro(RegionLabel, RegionLabelType);
00072   itkGetConstReferenceMacro(RegionLabel, RegionLabelType);
00074 
00076   itkSetMacro(RegionArea, double);
00077   itkGetConstReferenceMacro(RegionArea, double);
00078 protected:
00079   SegmentationRegion();
00080   ~SegmentationRegion();
00081   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 } // end namespace itk
00092 
00093 #endif
00094