Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
vtkNRRDReader Class Reference

Reads Nearly Raw Raster Data files. More...

#include <Libs/vtkTeem/vtkNRRDReader.h>

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

Public Types

typedef vtkMedicalImageReader2 Superclass
 

Public Member Functions

virtual vtkImageData * AllocateOutputData (vtkDataObject *out, vtkInformation *outInfo) VTK_OVERRIDE
 
virtual void AllocateOutputData (vtkImageData *out, vtkInformation *outInfo, int *uExtent) VTK_OVERRIDE
 
void AllocatePointData (vtkImageData *out, vtkInformation *outInfo)
 
virtual int CanReadFile (const char *filename) VTK_OVERRIDE
 is the given file name a NRRD file? More...
 
const char * GetAxisLabel (unsigned int axis)
 Get label for specified axis. More...
 
const char * GetAxisUnit (unsigned int axis)
 Get unit for specified axis. More...
 
virtual const char * GetClassName ()
 
virtual int GetDataType ()
 
virtual const char * GetDescriptiveName () VTK_OVERRIDE
 A descriptive name for this format. More...
 
virtual const char * GetFileExtensions () VTK_OVERRIDE
 Valid extentsions. More...
 
const char * GetHeaderKeys ()
 
std::vector< std::string > GetHeaderKeysVector ()
 
const char * GetHeaderValue (const char *key)
 Get a value given a key in the header. More...
 
vtkMatrix4x4 * GetMeasurementFrameMatrix ()
 Returns the measurement frame matrix used for tensor valued data. More...
 
virtual int GetNumberOfComponents ()
 
virtual int GetPointDataType ()
 
vtkMatrix4x4 * GetRasToIjkMatrix ()
 Returns a IJK to RAS transformation matrix. More...
 
virtual int GetReadStatus ()
 
virtual int IsA (const char *type)
 
int NrrdToVTKScalarType (const int nrrdPixelType) const
 
virtual void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void SetDataType (int)
 Set the data type: int, float.... More...
 
virtual void SetNumberOfComponents (int)
 
virtual void SetPointDataType (int)
 Point data field type. More...
 
void SetUseNativeOriginOff ()
 Use image center as origin. More...
 
void SetUseNativeOriginOn ()
 Use image origin from the file. More...
 
int VTKToNrrdPixelType (const int vtkPixelType) const
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkNRRDReaderNew ()
 
static vtkNRRDReaderSafeDownCast (vtkObject *o)
 

Protected Member Functions

virtual void ExecuteDataWithInformation (vtkDataObject *output, vtkInformation *outInfo) VTK_OVERRIDE
 
virtual void ExecuteInformation () VTK_OVERRIDE
 
int tenSpaceDirectionReduce (Nrrd *nout, const Nrrd *nin, double SD[9])
 
 vtkNRRDReader ()
 
 ~vtkNRRDReader ()
 

Static Protected Member Functions

static bool GetPointType (Nrrd *nrrdTemp, int &pointDataType, int &numOfComponents)
 

Protected Attributes

std::map< unsigned int, std::string > AxisLabels
 
std::map< unsigned int, std::string > AxisUnits
 
std::string CurrentFileName
 
int DataType
 
std::string HeaderKeys
 
std::map< std::string, std::string > HeaderKeyValue
 
vtkSmartPointer< vtkMatrix4x4 > MeasurementFrameMatrix
 
Nrrd * nrrd
 
vtkSmartPointer< vtkMatrix4x4 > NRRDWorldToRasMatrix
 
int NumberOfComponents
 
int PointDataType
 
vtkSmartPointer< vtkMatrix4x4 > RasToIjkMatrix
 
int ReadStatus
 
bool UseNativeOrigin
 

Detailed Description

Reads Nearly Raw Raster Data files.

Reads Nearly Raw Raster Data files using the nrrdio library as used in ITK

See also
vtkImageReader2

Definition at line 54 of file vtkNRRDReader.h.

Member Typedef Documentation

◆ Superclass

typedef vtkMedicalImageReader2 vtkNRRDReader::Superclass

