CustusX  16.5.0-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::TransformFile Class Reference

File format for storing a 4x4 matrix.The read/write methods emit error messages if you dont use the ok flag. More...

#include <cxTransformFile.h>

Public Member Functions

 TransformFile (QString fileName="")
 
QString fileName () const
 
Transform3D read (bool *ok=0)
 
void write (const Transform3D &transform)
 

Detailed Description

File format for storing a 4x4 matrix.

The read/write methods emit error messages if you dont use the ok flag.

Date
Feb 28, 2012
Author
Christian Askeland, SINTEF

Definition at line 58 of file cxTransformFile.h.

Constructor & Destructor Documentation

cx::TransformFile::TransformFile ( QString  fileName = "")

Definition at line 44 of file cxTransformFile.cpp.

Member Function Documentation

QString cx::TransformFile::fileName ( ) const
inline

Definition at line 62 of file cxTransformFile.h.

Transform3D cx::TransformFile::read ( bool *  ok = 0)

Reads a whitespace separated 4x4 matrix from file

Parameters
oksuccess flag. If NULL, logger warnings are emitted instead
Returns
The matrix

Definition at line 54 of file cxTransformFile.cpp.

void cx::TransformFile::write ( const Transform3D transform)

Definition at line 86 of file cxTransformFile.cpp.


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