17 #ifndef __igstkTubeReader_h
18 #define __igstkTubeReader_h
23 #include "itkSpatialObjectReader.h"
24 #include "itkObject.h"
25 #include "itkEventObject.h"
28 #include "itkTubeSpatialObject.h"
49 template <
class TReader,
class TTubeSpatialObject >
52 TTubeSpatialObject * tubeSpatialObject )
54 tubeSpatialObject->SetTubeSpatialObject(
55 reader->GetITKTubeSpatialObject());
111 void PrintSelf( std::ostream& os, itk::Indent indent ) const;
125 TubeReader(const
Self&);
126 void operator=(const Self&);
129 virtual TubeSpatialObjectType * GetITKTubeSpatialObject() const;
132 TubeSpatialObjectType::
Pointer m_TubeSpatialObject;
138 #endif // __igstkTubeReader_h
void ReportObjectProcessing()
This method will invoke the TubeModifiedEvent.
igstkEventMacro(TubeReaderEvent, ObjectReaderEvent) igstkEventMacro(TubeReadingErrorEvent
Event type.
::itk::SpatialObject< TDimension > SpatialObjectType
#define igstkFriendClassMacro(type)
Create a Macro for friend class.
void ConnectTube()
Connect the ITK TubeSpatialObject to the output TubeSpatialObject.
This class reads spatial object data stored in files.
ObjectReadingErrorEvent igstkLoadedObjectEventMacro(TubeModifiedEvent, TubeReaderEvent, TubeType)
Declare the TubeReaderToTubeSpatialObject class to be a friend in order to give it access to the priv...
itk::TubeSpatialObject< 3 > TubeSpatialObjectType
Base class for all the IGSTK classes.
igstkStandardClassTraitsMacro(TubeReader, SpatialObjectReader< 3 >) public typedef Superclass::GroupSpatialObjectType GroupSpatialObjectType
Macro with standard traits declarations.
#define igstkStandardClassTraitsMacro(classname, superclassname)
Convenience macro for traits of a non-templated class.
static void ConnectTube(TReader *reader, TTubeSpatialObject *tubeSpatialObject)
void PrintSelf(std::ostream &os, itk::Indent indent) const
Print the object information in a stream.
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
This class represents a Tube object.
::itk::SmartPointer< Self > Pointer
This class is intended to make the connection between the TubeReader and its output, the TubeSpatialObject.
This class reads 3D Tube in the metaIO format.
SpatialObjectType::ConstPointer SpatialObjectTypeConstPointer
::itk::SmartPointer< const Self > ConstPointer
void AttemptReadObjectProcessing()
This method request Object read.