18 #ifndef itkSpatialObjectReader_h
19 #define itkSpatialObjectReader_h
33 template <
unsigned int VDimension = 3,
34 typename PixelType =
unsigned char,
35 typename TMeshTraits = DefaultStaticMeshTraits<PixelType, VDimension, VDimension>>
69 SetMetaIOVersion(
unsigned int ver);
71 GetMetaIOVersion(
void)
const;
75 itkSetStringMacro(FileName);
78 itkGetStringMacro(FileName);
84 return m_SpatialObject;
93 if (m_Group ==
nullptr)
95 if (m_SpatialObject->GetTypeName() ==
"GroupSpatialObject")
97 m_Group = static_cast<GroupType *>(m_SpatialObject.GetPointer());
102 m_Group->AddChild(m_SpatialObject);
113 return m_MetaToSpatialConverter->GetEvent();
119 m_MetaToSpatialConverter->SetEvent(event);
124 RegisterMetaConverter(
const char * metaTypeName,
125 const char * spatialObjectTypeName,
126 MetaConverterBaseType * converter);
129 std::string m_FileName{};
143 #ifndef ITK_MANUAL_INSTANTIATION
144 # include "itkSpatialObjectReader.hxx"
147 #endif // itkSpatialObjectReader_h