15 #ifndef QmitkIGIUtils_h
16 #define QmitkIGIUtils_h
18 #include "niftkIGIGuiExports.h"
19 #include <mitkSurface.h>
21 #include <vtkMatrix4x4.h>
23 #include "igtlTypes.h"
57 NIFTKIGIGUI_EXPORT mitk::Surface::Pointer
MakeLaparoscope(QString& rigidBodyFilename,
const vtkMatrix4x4& handeye );
64 NIFTKIGIGUI_EXPORT mitk::Surface::Pointer
MakePointer(QString& rigidBodyFilename,
const vtkMatrix4x4& handeye );
71 NIFTKIGIGUI_EXPORT mitk::Surface::Pointer
MakeReference(QString& rigidBodyFilename,
const vtkMatrix4x4& handeye );
79 NIFTKIGIGUI_EXPORT mitk::Surface::Pointer
MakeAWall(
const int& whichwall,
const float&
size = 3000,
80 const float& xOffset = 0.0 ,
const float& yOffset = 0.0,
const float& zOffset = -0.3,
81 const float& thickness = 10.0);
NIFTKIGIGUI_EXPORT std::vector< float[3]> ReadRigidBodyDefinitionFile(QString &rigidBodyFilename)
get the IRED positions from a rigid body definition file
NIFTKIGIGUI_EXPORT void ApplyTransformToSelectedNodes(const vtkMatrix4x4 &transform, const niftk::DataStorageCheckableComboBox &comboBox)
Applies (sets, i.e. copies) the given transform to all checked nodes in the comboBox.
Definition: QmitkIGIUtils.cxx:177
NIFTKIGIGUI_EXPORT mitk::Surface::Pointer MakeLaparoscope(QString &rigidBodyFilename, const vtkMatrix4x4 &handeye)
For visualisation purposes, creates a representation of the laparoscope.
Definition: niftkDataStorageCheckableComboBox.h:51
NIFTKIGIGUI_EXPORT void ComposeTransformWithSelectedNodes(const vtkMatrix4x4 &transform, const niftk::DataStorageCheckableComboBox &comboBox)
Composes the given transform with all checked nodes in the comboBox.
Definition: QmitkIGIUtils.cxx:184
NIFTKIGIGUI_EXPORT mitk::Surface::Pointer LoadSurfaceFromSTLFile(QString &surfaceFilename)
For testing purposes, loads an STL file.
GLuint GLenum GLenum transform
Definition: glew.h:12775
NIFTKIGIGUI_EXPORT QString CreateTestDeviceDescriptor()
Creates a test NDI Polaris Vicra message, used for initial testing.
Definition: QmitkIGIUtils.cxx:64
NIFTKIGIGUI_EXPORT mitk::Surface::Pointer MakeAWall(const int &whichwall, const float &size=3000, 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.
Definition: mitkMakeGeometry.cxx:76
NIFTKIGIGUI_EXPORT QString ConvertNanoSecondsToString(const igtlUint32 &nanosec)
Converts an integer number of nanoseconds to a 9 digit string, prefixed with zeros.
Definition: QmitkIGIUtils.cxx:83
NIFTKIGIGUI_EXPORT mitk::Surface::Pointer MakePointer(QString &rigidBodyFilename, const vtkMatrix4x4 &handeye)
For visualisation purposes, creates a representation of the pointer.
GLuint GLenum matrix
Definition: glew.h:12775
GLsizeiptr size
Definition: glew.h:1665
NIFTKIGIGUI_EXPORT bool SaveMatrixToFile(const vtkMatrix4x4 &matrix, const QString &fileName)
Saves the matrix to file, returning true if successful and false otherwise. This function also raises...
Definition: QmitkIGIUtils.cxx:91
NIFTKIGIGUI_EXPORT mitk::Surface::Pointer MakeReference(QString &rigidBodyFilename, const vtkMatrix4x4 &handeye)
For visualisation purposes, creates a representation of the reference.