18 #ifndef itkMetaSceneConverter_h
19 #define itkMetaSceneConverter_h
24 #include "metaScene.h"
45 template <
unsigned int NDimensions = 3,
46 typename PixelType =
unsigned char,
47 typename TMeshTraits = DefaultStaticMeshTraits<PixelType, NDimensions, NDimensions>>
74 ReadMeta(
const std::string & name);
80 unsigned int depth = SpatialObjectType::MaximumDepth,
81 const std::string & soName =
"");
87 itkSetMacro(BinaryPoints,
bool);
88 itkGetConstMacro(BinaryPoints,
bool);
89 itkBooleanMacro(BinaryPoints);
93 itkSetMacro(TransformPrecision,
unsigned int);
94 itkGetMacro(TransformPrecision,
unsigned int);
98 itkSetMacro(WriteImagesInSeparateFile,
bool);
99 itkGetConstMacro(WriteImagesInSeparateFile,
bool);
100 itkBooleanMacro(WriteImagesInSeparateFile);
110 RegisterMetaConverter(
const std::string & metaTypeName,
111 const std::string & spatialObjectTypeName,
116 unsigned int depth = SpatialObjectType::MaximumDepth,
117 const std::string & name =
"");
120 CreateSpatialObjectScene(MetaScene * mScene);
131 template <
typename TConverter>
135 typename TConverter::Pointer converter = TConverter::New();
137 converter->SetWriteImagesInSeparateFile(this->m_WriteImagesInSeparateFile);
138 return converter->SpatialObjectToMetaObject(so);
140 template <
typename TConverter>
144 typename TConverter::Pointer converter = TConverter::New();
145 return converter->MetaObjectToSpatialObject(mo);
148 SetTransform(MetaObject * obj,
const TransformType * transform);
151 SetTransform(SpatialObjectType * so,
const MetaObject * meta);
153 double m_Orientation[100];
154 double m_Position[10];
155 double m_CenterOfRotation[10];
165 #ifndef ITK_MANUAL_INSTANTIATION
166 # include "itkMetaSceneConverter.hxx"