RTK  1.4.0
Reconstruction Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
rtk::XimImageIO Class Reference

#include <rtkXimImageIO.h>

+ Inheritance diagram for rtk::XimImageIO:
+ Collaboration diagram for rtk::XimImageIO:

Classes

struct  xim_header
 

Public Types

typedef itk::int32_t Int4
 
typedef signed short int PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef XimImageIO Self
 
typedef itk::ImageIOBase Superclass
 
typedef struct rtk::XimImageIO::xim_header Xim_header
 

Public Member Functions

bool CanReadFile (const char *FileNameToRead) override
 
bool CanWriteFile (const char *filename) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
void Read (void *buffer) override
 
void ReadImageInformation () override
 
void Write (const void *buffer) override
 
virtual void WriteImageInformation (bool)
 
void WriteImageInformation () override
 
 XimImageIO ()
 

Static Public Member Functions

static Pointer New ()
 

Private Member Functions

template<typename T >
get_diff (char vsub, FILE *&fp)
 
template<typename T >
vcl_size_t SetPropertyValue (char *property_name, Int4 value_length, FILE *fp, Xim_header *xim)
 

Private Attributes

Int4 m_BytesPerPixel
 
int m_ImageDataStart
 

Detailed Description

Class for reading Xim Image file format.

Reads Xim files (file format used by Varian for Obi raw data).

Author
Andreas Gravgaard Andersen

Definition at line 45 of file rtkXimImageIO.h.

Member Typedef Documentation

Definition at line 53 of file rtkXimImageIO.h.

typedef signed short int rtk::XimImageIO::PixelType

Definition at line 52 of file rtkXimImageIO.h.

Definition at line 51 of file rtkXimImageIO.h.

Standard class typedefs.

Definition at line 49 of file rtkXimImageIO.h.

Definition at line 50 of file rtkXimImageIO.h.

Constructor & Destructor Documentation

rtk::XimImageIO::XimImageIO ( )
inline

Definition at line 99 of file rtkXimImageIO.h.

References CanReadFile(), Read(), and ReadImageInformation().

Member Function Documentation

bool rtk::XimImageIO::CanReadFile ( const char *  FileNameToRead)
overridevirtual

Implements itk::ImageIOBase.

Referenced by XimImageIO().

bool rtk::XimImageIO::CanWriteFile ( const char *  filename)
overridevirtual

Implements itk::ImageIOBase.

Referenced by WriteImageInformation().

virtual::itk::LightObject::Pointer rtk::XimImageIO::CreateAnother ( ) const
template<typename T >
T rtk::XimImageIO::get_diff ( char  vsub,
FILE *&  fp 
)
private

Referenced by WriteImageInformation().

virtual const char* rtk::XimImageIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

static Pointer rtk::XimImageIO::New ( )
static

Method for creation through the object factory.

void rtk::XimImageIO::Read ( void *  buffer)
overridevirtual

Implements itk::ImageIOBase.

Referenced by XimImageIO().

void rtk::XimImageIO::ReadImageInformation ( )
overridevirtual

Implements itk::ImageIOBase.

Referenced by XimImageIO().

template<typename T >
vcl_size_t rtk::XimImageIO::SetPropertyValue ( char *  property_name,
Int4  value_length,
FILE *  fp,
Xim_header xim 
)
private

Referenced by WriteImageInformation().

void rtk::XimImageIO::Write ( const void *  buffer)
overridevirtual

Implements itk::ImageIOBase.

Referenced by WriteImageInformation().

virtual void rtk::XimImageIO::WriteImageInformation ( bool  )
inlinevirtual

Definition at line 115 of file rtkXimImageIO.h.

void rtk::XimImageIO::WriteImageInformation ( )
inlineoverridevirtual

Member Data Documentation

Int4 rtk::XimImageIO::m_BytesPerPixel
private

Definition at line 128 of file rtkXimImageIO.h.

int rtk::XimImageIO::m_ImageDataStart
private

Definition at line 127 of file rtkXimImageIO.h.


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