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,
117 unsigned int depth = SpatialObjectType::MaximumDepth,
118 const std::string & name =
"");
121 CreateSpatialObjectScene(MetaScene * mScene);
132 template <
typename TConverter>
138 converter->SetWriteImagesInSeparateFile(this->m_WriteImagesInSeparateFile);
139 return converter->SpatialObjectToMetaObject(so);
141 template <
typename TConverter>
146 return converter->MetaObjectToSpatialObject(mo);
149 SetTransform(MetaObject * obj,
const TransformType * transform);
152 SetTransform(SpatialObjectType * so,
const MetaObject * meta);
154 double m_Orientation[100];
155 double m_Position[10];
156 double m_CenterOfRotation[10];
166 #ifndef ITK_MANUAL_INSTANTIATION
167 # include "itkMetaSceneConverter.hxx"