18#ifndef itkSpatialObjectReader_h
19#define itkSpatialObjectReader_h
33template <
unsigned int VDimension = 3,
34 typename PixelType =
unsigned char,
35 typename TMeshTraits = DefaultStaticMeshTraits<PixelType, VDimension, VDimension>>
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);
125 const char * spatialObjectTypeName,
129 std::string m_FileName{};
143#ifndef ITK_MANUAL_INSTANTIATION
144# include "itkSpatialObjectReader.hxx"
Representation of a group based on the spatial object classes.
Light weight base class for most itk classes.
Base class for most ITK classes.
typename GroupType::Pointer GroupPointer
const MetaEvent * GetEvent()
void SetMetaIOVersion(unsigned int ver)
SpatialObjectPointer GetOutput()
void SetEvent(MetaEvent *event)
unsigned int GetMetaIOVersion(void) const
~SpatialObjectReader() override=default
void RegisterMetaConverter(const char *metaTypeName, const char *spatialObjectTypeName, MetaConverterBaseType *converter)
typename SpatialObjectType::Pointer SpatialObjectPointer
Implementation of the composite pattern.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....