Definition at line 59 of file vtkNRRDReader.h.

Constructor & Destructor Documentation

◆ vtkNRRDReader()

vtkNRRDReader::vtkNRRDReader ( )
protected

◆ ~vtkNRRDReader()

vtkNRRDReader::~vtkNRRDReader ( )
protected

Member Function Documentation

◆ AllocateOutputData() [1/2]

virtual vtkImageData* vtkNRRDReader::AllocateOutputData ( vtkDataObject *  out,
vtkInformation *  outInfo 
)
virtual

◆ AllocateOutputData() [2/2]

virtual void vtkNRRDReader::AllocateOutputData ( vtkImageData *  out,
vtkInformation *  outInfo,
int *  uExtent 
)
inlinevirtual

Definition at line 230 of file vtkNRRDReader.h.

◆ AllocatePointData()

void vtkNRRDReader::AllocatePointData ( vtkImageData *  out,
vtkInformation *  outInfo 
)

◆ CanReadFile()

virtual int vtkNRRDReader::CanReadFile ( const char *  filename)
virtual

is the given file name a NRRD file?

◆ ExecuteDataWithInformation()

virtual void vtkNRRDReader::ExecuteDataWithInformation ( vtkDataObject *  output,
vtkInformation *  outInfo 
)
protectedvirtual

◆ ExecuteInformation()

virtual void vtkNRRDReader::ExecuteInformation ( )
protectedvirtual

◆ GetAxisLabel()

const char* vtkNRRDReader::GetAxisLabel ( unsigned int  axis)

Get label for specified axis.

◆ GetAxisUnit()

const char* vtkNRRDReader::GetAxisUnit ( unsigned int  axis)

Get unit for specified axis.

◆ GetClassName()

virtual const char* vtkNRRDReader::GetClassName ( )
virtual

◆ GetDataType()

virtual int vtkNRRDReader::GetDataType ( )
virtual

◆ GetDescriptiveName()

virtual const char* vtkNRRDReader::GetDescriptiveName ( )
inlinevirtual

A descriptive name for this format.

Definition at line 104 of file vtkNRRDReader.h.

◆ GetFileExtensions()

virtual const char* vtkNRRDReader::GetFileExtensions ( )
inlinevirtual

Valid extentsions.

Definition at line 97 of file vtkNRRDReader.h.

◆ GetHeaderKeys()

const char* vtkNRRDReader::GetHeaderKeys ( )

Get a space separated list of all keys in the header the string is allocated and deleted in this object. This method does not support spaces in key names.

◆ GetHeaderKeysVector()

std::vector<std::string> vtkNRRDReader::GetHeaderKeysVector ( )

Get a list of keys in the header. Preferred method to use as it supports spaces in key names.

◆ GetHeaderValue()

const char* vtkNRRDReader::GetHeaderValue ( const char *  key)

Get a value given a key in the header.

◆ GetMeasurementFrameMatrix()

vtkMatrix4x4* vtkNRRDReader::GetMeasurementFrameMatrix ( )

Returns the measurement frame matrix used for tensor valued data.

◆ GetNumberOfComponents()

virtual int vtkNRRDReader::GetNumberOfComponents ( )
virtual

◆ GetPointDataType()

virtual int vtkNRRDReader::GetPointDataType ( )
virtual

◆ GetPointType()

static bool vtkNRRDReader::GetPointType ( Nrrd *  nrrdTemp,
int &  pointDataType,
int &  numOfComponents 
)
staticprotected

◆ GetRasToIjkMatrix()

vtkMatrix4x4* vtkNRRDReader::GetRasToIjkMatrix ( )

Returns a IJK to RAS transformation matrix.

◆ GetReadStatus()

virtual int vtkNRRDReader::GetReadStatus ( )
virtual

Report the status of the reading process. If this is different than zero, there have been some error parsing the complete header information.

◆ IsA()

virtual int vtkNRRDReader::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkNRRDReader::IsTypeOf ( const char *  type)
static

◆ New()

static vtkNRRDReader* vtkNRRDReader::New ( )
static

◆ NrrdToVTKScalarType()

