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>>
79 itkSetMacro(MetaIOVersion,
unsigned int);
80 itkGetConstMacro(MetaIOVersion,
unsigned int);
85 ReadMeta(
const std::string & name);
90 const std::string & fileName,
91 unsigned int depth = SpatialObjectType::MaximumDepth,
92 const std::string & soName =
"");
98 itkSetMacro(BinaryPoints,
bool);
99 itkGetConstMacro(BinaryPoints,
bool);
100 itkBooleanMacro(BinaryPoints);
104 itkSetMacro(TransformPrecision,
unsigned int);
105 itkGetMacro(TransformPrecision,
unsigned int);
109 itkSetMacro(WriteImagesInSeparateFile,
bool);
110 itkGetConstMacro(WriteImagesInSeparateFile,
bool);
111 itkBooleanMacro(WriteImagesInSeparateFile);
121 RegisterMetaConverter(
const std::string & metaTypeName,
122 const std::string & spatialObjectTypeName,
131 unsigned int depth = SpatialObjectType::MaximumDepth,
132 const std::string & name =
"");
135 CreateSpatialObjectScene(MetaScene * mScene);
146 template <
typename TConverter>
152 converter->SetMetaIOVersion(m_MetaIOVersion);
153 converter->SetWriteImagesInSeparateFile(this->m_WriteImagesInSeparateFile);
154 return converter->SpatialObjectToMetaObject(so);
156 template <
typename TConverter>
161 converter->SetMetaIOVersion(m_MetaIOVersion);
162 return converter->MetaObjectToSpatialObject(mo);
165 SetTransform(MetaObject * obj,
const TransformType * transform);
168 SetTransform(SpatialObjectType * so,
const MetaObject * meta);
171 bool m_BinaryPoints{};
172 bool m_WriteImagesInSeparateFile{};
173 unsigned int m_TransformPrecision{};
175 unsigned int m_MetaIOVersion{ 0 };
179 #ifndef ITK_MANUAL_INSTANTIATION
180 # include "itkMetaSceneConverter.hxx"