Abstract image reader. More...
#include <creaImageIOAbstractImageReader.h>

Public Member Functions | |
| AbstractImageReader () | |
| virtual | ~AbstractImageReader () |
| const std::string & | GetName () const |
| Get the reader's name. | |
| virtual void | PushBackExtensions (std::vector< std::string > &) |
| Add file extensions read by the reader. | |
| virtual bool | CanRead (const std::string &filename) |
| Test if file is read by this reader. | |
| virtual vtkImageData * | ReadImage (const std::string &filename) |
| return for a file a 2D VTkImage | |
| virtual void | ReadAttributes (const std::string &filename, tree::AttributeMapType &attr) |
| Read the attributes for a file. | |
| 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. | |
Protected Member Functions | |
| void | SetName (const std::string &s) |
| Set the reader's name. | |
Private Attributes | |
| std::string | mName |
Abstract image reader.
Definition at line 19 of file creaImageIOAbstractImageReader.h.
| creaImageIO::AbstractImageReader::AbstractImageReader | ( | ) | [inline] |
Definition at line 12 of file creaImageIOAbstractImageReader.h.
Referenced by CanRead().
{

| virtual creaImageIO::AbstractImageReader::~AbstractImageReader | ( | ) | [inline, virtual] |
Definition at line 13 of file creaImageIOAbstractImageReader.h.
{
| virtual bool creaImageIO::AbstractImageReader::CanRead | ( | const std::string & | filename | ) | [inline, virtual] |
Test if file is read by this reader.
Reimplemented in creaImageIO::DicomImageReader, creaImageIO::DicomImageReader, creaImageIO::ImageReader, creaImageIO::UltrasonixImageReader, and creaImageIO::VtkImageReader.
Definition at line 22 of file creaImageIOAbstractImageReader.h.
References AbstractImageReader().
{

| virtual void creaImageIO::AbstractImageReader::getAttributes | ( | const std::string | filename, | |
| std::map< std::string, std::string > & | infos, | |||
| std::vector< std::string > | i_attr | |||
| ) | [inline, virtual] |
Another function to read attributes for a file.
Reimplemented in creaImageIO::DicomImageReader, creaImageIO::DicomImageReader, creaImageIO::ImageReader, creaImageIO::UltrasonixImageReader, and creaImageIO::VtkImageReader.
Definition at line 32 of file creaImageIOAbstractImageReader.h.
| const std::string& creaImageIO::AbstractImageReader::GetName | ( | ) | const [inline] |
Get the reader's name.
Definition at line 16 of file creaImageIOAbstractImageReader.h.
Referenced by creaImageIO::VtkImageReader::VtkImageReader().
{

| virtual void creaImageIO::AbstractImageReader::PushBackExtensions | ( | std::vector< std::string > & | ) | [inline, virtual] |
Add file extensions read by the reader.
Reimplemented in creaImageIO::DicomImageReader, creaImageIO::DicomImageReader, creaImageIO::ImageReader, creaImageIO::UltrasonixImageReader, and creaImageIO::VtkImageReader.
Definition at line 19 of file creaImageIOAbstractImageReader.h.
{
| virtual void creaImageIO::AbstractImageReader::ReadAttributes | ( | const std::string & | filename, | |
| tree::AttributeMapType & | attr | |||
| ) | [inline, virtual] |
Read the attributes for a file.
Reimplemented in creaImageIO::DicomImageReader, creaImageIO::DicomImageReader, creaImageIO::ImageReader, creaImageIO::UltrasonixImageReader, and creaImageIO::VtkImageReader.
Definition at line 28 of file creaImageIOAbstractImageReader.h.
References mName.
{ return mName; }
| virtual vtkImageData* creaImageIO::AbstractImageReader::ReadImage | ( | const std::string & | filename | ) | [inline, virtual] |
return for a file a 2D VTkImage
Reimplemented in creaImageIO::DicomImageReader, creaImageIO::DicomImageReader, creaImageIO::ImageReader, creaImageIO::UltrasonixImageReader, and creaImageIO::VtkImageReader.
Definition at line 25 of file creaImageIOAbstractImageReader.h.
{}
| void creaImageIO::AbstractImageReader::SetName | ( | const std::string & | s | ) | [inline, protected] |
Set the reader's name.
Definition at line 36 of file creaImageIOAbstractImageReader.h.
Referenced by creaImageIO::DicomImageReader::DicomImageReader(), creaImageIO::UltrasonixImageReader::UltrasonixImageReader(), and creaImageIO::VtkImageReader::VtkImageReader().

std::string creaImageIO::AbstractImageReader::mName [private] |
Definition at line 38 of file creaImageIOAbstractImageReader.h.
Referenced by ReadAttributes().
1.7.1