Slicer  5.3
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
vtkTeemNRRDReader Class Reference

Reads Nearly Raw Raster Data files. More...

#include <Libs/vtkTeem/vtkTeemNRRDReader.h>

Inheritance diagram for vtkTeemNRRDReader:
Inheritance graph
Collaboration diagram for vtkTeemNRRDReader:
Collaboration graph

Public Types

typedef vtkMedicalImageReader2 Superclass

Public Member Functions

vtkImageData * AllocateOutputData (vtkDataObject *out, vtkInformation *outInfo) override
void AllocateOutputData (vtkImageData *out, vtkInformation *outInfo, int *uExtent) override
void AllocatePointData (vtkImageData *out, vtkInformation *outInfo)
int CanReadFile (const char *filename) 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 std::string GetDataArrayName ()
virtual int GetDataType ()
const char * GetDescriptiveName () override
A descriptive name for this format More...
const char * GetFileExtensions () override
Valid extentsions More...
const char * GetHeaderKeys ()
const std::map< std::string, std::string > GetHeaderKeysMap ()
const 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
void PrintSelf (ostream &os, vtkIndent indent) override
virtual void SetDataArrayName (std::string)
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 vtkTeemNRRDReaderNew ()
static vtkTeemNRRDReaderSafeDownCast (vtkObject *o)

Protected Member Functions

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

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
std::string DataArrayName
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

Definition at line 54 of file vtkTeemNRRDReader.h.

Member Typedef Documentation

◆ Superclass

typedef vtkMedicalImageReader2 vtkTeemNRRDReader::Superclass

Definition at line 59 of file vtkTeemNRRDReader.h.

Constructor & Destructor Documentation

◆ vtkTeemNRRDReader()

vtkTeemNRRDReader::vtkTeemNRRDReader ( )

◆ ~vtkTeemNRRDReader()

vtkTeemNRRDReader::~vtkTeemNRRDReader ( )

Member Function Documentation

◆ AllocateOutputData() [1/2]

