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

itkSpatialObjectWriter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSpatialObjectWriter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:36 $ 00007 Version: $Revision: 1.2 $ 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 __itkSpatialObjectWriter_h 00018 #define __itkSpatialObjectWriter_h 00019 00020 #include "itkMetaSceneConverter.h" 00021 #include "itkProcessObject.h" 00022 #include "itkSpatialObject.h" 00023 #include "itkSceneSpatialObject.h" 00024 00025 00026 namespace itk 00027 { 00028 00029 template <unsigned int NDimensions = 3, class PixelType = unsigned char> 00030 class SpatialObjectWriter : public Object 00031 { 00032 public: 00033 00035 typedef SpatialObjectWriter Self; 00036 typedef SmartPointer<Self> Pointer; 00037 00038 typedef SpatialObject<NDimensions> SpatialObjectType; 00039 typedef SceneSpatialObject<NDimensions> SceneType; 00040 00042 itkNewMacro(Self); 00043 00045 typedef Object Superclass; 00046 itkTypeMacro(Self, Superclass); 00047 00048 00050 void Update(void); 00051 00053 itkSetStringMacro(FileName); 00054 itkSetStringMacro(FullFileName); 00055 00057 itkGetStringMacro(FileName); 00058 itkGetStringMacro(FullFileName); 00059 00061 void SetInput(SpatialObjectType * input){m_SpatialObject=input;} 00062 00063 void SetInput(SceneType * input){m_Scene=input;} 00064 00065 protected: 00066 std::string m_FullFileName; 00067 std::string m_FileName; 00068 00069 SpatialObjectWriter(); 00070 virtual ~SpatialObjectWriter(); 00071 00072 private: 00073 00074 SpatialObjectType * m_SpatialObject; 00075 SceneType * m_Scene; 00076 00077 MetaSceneConverter<NDimensions,PixelType> m_MetaToSpatialConverter; 00078 }; 00079 00080 } // namespace itk 00081 00082 00083 #ifndef ITK_MANUAL_INSTANTIATION 00084 #include "itkSpatialObjectWriter.txx" 00085 #endif 00086 00087 #endif // __itkSpatialObjectWriter_h

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