17 #ifndef __igstkMeshReader_h
18 #define __igstkMeshReader_h
42 template <
class TReader,
class TMeshSpatialObject >
45 TMeshSpatialObject * meshSpatialObject )
47 meshSpatialObject->SetMesh( reader->GetITKMesh() );
98 typedef MeshObjectType::MeshType MeshType;
112 void PrintSelf( std::ostream& os, itk::Indent indent ) const;
127 void operator=(const Self&);
130 virtual MeshType * GetITKMesh() const;
132 MeshObjectType::
Pointer m_MeshObject;
140 #endif // __igstkMeshReader_h
Implements the 3-dimensional mesh structure.
::itk::SpatialObject< TDimension > SpatialObjectType
This class reads 3D Mesh in the metaIO format.
#define igstkFriendClassMacro(type)
Create a Macro for friend class.
igstkLoadedObjectEventMacro(SpatialObjectModifiedEvent, IGSTKEvent, SpatialObject)
Event to be invoked when the state of the SpatialObject changes.
void PrintSelf(std::ostream &os, itk::Indent indent) const
Print the object information in a stream.
This class reads spatial object data stored in files.
void ReportObjectProcessing()
This method will invoke the MeshModifiedEvent.
Base class for all the IGSTK classes.
This class is intended to make the connection between the MeshReader and its output, the MeshSpatialObject.
#define igstkStandardClassTraitsMacro(classname, superclassname)
Convenience macro for traits of a non-templated class.
SpatialObjectType::ConstPointer SpatialObjectTypeConstPointer
SpatialObjectReader< 3, float > SuperclassType
Typedef for the superclass is needed because the StandardClassTraitsMacro would get confused with the...
::itk::SmartPointer< Self > Pointer
void ConnectMesh()
Connect the ITK mesh to the output MeshSpatialObject.
void AttemptReadObjectProcessing()
This method tries to read the Object.
static void ConnectMesh(TReader *reader, TMeshSpatialObject *meshSpatialObject)
::itk::SmartPointer< const Self > ConstPointer
igstkEventMacro(MeshReaderEvent, ObjectReaderEvent) igstkEventMacro(MeshReadingErrorEvent
Event type.
::itk::GroupSpatialObject< TDimension > GroupSpatialObjectType