vtkImageData* vtkTeemNRRDReader::AllocateOutputData ( vtkDataObject *  out,
vtkInformation *  outInfo 

◆ AllocateOutputData() [2/2]

void vtkTeemNRRDReader::AllocateOutputData ( vtkImageData *  out,
vtkInformation *  outInfo,
int *  uExtent 

Definition at line 243 of file vtkTeemNRRDReader.h.

◆ AllocatePointData()

void vtkTeemNRRDReader::AllocatePointData ( vtkImageData *  out,
vtkInformation *  outInfo 

◆ CanReadFile()

int vtkTeemNRRDReader::CanReadFile ( const char *  filename)

is the given file name a NRRD file?

◆ ExecuteDataWithInformation()

void vtkTeemNRRDReader::ExecuteDataWithInformation ( vtkDataObject *  output,
vtkInformation *  outInfo 

◆ ExecuteInformation()

void vtkTeemNRRDReader::ExecuteInformation ( )

◆ GetAxisLabel()

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

Get label for specified axis.

◆ GetAxisUnit()

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

Get unit for specified axis.

◆ GetClassName()

virtual const char* vtkTeemNRRDReader::GetClassName ( )

◆ GetDataArrayName()

virtual std::string vtkTeemNRRDReader::GetDataArrayName ( )

◆ GetDataType()

virtual int vtkTeemNRRDReader::GetDataType ( )

◆ GetDescriptiveName()

const char* vtkTeemNRRDReader::GetDescriptiveName ( )

A descriptive name for this format

Definition at line 109 of file vtkTeemNRRDReader.h.

◆ GetFileExtensions()

const char* vtkTeemNRRDReader::GetFileExtensions ( )

Valid extentsions

Definition at line 102 of file vtkTeemNRRDReader.h.

◆ GetHeaderKeys()

const char* vtkTeemNRRDReader::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.

◆ GetHeaderKeysMap()

const std::map<std::string, std::string> vtkTeemNRRDReader::GetHeaderKeysMap ( )

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

◆ GetHeaderKeysVector()

const std::vector<std::string> vtkTeemNRRDReader::GetHeaderKeysVector ( )

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

◆ GetHeaderValue()

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

Get a value given a key in the header

◆ GetMeasurementFrameMatrix()

vtkMatrix4x4* vtkTeemNRRDReader::GetMeasurementFrameMatrix ( )

Returns the measurement frame matrix used for tensor valued data.

◆ GetNumberOfComponents()

virtual int vtkTeemNRRDReader::GetNumberOfComponents ( )

◆ GetPointDataType()

virtual int vtkTeemNRRDReader::GetPointDataType ( )

◆ GetPointType()

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

◆ GetRasToIjkMatrix()

vtkMatrix4x4* vtkTeemNRRDReader::GetRasToIjkMatrix ( )

Returns a IJK to RAS transformation matrix

◆ GetReadStatus()

virtual int vtkTeemNRRDReader::GetReadStatus ( )

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 vtkTeemNRRDReader::IsA ( const char *  type)

◆ IsTypeOf()

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

◆ New()

static vtkTeemNRRDReader* vtkTeemNRRDReader::New ( )

◆ NrrdToVTKScalarType()

int vtkTeemNRRDReader::NrrdToVTKScalarType ( const int  nrrdPixelType) const

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

Definition at line 158 of file vtkTeemNRRDReader.h.

◆ PrintSelf()

void vtkTeemNRRDReader::PrintSelf ( ostream &  os,
vtkIndent  indent 

◆ SafeDownCast()

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

◆ SetDataArrayName()

virtual void vtkTeemNRRDReader::SetDataArrayName ( std::string  )

Name of the point data array that voxel data will be stored in. Setting a custom value may be useful for example when probing the image because then the probing result will be stored using this array name. Default value is NRRDImage.

◆ SetDataType()

virtual void vtkTeemNRRDReader::SetDataType ( int  )

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

◆ SetNumberOfComponents()

virtual void vtkTeemNRRDReader::SetNumberOfComponents ( int  )

◆ SetPointDataType()

virtual void vtkTeemNRRDReader::SetPointDataType ( int  )

Point data field type

◆ SetUseNativeOriginOff()

void vtkTeemNRRDReader::SetUseNativeOriginOff ( )

Use image center as origin

Definition at line 145 of file vtkTeemNRRDReader.h.

◆ SetUseNativeOriginOn()

void vtkTeemNRRDReader::SetUseNativeOriginOn ( )

Use image origin from the file

Definition at line 138 of file vtkTeemNRRDReader.h.

◆ tenSpaceDirectionReduce()

int vtkTeemNRRDReader::tenSpaceDirectionReduce ( Nrrd *  nout,
const Nrrd *  nin,
double  SD[9] 

◆ VTKToNrrdPixelType()

int vtkTeemNRRDReader::VTKToNrrdPixelType ( const int  vtkPixelType) const

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

Definition at line 202 of file vtkTeemNRRDReader.h.

Member Data Documentation

◆ AxisLabels

std::map<unsigned int, std::string> vtkTeemNRRDReader::AxisLabels

Definition at line 272 of file vtkTeemNRRDReader.h.

◆ AxisUnits

std::map<unsigned int, std::string> vtkTeemNRRDReader::AxisUnits

Definition at line 273 of file vtkTeemNRRDReader.h.

◆ CurrentFileName

std::string vtkTeemNRRDReader::CurrentFileName

Definition at line 257 of file vtkTeemNRRDReader.h.

◆ DataArrayName

std::string vtkTeemNRRDReader::DataArrayName

Definition at line 267 of file vtkTeemNRRDReader.h.

◆ DataType

int vtkTeemNRRDReader::DataType

Definition at line 264 of file vtkTeemNRRDReader.h.

◆ HeaderKeys

std::string vtkTeemNRRDReader::HeaderKeys

Definition at line 270 of file vtkTeemNRRDReader.h.

◆ HeaderKeyValue

std::map<std::string, std::string> vtkTeemNRRDReader::HeaderKeyValue

Definition at line 269 of file vtkTeemNRRDReader.h.

◆ MeasurementFrameMatrix

vtkSmartPointer<vtkMatrix4x4> vtkTeemNRRDReader::MeasurementFrameMatrix

Definition at line 254 of file vtkTeemNRRDReader.h.

◆ nrrd

Nrrd* vtkTeemNRRDReader::nrrd

Definition at line 259 of file vtkTeemNRRDReader.h.

◆ NRRDWorldToRasMatrix

vtkSmartPointer<vtkMatrix4x4> vtkTeemNRRDReader::NRRDWorldToRasMatrix

Definition at line 255 of file vtkTeemNRRDReader.h.

◆ NumberOfComponents

int vtkTeemNRRDReader::NumberOfComponents

Definition at line 265 of file vtkTeemNRRDReader.h.

◆ PointDataType

int vtkTeemNRRDReader::PointDataType

Definition at line 263 of file vtkTeemNRRDReader.h.

◆ RasToIjkMatrix

vtkSmartPointer<vtkMatrix4x4> vtkTeemNRRDReader::RasToIjkMatrix

Definition at line 253 of file vtkTeemNRRDReader.h.

◆ ReadStatus

int vtkTeemNRRDReader::ReadStatus

Definition at line 261 of file vtkTeemNRRDReader.h.

◆ UseNativeOrigin

bool vtkTeemNRRDReader::UseNativeOrigin

Definition at line 266 of file vtkTeemNRRDReader.h.

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