NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
niftk::CoordinateAxesData Class Reference

Class to enable the data to represent coordinate axes to be added as a mitk::BaseData to the mitk::DataStorage. This class turns out to be very simple, as the BaseData contains the mitk::BaseGeometry, which contains all the information we need. So this class is effectively a dummy class. More...

Inheritance diagram for niftk::CoordinateAxesData:
Inheritance graph
[legend]
Collaboration diagram for niftk::CoordinateAxesData:
Collaboration graph
[legend]

Public Types

typedef itk::ImageRegion< 5 > RegionType
 
typedef RegionType::IndexType IndexType
 
typedef RegionType::SizeType SizeType
 

Public Member Functions

 mitkClassMacro (CoordinateAxesData, mitk::BaseData) static Pointer New()
 
void SetRequestedRegionToLargestPossibleRegion () override
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
virtual bool VerifyRequestedRegion () override
 
virtual void SetRequestedRegion (const itk::DataObject *data) override
 
const RegionTypeGetLargestPossibleRegion () const
 
virtual const RegionTypeGetRequestedRegion () const
 
virtual void UpdateOutputInformation () override
 
void GetVtkMatrix (vtkMatrix4x4 &matrixToWriteTo) const
 
void SetVtkMatrix (const vtkMatrix4x4 &matrix)
 
bool SaveToFile (const std::string &fileName) const
 
mitk::Point3D MultiplyPoint (const mitk::Point3D &point) const
 Warning: slow method to transform point by current matrix. More...
 
void SetTranslation (const mitk::Point3D &translation)
 Utility method for unit testing that will simply set the transformation to be equal to a translation. More...
 
void SetTranslation (double tx, double ty, double tz)
 Utility method for unit testing that will simply set the transformation to be equal to a translation. More...
 

Static Public Attributes

static const char * FILE_NAME = "CoordinateAxesTransform.4x4"
 
static const char * FILE_EXTENSION = ".4x4"
 
static const char * FILE_EXTENSION_WITH_ASTERISK = "*.4x4"
 
static const char * FILE_DIALOG_PATTERN = "Coordinate Axes Transform (*.4x4)"
 
static const char * FILE_DIALOG_NAME = "Coordinate Axes Transform 4x4"
 

Protected Member Functions

 CoordinateAxesData ()
 
 ~CoordinateAxesData ()
 

Detailed Description

Class to enable the data to represent coordinate axes to be added as a mitk::BaseData to the mitk::DataStorage. This class turns out to be very simple, as the BaseData contains the mitk::BaseGeometry, which contains all the information we need. So this class is effectively a dummy class.

Member Typedef Documentation

typedef RegionType::IndexType niftk::CoordinateAxesData::IndexType
typedef itk::ImageRegion<5> niftk::CoordinateAxesData::RegionType
typedef RegionType::SizeType niftk::CoordinateAxesData::SizeType

Constructor & Destructor Documentation

niftk::CoordinateAxesData::CoordinateAxesData ( )
protected
niftk::CoordinateAxesData::~CoordinateAxesData ( )
protected

Member Function Documentation

const CoordinateAxesData::RegionType & niftk::CoordinateAxesData::GetLargestPossibleRegion ( ) const
const CoordinateAxesData::RegionType & niftk::CoordinateAxesData::GetRequestedRegion ( ) const
virtual
void niftk::CoordinateAxesData::GetVtkMatrix ( vtkMatrix4x4 &  matrixToWriteTo) const
niftk::CoordinateAxesData::mitkClassMacro ( CoordinateAxesData  ,
mitk::BaseData   
)
mitk::Point3D niftk::CoordinateAxesData::MultiplyPoint ( const mitk::Point3D &  point) const

Warning: slow method to transform point by current matrix.

bool niftk::CoordinateAxesData::RequestedRegionIsOutsideOfTheBufferedRegion ( )
override
bool niftk::CoordinateAxesData::SaveToFile ( const std::string fileName) const
void niftk::CoordinateAxesData::SetRequestedRegion ( const itk::DataObject *  data)
overridevirtual
void niftk::CoordinateAxesData::SetRequestedRegionToLargestPossibleRegion ( )
override
void niftk::CoordinateAxesData::SetTranslation ( const mitk::Point3D &  translation)

Utility method for unit testing that will simply set the transformation to be equal to a translation.

void niftk::CoordinateAxesData::SetTranslation ( double  tx,
double  ty,
double  tz 
)

Utility method for unit testing that will simply set the transformation to be equal to a translation.

void niftk::CoordinateAxesData::SetVtkMatrix ( const vtkMatrix4x4 &  matrix)
void niftk::CoordinateAxesData::UpdateOutputInformation ( )
overridevirtual
bool niftk::CoordinateAxesData::VerifyRequestedRegion ( )
overridevirtual

Member Data Documentation

const char * niftk::CoordinateAxesData::FILE_DIALOG_NAME = "Coordinate Axes Transform 4x4"
static
const char * niftk::CoordinateAxesData::FILE_DIALOG_PATTERN = "Coordinate Axes Transform (*.4x4)"
static
const char * niftk::CoordinateAxesData::FILE_EXTENSION = ".4x4"
static
const char * niftk::CoordinateAxesData::FILE_EXTENSION_WITH_ASTERISK = "*.4x4"
static
const char * niftk::CoordinateAxesData::FILE_NAME = "CoordinateAxesTransform.4x4"
static

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