fw4spl
fwDataTools::TransformationMatrix3D Class Reference

TransformationMatrix3D performs matrices computations. More...

#include <TransformationMatrix3D.hpp>

Static Public Member Functions

static FWDATATOOLS_API bool invert (const ::fwData::TransformationMatrix3D::csptr &_input,::fwData::TransformationMatrix3D::sptr &_output)
 Invert a matrix. More...
 
static FWDATATOOLS_API void multiply (const ::fwData::TransformationMatrix3D::csptr &_trfA, const ::fwData::TransformationMatrix3D::csptr &_trfB,::fwData::TransformationMatrix3D::sptr &_output)
 Multiply two matrices. More...
 
static FWDATATOOLS_API void identity (::fwData::TransformationMatrix3D::sptr &_trf)
 Set the matrix to identity. More...
 
static FWDATATOOLS_API void multiply (const ::fwData::TransformationMatrix3D::csptr &_trf, const ::fwData::Point::csptr &_input,::fwData::Point::sptr &_output)
 Multiply a point and a matrix. More...
 
static FWDATATOOLS_API::glm::dmat4x4 getMatrixFromTF3D (const ::fwData::TransformationMatrix3D::csptr &_trf)
 Convert a fwData::TransformationMatrix3D into a GLM matrix. More...
 
static FWDATATOOLS_API void setTF3DFromMatrix (::fwData::TransformationMatrix3D::sptr &_trf, const ::glm::dmat4x4 &_input)
 Convert a GLM matrix into a fwData::TransformationMatrix3D. More...
 
static FWDATATOOLS_API bool isIdentity (const ::fwData::TransformationMatrix3D::csptr &_trf, const double _epsilon=1e-12)
 Return whether a fwData::TransformationMatrix3D is an identity matrix. More...
 

Detailed Description

TransformationMatrix3D performs matrices computations.

Definition at line 23 of file SrcLib/core/fwDataTools/include/fwDataTools/TransformationMatrix3D.hpp.

Member Function Documentation

glm::dmat4x4 fwDataTools::TransformationMatrix3D::getMatrixFromTF3D ( const ::fwData::TransformationMatrix3D::csptr &  _trf)
inlinestatic

Convert a fwData::TransformationMatrix3D into a GLM matrix.

Parameters
[in]_trfInput fwData::TransformationMatrix3D.
Returns
GLM matrix.

Definition at line 87 of file SrcLib/core/fwDataTools/include/fwDataTools/TransformationMatrix3D.hpp.

Referenced by fwDataTools::Mesh::shakePoint(), and uiVisuQt::STransformEditor::updating().

+ Here is the caller graph for this function:

void fwDataTools::TransformationMatrix3D::identity ( ::fwData::TransformationMatrix3D::sptr &  _trf)
static

Set the matrix to identity.

Parameters
[in,out]_trfMatrix we want to set to identity.

Definition at line 69 of file SrcLib/core/fwDataTools/src/fwDataTools/TransformationMatrix3D.cpp.

References multiply().

Referenced by uiMedDataQt::editor::SOrganTransformation::updating().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool fwDataTools::TransformationMatrix3D::invert ( const ::fwData::TransformationMatrix3D::csptr &  _input,
::fwData::TransformationMatrix3D::sptr &  _output 
)
static

Invert a matrix.

Parameters
[in]_inputInput matrix
[out]_outputInverted matrix.

Definition at line 17 of file SrcLib/core/fwDataTools/src/fwDataTools/TransformationMatrix3D.cpp.

bool fwDataTools::TransformationMatrix3D::isIdentity ( const ::fwData::TransformationMatrix3D::csptr &  _trf,
const double  _epsilon = 1e-12 
)
static

Return whether a fwData::TransformationMatrix3D is an identity matrix.

Parameters
[in]_trfInput fwData::TransformationMatrix3D.
[in]_epsilonPrecision of the test (default 1e-12)
Returns
boolean value: true if the matrix is identity, false otherwise.

Definition at line 104 of file SrcLib/core/fwDataTools/src/fwDataTools/TransformationMatrix3D.cpp.

void fwDataTools::TransformationMatrix3D::multiply ( const ::fwData::TransformationMatrix3D::csptr &  _trfA,
const ::fwData::TransformationMatrix3D::csptr &  _trfB,
::fwData::TransformationMatrix3D::sptr &  _output 
)
static

Multiply two matrices.

Parameters
[in]trfAFirst matrix.
[in]trfBSecond matrix.
[out]_outputOutput matrix.

Definition at line 42 of file SrcLib/core/fwDataTools/src/fwDataTools/TransformationMatrix3D.cpp.

Referenced by identity(), and fwDataTools::helper::PointList::transform().

+ Here is the caller graph for this function:

static FWDATATOOLS_API void fwDataTools::TransformationMatrix3D::multiply ( const ::fwData::TransformationMatrix3D::csptr &  _trf,
const ::fwData::Point::csptr &  _input,
::fwData::Point::sptr &  _output 
)
static

Multiply a point and a matrix.

Parameters
[in]_trfMatrix.
[in]_inputInput point.
[out]_outputOutput point.
void fwDataTools::TransformationMatrix3D::setTF3DFromMatrix ( ::fwData::TransformationMatrix3D::sptr &  _trf,
const ::glm::dmat4x4 &  _input 
)
inlinestatic

Convert a GLM matrix into a fwData::TransformationMatrix3D.

Parameters
[out]_trfOutput fwData::TransformationMatrix3D.
[in]_inputInput GLM matrix.

Definition at line 103 of file SrcLib/core/fwDataTools/include/fwDataTools/TransformationMatrix3D.hpp.

Referenced by uiVisuQt::STransformEditor::updating().

+ Here is the caller graph for this function:


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