VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
vtkNrrdReader Class Reference

Read nrrd files file system. More...

#include <vtkNrrdReader.h>

Inheritance diagram for vtkNrrdReader:
Inheritance graph
[legend]
Collaboration diagram for vtkNrrdReader:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImageReader Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkNrrdReaderNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual int CanReadFile (const char *filename)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkNrrdReaderSafeDownCast (vtkObjectBase *o)
static vtkNrrdReaderNew ()

Protected Types

enum  { ENCODING_RAW, ENCODING_ASCII }

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkNrrdReader ()
 ~vtkNrrdReader ()
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int ReadHeaderInternal (vtkCharArray *headerBuffer)
virtual int ReadHeader ()
virtual int ReadHeader (vtkCharArray *headerBuffer)
virtual int ReadDataAscii (vtkImageData *output)

Protected Attributes

vtkStringArrayDataFiles
int Encoding

Detailed Description

Read nrrd files file system.

Bug:
There are several limitations on what type of nrrd files we can read. This reader only supports nrrd files in raw or ascii format. Other encodings like hex will result in errors. When reading in detached headers, this only supports reading one file that is detached.
@par      Tests:
          @ref c2_vtk_t_vtkNrrdReader "vtkNrrdReader (Tests)"

Definition at line 46 of file vtkNrrdReader.h.


Member Typedef Documentation

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

Definition at line 49 of file vtkNrrdReader.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
ENCODING_RAW 
ENCODING_ASCII 

Definition at line 75 of file vtkNrrdReader.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkNrrdReader::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

virtual int vtkNrrdReader::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

virtual vtkObjectBase* vtkNrrdReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

static vtkNrrdReader* vtkNrrdReader::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

virtual void vtkNrrdReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImageReader.

Reimplemented in vtkPNrrdReader.

virtual int vtkNrrdReader::CanReadFile ( const char *  filename) [virtual]
virtual int vtkNrrdReader::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.

Reimplemented from vtkImageReader.

virtual int vtkNrrdReader::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called in response to a REQUEST_DATA request from the executive. Subclasses should override either this method or the ExecuteDataWithInformation method in order to generate data for their outputs. For images, the output arrays will already be allocated, so all that is necessary is to fill in the voxel values.

Reimplemented from vtkImageAlgorithm.

int vtkNrrdReader::ReadHeaderInternal ( vtkCharArray headerBuffer) [protected]
virtual int vtkNrrdReader::ReadHeader ( ) [protected, virtual]

Reimplemented in vtkPNrrdReader.

virtual int vtkNrrdReader::ReadHeader ( vtkCharArray headerBuffer) [protected, virtual]

Reimplemented in vtkPNrrdReader.

virtual int vtkNrrdReader::ReadDataAscii ( vtkImageData output) [protected, virtual]

Member Data Documentation

Definition at line 73 of file vtkNrrdReader.h.

Definition at line 80 of file vtkNrrdReader.h.


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