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

itkSpatialObjectProperty.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSpatialObjectProperty.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:50 $ 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 __SpatialObjectProperty_h 00019 #define __SpatialObjectProperty_h 00020 00021 #include <string> 00022 00023 #include "itkIndent.h" 00024 #include "itkRGBAPixel.h" 00025 #include "itkLightObject.h" 00026 00027 namespace itk{ 00028 00034 template< class TComponentType = float > 00035 class ITK_EXPORT SpatialObjectProperty 00036 : public LightObject 00037 { 00038 public: 00039 00040 typedef SpatialObjectProperty< TComponentType > Self; 00041 typedef LightObject Superclass; 00042 typedef RGBAPixel< TComponentType > PixelType; 00043 typedef std::string StringType; 00044 00045 typedef SmartPointer<Self> Pointer; 00046 typedef SmartPointer<const Self> ConstPointer; 00047 00048 itkNewMacro( Self ); 00049 itkTypeMacro( Self, Superclass ); 00050 00051 const PixelType & GetColor( void ) const; 00052 void SetColor(const PixelType & color ); 00053 00054 void SetRed( TComponentType r ); 00055 TComponentType GetRed( void ) const; 00056 00057 void SetGreen( TComponentType g ); 00058 TComponentType GetGreen( void ) const; 00059 00060 void SetBlue( TComponentType b ); 00061 TComponentType GetBlue( void ) const; 00062 00063 void SetAlpha( TComponentType a); 00064 TComponentType GetAlpha( void ) const; 00065 00066 SpatialObjectProperty(); 00067 virtual ~SpatialObjectProperty(); 00068 00069 void SetName( const char * name ); 00070 StringType GetName( void ) const; 00071 00072 unsigned long GetMTime(void){return m_MTime;} 00073 00074 protected: 00075 00076 void PrintSelf(std::ostream &os, Indent indent) const; 00077 void Modified(void){m_MTime++;} 00078 00079 private: 00080 00081 PixelType m_Color; 00082 StringType m_Name; 00083 unsigned long m_MTime; 00084 00085 }; 00086 00087 } 00088 00089 00090 00091 #ifndef ITK_MANUAL_INSTANTIATION 00092 #include "itkSpatialObjectProperty.txx" 00093 #endif 00094 00095 #endif // __SpatialObjectProperty_h

Generated at Sat Mar 31 02:29:43 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000