Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mirtk::ImageWriter Class Reference

#include <ImageWriter.h>

Inheritance diagram for mirtk::ImageWriter:
Inheritance graph
Collaboration diagram for mirtk::ImageWriter:
Collaboration graph

Public Member Functions

virtual void Run ()
 Write image.
 
virtual ~ImageWriter ()
 Destructor.
 

Static Public Member Functions

static ImageWriterNew (const char *)
 

Protected Member Functions

virtual void Finalize ()
 Finalize filter.
 
 ImageWriter ()
 Constructor.
 
virtual void Initialize ()
 Initialize filter.
 
- Protected Member Functions inherited from mirtk::Cofstream
void Close ()
 Close file.
 
 Cofstream (const char *=NULL)
 Constructor.
 
MIRTK_Common_DEPRECATED int IsCompressed () const
 
MIRTK_Common_DEPRECATED void IsCompressed (int)
 
MIRTK_Common_DEPRECATED int IsSwapped () const
 
MIRTK_Common_DEPRECATED void IsSwapped (int)
 
void Open (const char *)
 Open file.
 
bool Write (const char *, long, long)
 Write n data as array from offset.
 
bool WriteAsChar (char, long=-1)
 Write data as char (possibly compressed) from offset.
 
bool WriteAsChar (const char *, long, long=-1)
 Write data as char (possibly compressed) from offset.
 
bool WriteAsDouble (double, long=-1)
 Write data as double (possibly compressed) from offset.
 
bool WriteAsDouble (const double *, long, long=-1)
 Write data as double (possibly compressed) from offset.
 
bool WriteAsFloat (float, long=-1)
 Write data as float (possibly compressed) from offset.
 
bool WriteAsFloat (const float *, long, long=-1)
 Write data as float (possibly compressed) from offset.
 
bool WriteAsInt (int, long=-1)
 Write data as int (possibly compressed) from offset.
 
bool WriteAsInt (const int *, long, long=-1)
 Write data as int (possibly compressed) from offset.
 
bool WriteAsShort (short, long=-1)
 Write data as short (possibly compressed) from offset.
 
bool WriteAsShort (const short *, long, long=-1)
 Write data as short (possibly compressed) from offset.
 
bool WriteAsString (const char *, long=-1)
 Write data as string (possibly compressed)
 
bool WriteAsUChar (unsigned char, long=-1)
 Write data as unsigned char (possibly compressed) from offset.
 
bool WriteAsUChar (const unsigned char *, long, long=-1)
 Write data as unsigned char (possibly compressed) from offset.
 
bool WriteAsUInt (unsigned int, long=-1)
 Write data as unsigned int (possibly compressed) from offset.
 
bool WriteAsUInt (const unsigned int *, long, long=-1)
 Write data as unsigned int (possibly compressed) from offset.
 
bool WriteAsUShort (unsigned short, long=-1)
 Write data as unsigned short (possibly compressed) from offset.
 
bool WriteAsUShort (const unsigned short *, long, long=-1)
 Write data as unsigned short (possibly compressed) from offset.
 
 ~Cofstream ()
 Destructor.
 
- Protected Member Functions inherited from mirtk::Object
template<typename... Args>
void Throw (ErrorType err, const char *func, Args... args) const
 
virtual const char * NameOfClass () const =0
 Get name of class, which this object is an instance of.
 
virtual ParameterList Parameter () const
 Get parameter name/value pairs.
 
bool Parameter (const ParameterList &)
 Set parameters from name/value pairs.
 
virtual bool Set (const char *name, const char *value)
 
virtual ~Object ()
 Destructor.
 

Protected Attributes

int _ReflectX
 Flag whether to reflect X axis.
 
int _ReflectY
 Flag whether to reflect Y axis.
 
int _ReflectZ
 Flag whether to reflect Z axis.
 
int _Start
 

Additional Inherited Members

- Static Protected Member Functions inherited from mirtk::Object
template<typename... Args>
static void ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args)
 
static const char * NameOfType ()
 Get name of this class type.
 

Detailed Description

Abstract base class for any general image to file filter.

This is the abstract base class which defines a common interface for all filters which take an image as input and produce an image file as output. Each derived class has to implement all of the abstract member functions.

Definition at line 37 of file ImageWriter.h.

Member Function Documentation

§ New()

static ImageWriter* mirtk::ImageWriter::New ( const char *  )
static

Static constructor. This constructor allocates a derived class which can be used to write the image file in a format corresponding to the given file name extension.

Member Data Documentation

§ _Start

int mirtk::ImageWriter::_Start
protected

Start address of the data in the image file. Should be initialized by overridden Initialize() function.

Definition at line 54 of file ImageWriter.h.


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