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>
61 itkStaticConstMacro(ObjectDimension,
unsigned int, TDimension);
65 typedef ::itk::DefaultDynamicMeshTraits< TPixelType ,
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, float, MeshTraitsType > SpatialObjectReaderType
#define igstkStandardTemplatedClassTraitsMacro(classname, superclassname)
Convenience macro for the traits of a templated class.
Geometrical abstraction of physical objects present in the surgical scene.
virtual void AttemptReadObjectProcessing()
This class reads spatial object data stored in files.
std::string m_FileNameToBeSet
Base class for all the IGSTK classes.
igstkStandardTemplatedClassTraitsMacro(SpatialObjectReader, Object) public typedef TPixelType PixelType
Macro with standard traits declarations.
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.
::itk::DefaultDynamicMeshTraits< float, TDimension, TDimension > MeshTraitsType
::itk::SmartPointer< Self > Pointer
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.
::itk::GroupSpatialObject< TDimension > GroupSpatialObjectType