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: 2004/01/08 00:39:08 $ 00007 Version: $Revision: 1.4 $ 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 typename SpatialObjectType::Pointer SpatialObjectPointer; 00040 typedef SceneSpatialObject<NDimensions> SceneType; 00041 00043 itkNewMacro(Self); 00044 00046 typedef Object Superclass; 00047 itkTypeMacro(Self, Superclass); 00048 00049 00051 void Update(void); 00052 00054 itkSetStringMacro(FileName); 00055 itkSetStringMacro(FullFileName); 00056 00058 itkGetStringMacro(FileName); 00059 itkGetStringMacro(FullFileName); 00060 00062 void SetInput(SpatialObjectType * input){m_SpatialObject=input;} 00063 00064 void SetInput(SceneType * input){m_Scene=input;} 00065 00066 protected: 00067 std::string m_FullFileName; 00068 std::string m_FileName; 00069 00070 SpatialObjectWriter(); 00071 virtual ~SpatialObjectWriter(); 00072 00073 private: 00074 00075 SpatialObjectPointer m_SpatialObject; 00076 SceneType * m_Scene; 00077 00078 MetaSceneConverter<NDimensions,PixelType> m_MetaToSpatialConverter; 00079 }; 00080 00081 } // namespace itk 00082 00083 00084 #ifndef ITK_MANUAL_INSTANTIATION 00085 #include "itkSpatialObjectWriter.txx" 00086 #endif 00087 00088 #endif // __itkSpatialObjectWriter_h

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