IGSTK
|
This class reads 3D Mesh in the metaIO format. More...
#include <igstkMeshReader.h>
Public Types | |
typedef SpatialObjectReader < 3, float > | SuperclassType |
Typedef for the superclass is needed because the StandardClassTraitsMacro would get confused with the commas in the template. | |
typedef SpatialObjectType::ConstPointer | SpatialObjectTypeConstPointer |
typedef igstk::MeshObject | MeshObjectType |
![]() | |
typedef ::itk::DefaultDynamicMeshTraits < float, TDimension, TDimension > | MeshTraitsType |
typedef ::itk::SpatialObjectReader < TDimension, float, MeshTraitsType > | SpatialObjectReaderType |
typedef ::itk::SpatialObject < TDimension > | SpatialObjectType |
typedef ::itk::GroupSpatialObject < TDimension > | GroupSpatialObjectType |
typedef std::string | FileNameType |
Type for representing the string of the filename. | |
![]() | |
typedef Object | Self |
General Typedefs. | |
typedef ::itk::Object | Superclass |
typedef ::itk::SmartPointer< Self > | Pointer |
typedef ::itk::SmartPointer < const Self > | ConstPointer |
typedef igstk::Logger | LoggerType |
Public Member Functions | |
igstkEventMacro (MeshReaderEvent, ObjectReaderEvent) igstkEventMacro(MeshReadingErrorEvent | |
Event type. | |
![]() | |
void | RequestSetFileName (const FileNameType &filename) |
Method to pass the directory name containing the spatial object data. | |
void | RequestReadObject () |
This method request Object read. | |
void | RequestGetOutput () |
This method will invoke a event from derived reader class, such as: MeshModifiedEvent for igstkMeshReader TubeModifiedEvent for igstkTubeReader. | |
igstkEventMacro (ObjectReaderEvent, IGSTKEvent) | |
igstkEventMacro (ObjectReadingErrorEvent, IGSTKErrorEvent) | |
igstkEventMacro (ObjectReadingSuccessEvent, ObjectReaderEvent) | |
igstkEventMacro (ObjectInvalidRequestErrorEvent, ObjectReadingErrorEvent) | |
![]() | |
virtual const char * | GetNameOfClass () const |
void | SetLogger (LoggerType *logger) |
Connect the Logger for this class. | |
void | RemoveObserver (unsigned long tag) const |
Public Attributes | |
igstkStandardClassTraitsMacro(MeshReader, SuperclassType) public typedef Superclass::GroupSpatialObjectType | GroupSpatialObjectType |
Macro with standard traits declarations. | |
![]() | |
igstkStandardTemplatedClassTraitsMacro(SpatialObjectReader, Object) public typedef float | PixelType |
Macro with standard traits declarations. |
Protected Member Functions | |
MeshReader (void) | |
Declare the MeshReaderToMeshSpatialObject class to be a friend in order to give it access to the private method GetITKMesh(). | |
~MeshReader (void) | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const |
Print the object information in a stream. | |
void | AttemptReadObjectProcessing () |
This method tries to read the Object. | |
void | ReportObjectProcessing () |
This method will invoke the MeshModifiedEvent. | |
void | ConnectMesh () |
Connect the ITK mesh to the output MeshSpatialObject. | |
![]() | |
SpatialObjectReader (void) | |
virtual | ~SpatialObjectReader (void) |
void | PrintSelf (std::ostream &os,::itk::Indent indent) const |
Print the object information in a stream. | |
![]() | |
LoggerType * | GetLogger () const |
Object (void) | |
Constructor is protected in order to enforce the use of the New() operator. | |
virtual | ~Object (void) |
void | RegisterObservedObject (const ::igstk::Object *object, unsigned long tag) |
Register observed objects in an internal array so that they can be disconnected upon destruction. | |
void | RemoveFromObservedObjects () |
Remove observers that this object may have connected to other objects. |
Additional Inherited Members | |
![]() | |
static Pointer | New (void) |
![]() | |
SpatialObjectReaderType::Pointer | m_SpatialObjectReader |
std::string | m_FileNameToBeSet |
std::string | m_FileName |
This class reads 3D Mesh in the metaIO format.
The file describes a list of points corresponding to the nodes in the Mesh, and a list of links between the nodes. The output of this reader is of type MeshSpatialObject.
Definition at line 70 of file igstkMeshReader.h.
typedef SpatialObjectReader<3,float> igstk::MeshReader::SuperclassType |
Typedef for the superclass is needed because the StandardClassTraitsMacro would get confused with the commas in the template.
Definition at line 77 of file igstkMeshReader.h.
typedef SpatialObjectType::ConstPointer igstk::MeshReader::SpatialObjectTypeConstPointer |
Definition at line 87 of file igstkMeshReader.h.
Definition at line 88 of file igstkMeshReader.h.
|
protected |
Declare the MeshReaderToMeshSpatialObject class to be a friend in order to give it access to the private method GetITKMesh().
|
protected |
igstk::MeshReader::igstkEventMacro | ( | MeshReaderEvent | , |
ObjectReaderEvent | |||
) |
Event type.
|
protectedvirtual |
Print the object information in a stream.
Reimplemented from igstk::Object.
|
protectedvirtual |
This method tries to read the Object.
This method is invoked by the State Machine of the superclass.
Reimplemented from igstk::SpatialObjectReader< 3, float >.
|
protectedvirtual |
This method will invoke the MeshModifiedEvent.
Reimplemented from igstk::SpatialObjectReader< 3, float >.
|
protected |
Connect the ITK mesh to the output MeshSpatialObject.
igstkStandardClassTraitsMacro ( MeshReader, SuperclassType ) public typedef Superclass::GroupSpatialObjectType igstk::MeshReader::GroupSpatialObjectType |