int vtkNRRDReader::NrrdToVTKScalarType ( const int  nrrdPixelType) const
inline

case nrrdTypeLLong: return LONG ; break; case nrrdTypeULong: return ULONG; break;

Definition at line 145 of file vtkNRRDReader.h.

◆ PrintSelf()

virtual void vtkNRRDReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

◆ SafeDownCast()

static vtkNRRDReader* vtkNRRDReader::SafeDownCast ( vtkObject *  o)
static

◆ SetDataType()

virtual void vtkNRRDReader::SetDataType ( int  )
virtual

Set the data type: int, float....

◆ SetNumberOfComponents()

virtual void vtkNRRDReader::SetNumberOfComponents ( int  )
virtual

◆ SetPointDataType()

virtual void vtkNRRDReader::SetPointDataType ( int  )
virtual

Point data field type.

◆ SetUseNativeOriginOff()

void vtkNRRDReader::SetUseNativeOriginOff ( )
inline

Use image center as origin.

Definition at line 140 of file vtkNRRDReader.h.

◆ SetUseNativeOriginOn()

void vtkNRRDReader::SetUseNativeOriginOn ( )
inline

Use image origin from the file.

Definition at line 133 of file vtkNRRDReader.h.

◆ tenSpaceDirectionReduce()

int vtkNRRDReader::tenSpaceDirectionReduce ( Nrrd *  nout,
const Nrrd *  nin,
double  SD[9] 
)
protected

◆ VTKToNrrdPixelType()

int vtkNRRDReader::VTKToNrrdPixelType ( const int  vtkPixelType) const
inline

case nrrdTypeLLong: return LONG ; break; case nrrdTypeULong: return ULONG; break;

Definition at line 189 of file vtkNRRDReader.h.

Member Data Documentation

◆ AxisLabels

std::map<unsigned int, std::string> vtkNRRDReader::AxisLabels
protected

Definition at line 258 of file vtkNRRDReader.h.

◆ AxisUnits

std::map<unsigned int, std::string> vtkNRRDReader::AxisUnits
protected

Definition at line 259 of file vtkNRRDReader.h.

◆ CurrentFileName

std::string vtkNRRDReader::CurrentFileName
protected

Definition at line 244 of file vtkNRRDReader.h.

◆ DataType

int vtkNRRDReader::DataType
protected

Definition at line 251 of file vtkNRRDReader.h.

◆ HeaderKeys

std::string vtkNRRDReader::HeaderKeys
protected

Definition at line 256 of file vtkNRRDReader.h.

◆ HeaderKeyValue

std::map<std::string, std::string> vtkNRRDReader::HeaderKeyValue
protected

Definition at line 255 of file vtkNRRDReader.h.

◆ MeasurementFrameMatrix

vtkSmartPointer<vtkMatrix4x4> vtkNRRDReader::MeasurementFrameMatrix
protected

Definition at line 241 of file vtkNRRDReader.h.

◆ nrrd

Nrrd* vtkNRRDReader::nrrd
protected

Definition at line 246 of file vtkNRRDReader.h.

◆ NRRDWorldToRasMatrix

vtkSmartPointer<vtkMatrix4x4> vtkNRRDReader::NRRDWorldToRasMatrix
protected

Definition at line 242 of file vtkNRRDReader.h.

◆ NumberOfComponents

int vtkNRRDReader::NumberOfComponents
protected

Definition at line 252 of file vtkNRRDReader.h.

◆ PointDataType

int vtkNRRDReader::PointDataType
protected

Definition at line 250 of file vtkNRRDReader.h.

◆ RasToIjkMatrix

vtkSmartPointer<vtkMatrix4x4> vtkNRRDReader::RasToIjkMatrix
protected

Definition at line 240 of file vtkNRRDReader.h.

◆ ReadStatus

int vtkNRRDReader::ReadStatus
protected

Definition at line 248 of file vtkNRRDReader.h.

◆ UseNativeOrigin

bool vtkNRRDReader::UseNativeOrigin
protected

Definition at line 253 of file vtkNRRDReader.h.


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