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 & spatialObjectTypeName =
"");
87 itkSetMacro(BinaryPoints,
bool);
88 itkGetMacro(BinaryPoints,
bool);
92 itkSetMacro(TransformPrecision,
unsigned int);
93 itkGetMacro(TransformPrecision,
unsigned int);
97 itkSetMacro(WriteImagesInSeparateFile,
bool);
98 itkGetConstMacro(WriteImagesInSeparateFile,
bool);
108 RegisterMetaConverter(
const std::string & metaTypeName,
109 const std::string & spatialObjectTypeName,
114 unsigned int depth = SpatialObjectType::MaximumDepth,
115 const std::string & name =
"");
118 CreateSpatialObjectScene(MetaScene * mScene);
129 template <
typename TConverter>
133 typename TConverter::Pointer converter = TConverter::New();
135 converter->SetWriteImagesInSeparateFile(this->m_WriteImagesInSeparateFile);
136 return converter->SpatialObjectToMetaObject(so);
138 template <
typename TConverter>
142 typename TConverter::Pointer converter = TConverter::New();
143 return converter->MetaObjectToSpatialObject(mo);
146 SetTransform(MetaObject * obj,
const TransformType * transform);
149 SetTransform(SpatialObjectType * so,
const MetaObject * meta);
151 double m_Orientation[100];
152 double m_Position[10];
153 double m_CenterOfRotation[10];
163 #ifndef ITK_MANUAL_INSTANTIATION
164 # include "itkMetaSceneConverter.hxx"