18 #ifndef itkMetaSceneConverter_h 19 #define itkMetaSceneConverter_h 21 #include "metaScene.h" 41 template<
unsigned int NDimensions,
42 typename PixelType =
unsigned char,
43 typename TMeshTraits =
44 DefaultStaticMeshTraits< PixelType, NDimensions, NDimensions >
65 ScenePointer
ReadMeta(
const char *name);
68 bool WriteMeta(SceneType *scene,
const char *fileName,
70 char *spatialObjectTypeName = ITK_NULLPTR);
99 const char *spatialObjectTypeName,
100 MetaConverterBaseType *converter);
104 char *name = ITK_NULLPTR);
116 template <
typename TConverter>
119 typename TConverter::Pointer converter = TConverter::New();
122 return converter->SpatialObjectToMetaObject(so.
GetPointer());
124 template <
typename TConverter>
127 typename TConverter::Pointer converter = TConverter::New();
128 return converter->MetaObjectToSpatialObject(mo);
130 void SetTransform(MetaObject *obj, TransformType *transform);
132 void SetTransform(SpatialObjectType *so, MetaObject *obj);
146 #ifndef ITK_MANUAL_INSTANTIATION 147 #include "itkMetaSceneConverter.hxx"
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
ObjectType * GetPointer() const
a SceneSpatialObject has a list of SpatialObjects
Implementation of the composite pattern.