18 #ifndef itkMetaSceneConverter_h
19 #define itkMetaSceneConverter_h
24 #include "metaScene.h"
45 template <
unsigned int VDimension = 3,
46 typename PixelType =
unsigned char,
47 typename TMeshTraits = DefaultStaticMeshTraits<PixelType, VDimension, VDimension>>
75 ReadMeta(
const std::string & name);
80 const std::string & fileName,
81 unsigned int depth = SpatialObjectType::MaximumDepth,
82 const std::string & soName =
"");
88 itkSetMacro(BinaryPoints,
bool);
89 itkGetConstMacro(BinaryPoints,
bool);
90 itkBooleanMacro(BinaryPoints);
94 itkSetMacro(TransformPrecision,
unsigned int);
95 itkGetMacro(TransformPrecision,
unsigned int);
99 itkSetMacro(WriteImagesInSeparateFile,
bool);
100 itkGetConstMacro(WriteImagesInSeparateFile,
bool);
101 itkBooleanMacro(WriteImagesInSeparateFile);
111 RegisterMetaConverter(
const std::string & metaTypeName,
112 const std::string & spatialObjectTypeName,
121 unsigned int depth = SpatialObjectType::MaximumDepth,
122 const std::string & name =
"");
125 CreateSpatialObjectScene(MetaScene * mScene);
136 template <
typename TConverter>
142 converter->SetWriteImagesInSeparateFile(this->m_WriteImagesInSeparateFile);
143 return converter->SpatialObjectToMetaObject(so);
145 template <
typename TConverter>
150 return converter->MetaObjectToSpatialObject(mo);
153 SetTransform(MetaObject * obj,
const TransformType * transform);
156 SetTransform(SpatialObjectType * so,
const MetaObject * meta);
158 double m_Orientation[100]{};
159 double m_Position[10]{};
160 double m_CenterOfRotation[10]{};
163 bool m_BinaryPoints{};
164 bool m_WriteImagesInSeparateFile{};
165 unsigned int m_TransformPrecision{};
170 #ifndef ITK_MANUAL_INSTANTIATION
171 # include "itkMetaSceneConverter.hxx"