Slicer  5.0
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
[legend]
Collaboration diagram for vtkTeemNRRDReader:
Collaboration graph
[legend]

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
vtkImageReader2

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 ( )
protected

◆ ~vtkTeemNRRDReader()

vtkTeemNRRDReader::~vtkTeemNRRDReader ( )
overrideprotected

Member Function Documentation

◆ AllocateOutputData() [1/2]

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

◆ AllocateOutputData() [2/2]

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

Definition at line 243 of file vtkTeemNRRDReader.h.

◆ AllocatePointData()

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

◆ CanReadFile()

int vtkTeemNRRDReader::CanReadFile ( const char *  filename)
override

is the given file name a NRRD file?

◆ ExecuteDataWithInformation()

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

◆ ExecuteInformation()

void vtkTeemNRRDReader::ExecuteInformation ( )
overrideprotected

◆ 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 ( )
virtual

◆ GetDataArrayName()

virtual std::string vtkTeemNRRDReader::GetDataArrayName ( )
virtual

◆ GetDataType()

virtual int vtkTeemNRRDReader::GetDataType ( )
virtual

◆ GetDescriptiveName()

const char* vtkTeemNRRDReader::GetDescriptiveName ( )
inlineoverride


A descriptive name for this format

Definition at line 109 of file vtkTeemNRRDReader.h.

◆ GetFileExtensions()

const char* vtkTeemNRRDReader::GetFileExtensions ( )
inlineoverride


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 ( )
virtual

◆ GetPointDataType()

virtual int vtkTeemNRRDReader::GetPointDataType ( )
virtual

◆ GetPointType()

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

◆ GetRasToIjkMatrix()

vtkMatrix4x4* vtkTeemNRRDReader::GetRasToIjkMatrix ( )


Returns a IJK to RAS transformation matrix

◆ GetReadStatus()

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

◆ IsTypeOf()

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

◆ New()

static vtkTeemNRRDReader* vtkTeemNRRDReader::New ( )
static

◆ NrrdToVTKScalarType()

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

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 
)
override

◆ SafeDownCast()

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

◆ SetDataArrayName()

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

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  )
virtual


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

◆ SetNumberOfComponents()

virtual void vtkTeemNRRDReader::SetNumberOfComponents ( int  )
virtual

◆ SetPointDataType()

virtual void vtkTeemNRRDReader::SetPointDataType ( int  )
virtual


Point data field type

◆ SetUseNativeOriginOff()

void vtkTeemNRRDReader::SetUseNativeOriginOff ( )
inline


Use image center as origin

Definition at line 145 of file vtkTeemNRRDReader.h.

◆ SetUseNativeOriginOn()

void vtkTeemNRRDReader::SetUseNativeOriginOn ( )
inline


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] 
)
protected

◆ VTKToNrrdPixelType()

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

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
protected

Definition at line 272 of file vtkTeemNRRDReader.h.

◆ AxisUnits

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

Definition at line 273 of file vtkTeemNRRDReader.h.

◆ CurrentFileName

std::string vtkTeemNRRDReader::CurrentFileName
protected

Definition at line 257 of file vtkTeemNRRDReader.h.

◆ DataArrayName

std::string vtkTeemNRRDReader::DataArrayName
protected

Definition at line 267 of file vtkTeemNRRDReader.h.

◆ DataType

int vtkTeemNRRDReader::DataType
protected

Definition at line 264 of file vtkTeemNRRDReader.h.

◆ HeaderKeys

std::string vtkTeemNRRDReader::HeaderKeys
protected

Definition at line 270 of file vtkTeemNRRDReader.h.

◆ HeaderKeyValue

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

Definition at line 269 of file vtkTeemNRRDReader.h.

◆ MeasurementFrameMatrix

vtkSmartPointer<vtkMatrix4x4> vtkTeemNRRDReader::MeasurementFrameMatrix
protected

Definition at line 254 of file vtkTeemNRRDReader.h.

◆ nrrd

Nrrd* vtkTeemNRRDReader::nrrd
protected

Definition at line 259 of file vtkTeemNRRDReader.h.

◆ NRRDWorldToRasMatrix

vtkSmartPointer<vtkMatrix4x4> vtkTeemNRRDReader::NRRDWorldToRasMatrix
protected

Definition at line 255 of file vtkTeemNRRDReader.h.

◆ NumberOfComponents

int vtkTeemNRRDReader::NumberOfComponents
protected

Definition at line 265 of file vtkTeemNRRDReader.h.

◆ PointDataType

int vtkTeemNRRDReader::PointDataType
protected

Definition at line 263 of file vtkTeemNRRDReader.h.

◆ RasToIjkMatrix

vtkSmartPointer<vtkMatrix4x4> vtkTeemNRRDReader::RasToIjkMatrix
protected

Definition at line 253 of file vtkTeemNRRDReader.h.

◆ ReadStatus

int vtkTeemNRRDReader::ReadStatus
protected

Definition at line 261 of file vtkTeemNRRDReader.h.

◆ UseNativeOrigin

bool vtkTeemNRRDReader::UseNativeOrigin
protected

Definition at line 266 of file vtkTeemNRRDReader.h.


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