creaImageIO_lib
creaImageIO::AbstractImageReader Class Reference

Abstract image reader. More...

#include <creaImageIOAbstractImageReader.h>

Inheritance diagram for creaImageIO::AbstractImageReader:

Public Member Functions

 AbstractImageReader ()
 
virtual ~AbstractImageReader ()
 
const std::string & GetName () const
 Get the reader's name. More...
 
virtual void PushBackExtensions (std::vector< std::string > &)
 Add file extensions read by the reader. More...
 
virtual bool CanRead (const std::string &filename)
 Test if file is read by this reader. More...
 
virtual vtkImageData * ReadImage (const std::string &filename)
 return for a file a 2D VTkImage More...
 
virtual void ReadAttributes (const std::string &filename, tree::AttributeMapType &attr)
 return for a file an ItkImage More...
 
virtual void getAttributes (const std::string filename, std::map< std::string, std::string > &infos, std::vector< std::string > i_attr)
 Another function to read attributes for a file. More...
 

Protected Member Functions

void SetName (const std::string &s)
 Set the reader's name. More...
 

Private Attributes

std::string mName
 

Detailed Description

Abstract image reader.

Definition at line 49 of file creaImageIOAbstractImageReader.h.

Constructor & Destructor Documentation

creaImageIO::AbstractImageReader::AbstractImageReader ( )
inline

Definition at line 52 of file creaImageIOAbstractImageReader.h.

52 {}
virtual creaImageIO::AbstractImageReader::~AbstractImageReader ( )
inlinevirtual

Definition at line 53 of file creaImageIOAbstractImageReader.h.

53 {}

Member Function Documentation

virtual bool creaImageIO::AbstractImageReader::CanRead ( const std::string &  filename)
inlinevirtual

Test if file is read by this reader.

Reimplemented in creaImageIO::DicomImageReader, creaImageIO::VtkImageReader, creaImageIO::DicomImageReader, creaImageIO::ImageReader, and creaImageIO::UltrasonixImageReader.

Definition at line 62 of file creaImageIOAbstractImageReader.h.

62 { return false; }
virtual void creaImageIO::AbstractImageReader::getAttributes ( const std::string  filename,
std::map< std::string, std::string > &  infos,
std::vector< std::string >  i_attr 
)
inlinevirtual
const std::string& creaImageIO::AbstractImageReader::GetName ( ) const
inline

Get the reader's name.

Definition at line 56 of file creaImageIOAbstractImageReader.h.

References mName.

Referenced by creaImageIO::VtkImageReader::ReadImage().

56 { return mName; }

Here is the caller graph for this function:

virtual void creaImageIO::AbstractImageReader::PushBackExtensions ( std::vector< std::string > &  )
inlinevirtual
virtual void creaImageIO::AbstractImageReader::ReadAttributes ( const std::string &  filename,
tree::AttributeMapType attr 
)
inlinevirtual

return for a file an ItkImage

Read the attributes for a file

Reimplemented in creaImageIO::DicomImageReader, creaImageIO::VtkImageReader, creaImageIO::ImageReader, creaImageIO::DicomImageReader, and creaImageIO::UltrasonixImageReader.

Definition at line 71 of file creaImageIOAbstractImageReader.h.

72  {}
virtual vtkImageData* creaImageIO::AbstractImageReader::ReadImage ( const std::string &  filename)
inlinevirtual
void creaImageIO::AbstractImageReader::SetName ( const std::string &  s)
inlineprotected

Set the reader's name.

Definition at line 79 of file creaImageIOAbstractImageReader.h.

References mName.

Referenced by creaImageIO::DicomImageReader::DicomImageReader(), creaImageIO::UltrasonixImageReader::UltrasonixImageReader(), and creaImageIO::VtkImageReader::VtkImageReader().

79 { mName = s; }

Here is the caller graph for this function:

Member Data Documentation

std::string creaImageIO::AbstractImageReader::mName
private

Definition at line 81 of file creaImageIOAbstractImageReader.h.

Referenced by GetName(), and SetName().


The documentation for this class was generated from the following file: