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

itkSpatialObjectReader.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSpatialObjectReader.h,v $ 00005 Language: C++ 00006 Date: $Date: 2004/01/08 00:39:08 $ 00007 Version: $Revision: 1.3 $ 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 __itkSpatialObjectReader_h 00018 #define __itkSpatialObjectReader_h 00019 00020 #include "itkMetaSceneConverter.h" 00021 #include "itkSpatialObject.h" 00022 #include "itkGroupSpatialObject.h" 00023 #include "itkProcessObject.h" 00024 #include "itkSceneSpatialObject.h" 00025 00026 namespace itk 00027 { 00028 00029 template <unsigned int NDimensions = 3, class PixelType = unsigned char> 00030 class SpatialObjectReader : public Object 00031 { 00032 public: 00033 00035 typedef SpatialObjectReader Self; 00036 typedef SmartPointer<Self> Pointer; 00037 00038 typedef SpatialObject<NDimensions> SpatialObjectType; 00039 typedef typename SpatialObjectType::Pointer SpatialObjectPointer; 00040 00041 typedef GroupSpatialObject<NDimensions> GroupType; 00042 typedef typename GroupType::Pointer GroupPointer; 00043 00044 typedef SceneSpatialObject<NDimensions> SceneType; 00045 typedef typename SceneType::Pointer ScenePointer; 00046 00048 itkNewMacro(Self); 00049 00051 typedef Object Superclass; 00052 itkTypeMacro(Self, Superclass); 00053 00055 void Update(void); 00056 00058 itkSetStringMacro(FullFileName); // will be depreciated 00059 itkSetStringMacro(FileName); 00060 00062 itkGetStringMacro(FullFileName); // will be depreciated 00063 itkGetStringMacro(FileName); 00064 00066 ScenePointer GetScene(void) {return m_Scene;} 00067 GroupPointer GetGroup(void) {return m_Group;} 00068 00069 protected: 00070 std::string m_FullFileName; 00071 std::string m_FileName; 00072 00073 SpatialObjectReader(); 00074 virtual ~SpatialObjectReader(); 00075 00076 private: 00077 00078 ScenePointer m_Scene; 00079 GroupPointer m_Group; 00080 MetaSceneConverter<NDimensions,PixelType> m_MetaToSpatialConverter; 00081 }; 00082 00083 } // namespace itk 00084 00085 00086 #ifndef ITK_MANUAL_INSTANTIATION 00087 #include "itkSpatialObjectReader.txx" 00088 #endif 00089 00090 #endif // __itkSpatialObjectReader_h

Generated at Sun Apr 1 02:45:05 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000