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 >
95 void PrintSelf( std::ostream& os, ::itk::Indent indent )
const;
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.
TImageSpatialObject ImageSpatialObjectType
Macro with standard traits declarations.
Base class for all the IGSTK classes.
static void ConnectImage(const TReader *reader, TImageSpatialObject *imageSpatialObject)
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
itk::Image< signed short, TDimension > ImageType
void PrintSelf(std::ostream &os,::itk::Indent indent) const
Print the object information in a stream.
ImageType::RegionType ImageRegionType
::itk::SmartPointer< Self > Pointer
ImageReader()
Declare the ImageReaderToImageSpatialObject class to be a friend in order to give it access to the pr...
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
#define igstkStandardTemplatedAbstractClassTraitsMacro(classname, superclassname)
Convenience macro for the traits of an abstract templated class.
This class is a base class for all image reader classes.