18 #ifndef __igstkSpatialObjectReader_h
19 #define __igstkSpatialObjectReader_h
23 #include "itkSpatialObjectReader.h"
27 #include "itkDefaultDynamicMeshTraits.h"
49 template <
unsigned int TDimension = 3,
50 typename TPixelType =
unsigned char>
65 typedef ::itk::DefaultDynamicMeshTraits< TPixelType ,
69 typedef ::itk::SpatialObjectReader< TDimension,
94 igstkEventMacro( ObjectInvalidRequestErrorEvent, ObjectReadingErrorEvent );
102 void PrintSelf( std::ostream& os, ::itk::Indent indent )
const;
116 void operator=(
const Self&);
119 igstkDeclareStateMacro( Idle );
120 igstkDeclareStateMacro( ObjectFileNameRead );
121 igstkDeclareStateMacro( ObjectRead );
122 igstkDeclareStateMacro( ObjectAttemptingRead );
125 igstkDeclareInputMacro( ReadObjectRequest );
126 igstkDeclareInputMacro( ObjectFileNameValid );
127 igstkDeclareInputMacro( ObjectFileNameIsEmpty );
128 igstkDeclareInputMacro( ObjectFileNameIsDirectory );
129 igstkDeclareInputMacro( ObjectFileNameDoesNotExist );
130 igstkDeclareInputMacro( GetOutput );
133 igstkDeclareInputMacro( ObjectReadingError );
134 igstkDeclareInputMacro( ObjectReadingSuccess );
137 void SetFileNameProcessing();
142 void ReportInvalidRequestProcessing();
146 void ReportObjectReadingErrorProcessing();
150 void ReportObjectReadingSuccessProcessing();
157 #ifndef IGSTK_MANUAL_INSTANTIATION
158 #include "igstkSpatialObjectReader.txx"
161 #endif // __igstkSpatialObjectReader_h
void RequestGetOutput()
This method will invoke a event from derived reader class, such as: MeshModifiedEvent for igstkMeshRe...
::itk::SpatialObject< TDimension > SpatialObjectType
::itk::SpatialObjectReader< TDimension, TPixelType, MeshTraitsType > SpatialObjectReaderType
#define igstkStandardTemplatedClassTraitsMacro(classname, superclassname)
Convenience macro for the traits of a templated class.
virtual void AttemptReadObjectProcessing()
This class reads spatial object data stored in files.
std::string m_FileNameToBeSet
Base class for all the IGSTK classes.
SpatialObjectReader(void)
SpatialObjectReaderType::Pointer m_SpatialObjectReader
void RequestSetFileName(const FileNameType &filename)
Method to pass the directory name containing the spatial object data.
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
std::string FileNameType
Type for representing the string of the filename.
virtual ~SpatialObjectReader(void)
TPixelType PixelType
Some convenient typedefs for input Object.
::itk::DefaultDynamicMeshTraits< TPixelType, TDimension, TDimension > MeshTraitsType
virtual void ReportObjectProcessing()
igstkEventMacro(ObjectReaderEvent, IGSTKEvent)
void RequestReadObject()
This method request Object read.
void PrintSelf(std::ostream &os,::itk::Indent indent) const
Print the object information in a stream.
itkStaticConstMacro(ObjectDimension, unsigned int, TDimension)
Macro with standard traits declarations.
::itk::GroupSpatialObject< TDimension > GroupSpatialObjectType