17 #ifndef __igstkImageReader_h
18 #define __igstkImageReader_h
24 #include "itkImageSpatialObject.h"
47 template <
class TReader,
class TImageSpatialObject >
50 TImageSpatialObject * imageSpatialObject )
52 imageSpatialObject->RequestSetImage( reader->GetITKImage() );
71 template <
class TImageSpatialObject >
83 typedef TImageSpatialObject ImageSpatialObjectType;
95 void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
112 ImageReader(const
Self&);
113 void operator=(const Self&);
116 virtual const ImageType * GetITKImage() const = 0;
122 #ifndef IGSTK_MANUAL_INSTANTIATION
123 #include "igstkImageReader.txx"
126 #endif // __igstkImageReader_h
#define igstkFriendClassMacro(type)
Create a Macro for friend class.
void ConnectImage()
Connect the ITK image to the output ImageSpatialObject.
Base class for all the IGSTK classes.
igstkStandardTemplatedAbstractClassTraitsMacro(ImageReader, Object) public
Macro with standard traits declarations.
static void ConnectImage(const TReader *reader, TImageSpatialObject *imageSpatialObject)
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
void PrintSelf(std::ostream &os,::itk::Indent indent) const
Print the object information in a stream.
ImageType::RegionType ImageRegionType
::itk::SmartPointer< Self > Pointer
ImageSpatialObjectType::ImageType ImageType
Some convenient typedefs for internal ITK image.
ImageSpatialObjectType::Pointer m_ImageSpatialObject
This class is intended to make the connection between the ImageReader and its output, the ImageSpatialObject.
ImageType::ConstPointer ImagePointer
This class is a base class for all image reader classes.
::itk::SmartPointer< const Self > ConstPointer