NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Functions
QmitkIGIUtils.cxx File Reference
Include dependency graph for QmitkIGIUtils.cxx:

Functions

mitk::Surface::Pointer LoadSurfaceFromSTLFile (const QString &surfaceFilename)
 
QString CreateTestDeviceDescriptor ()
 Creates a test NDI Polaris Vicra message, used for initial testing. More...
 
QString ConvertNanoSecondsToString (const igtlUint32 &nanosec)
 Converts an integer number of nanoseconds to a 9 digit string, prefixed with zeros. More...
 
bool SaveMatrixToFile (const vtkMatrix4x4 &matrix, const QString &fileName)
 Saves the matrix to file, returning true if successful and false otherwise. This function also raises QMessage boxes, so, possibly no need to return the true/false status. More...
 
void ApplyMatricesToAllTransformsInCheckbox (const vtkMatrix4x4 &transform, const niftk::DataStorageCheckableComboBox &comboBox, bool composeRatherThanSet)
 
void ApplyTransformToSelectedNodes (const vtkMatrix4x4 &transform, const niftk::DataStorageCheckableComboBox &comboBox)
 Applies (sets, i.e. copies) the given transform to all checked nodes in the comboBox. More...
 
void ComposeTransformWithSelectedNodes (const vtkMatrix4x4 &transform, const niftk::DataStorageCheckableComboBox &comboBox)
 Composes the given transform with all checked nodes in the comboBox. More...
 
mitk::Surface::Pointer MakeAWall (const int &whichwall, const float &size, const float &xOffset, const float &yOffset, const float &zOffset, const float &thickness)
 For visualisation purposes, make a wall of a cube. More...
 

Function Documentation

void ApplyMatricesToAllTransformsInCheckbox ( const vtkMatrix4x4 &  transform,
const niftk::DataStorageCheckableComboBox comboBox,
bool  composeRatherThanSet 
)
void ApplyTransformToSelectedNodes ( const vtkMatrix4x4 &  transform,
const niftk::DataStorageCheckableComboBox comboBox 
)

Applies (sets, i.e. copies) the given transform to all checked nodes in the comboBox.

void ComposeTransformWithSelectedNodes ( const vtkMatrix4x4 &  transform,
const niftk::DataStorageCheckableComboBox comboBox 
)

Composes the given transform with all checked nodes in the comboBox.

QString ConvertNanoSecondsToString ( const igtlUint32 &  nanosec)

Converts an integer number of nanoseconds to a 9 digit string, prefixed with zeros.

QString CreateTestDeviceDescriptor ( )

Creates a test NDI Polaris Vicra message, used for initial testing.

mitk::Surface::Pointer LoadSurfaceFromSTLFile ( const QString &  surfaceFilename)
mitk::Surface::Pointer MakeAWall ( const int whichwall,
const float &  size = 4000,
const float &  xOffset = 0.0,
const float &  yOffset = 0.0,
const float &  zOffset = -0.3,
const float &  thickness = 10.0 
)

For visualisation purposes, make a wall of a cube.

Parameters
thesize of the cube in mm
whichwall to make
thexoffset, room will be centred at x= size * xOffset
bool SaveMatrixToFile ( const vtkMatrix4x4 &  matrix,
const QString &  fileName 
)

Saves the matrix to file, returning true if successful and false otherwise. This function also raises QMessage boxes, so, possibly no need to return the true/false status.