SOFA API  7352f41a
Open source framework for multi-physics simuation
sofa::helper::visual::Transformation Class Reference

#include <Transformation.h>

Inheritance diagram for sofa::helper::visual::Transformation:

Public Attributes

SReal translation [3]
 
SReal scale [3]
 
SReal rotation [4][4]
 
SReal objectCenter [3]
 

Public Member Functions

 Transformation ()
 
virtual ~Transformation ()
 
 Transformation (const Transformation &other)
 
Transformationoperator= (const Transformation &transform)
 
virtual void Apply ()
 
virtual void ApplyWithCentring ()
 
virtual void ApplyInverse ()
 
template<class Vector >
Vector operator* (Vector v) const
 

Protected Member Functions

void InvertTransRotMatrix (SReal matrix[4][4])
 
void InvertTransRotMatrix (SReal sMatrix[4][4], SReal dMatrix[4][4])
 

Attribute details

◆ objectCenter

SReal sofa::helper::visual::Transformation::objectCenter[3]

◆ rotation

SReal sofa::helper::visual::Transformation::rotation[4][4]

◆ scale

SReal sofa::helper::visual::Transformation::scale[3]

◆ translation

SReal sofa::helper::visual::Transformation::translation[3]

Constructor details

◆ Transformation() [1/2]

sofa::helper::visual::Transformation::Transformation ( )

◆ ~Transformation()

sofa::helper::visual::Transformation::~Transformation ( )
virtual

◆ Transformation() [2/2]

sofa::helper::visual::Transformation::Transformation ( const Transformation other)

Function details

◆ Apply()

virtual void sofa::helper::visual::Transformation::Apply ( )
inlinevirtual

Reimplemented in sofa::gl::TransformationGL.

◆ ApplyInverse()

virtual void sofa::helper::visual::Transformation::ApplyInverse ( )
inlinevirtual

Reimplemented in sofa::gl::TransformationGL.

◆ ApplyWithCentring()

virtual void sofa::helper::visual::Transformation::ApplyWithCentring ( )
inlinevirtual

Reimplemented in sofa::gl::TransformationGL.

◆ InvertTransRotMatrix() [1/2]

void sofa::helper::visual::Transformation::InvertTransRotMatrix ( SReal  matrix[4][4])
protected

◆ InvertTransRotMatrix() [2/2]

void sofa::helper::visual::Transformation::InvertTransRotMatrix ( SReal  sMatrix[4][4],
SReal  dMatrix[4][4] 
)
protected

◆ operator*()

template<class Vector >
Vector sofa::helper::visual::Transformation::operator* ( Vector  v) const
inline

◆ operator=()

Transformation & sofa::helper::visual::Transformation::operator= ( const Transformation transform)