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

itkMetaSceneConverter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMetaSceneConverter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:49 $ 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 __MetaSceneConverter__h 00018 #define __MetaSceneConverter__h 00019 00020 #include "itkSpatialObject.h" 00021 #include "metaScene.h" 00022 #include "itkSceneSpatialObject.h" 00023 00024 namespace itk 00025 { 00026 00027 template <unsigned int NDimensions, class PixelType = unsigned char> 00028 class MetaSceneConverter 00029 { 00030 00031 public: 00032 00033 MetaSceneConverter(); 00034 ~MetaSceneConverter(); 00035 00036 itkStaticConstMacro(MaximumDepth, unsigned int, 9999999); 00037 00038 typedef itk::SceneSpatialObject<NDimensions> SceneType; 00039 typedef typename SceneType::Pointer ScenePointer; 00040 00041 ScenePointer ReadMeta(const char* name); 00042 00043 bool WriteMeta(SceneType * scene,const char* fileName, 00044 unsigned int depth=MaximumDepth, 00045 char * spatialObjectTypeName=NULL); 00046 00047 private: 00048 00049 typedef itk::SpatialObject<NDimensions> SpatialObjectType; 00050 typedef typename SpatialObjectType::Pointer SpatialObjectPointer; 00051 typedef typename SpatialObjectType::TransformType TransformType ; 00052 00053 typedef std::list<MetaObject*> MetaObjectListType; 00054 00055 MetaScene * CreateMetaScene(SceneType * scene, 00056 unsigned int depth=MaximumDepth, 00057 char * name=NULL); 00058 00059 ScenePointer CreateSpatialObjectScene( MetaScene * scene ); 00060 00061 void SetTransform(MetaObject* obj, TransformType* transform) ; 00062 void SetTransform(SpatialObjectType* so, MetaObject* obj) ; 00063 00064 float m_Orientation[100] ; 00065 float m_Position[10] ; 00066 float m_CenterOfRotation[10] ; 00067 00068 }; 00069 00070 } // end namespace itk 00071 00072 #ifndef ITK_MANUAL_INSTANTIATION 00073 #include "itkMetaSceneConverter.txx" 00074 #endif 00075 00076 00077 #endif

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