Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Repere Class Reference

Frame class. More...

#include <Repere.h>

Inheritance diagram for Repere:
Inheritance graph
[legend]
Collaboration diagram for Repere:
Collaboration graph
[legend]

Public Member Functions

 Repere ()
 Constructors. More...
 
 Repere (vec3 _U, vec3 _V, vec3 _W, vec3 _O)
 
 Repere (const Repere &repere)
 
virtual ~Repere ()
 Destructor. More...
 
void set (vec3 _U, vec3 _V, vec3 _W, vec3 _O)
 Set global coordinates of local axis U,V,W and origin O. More...
 
void setU (vec3 _U)
 
void setV (vec3 _V)
 
void setW (vec3 _W)
 
void setO (vec3 _O)
 
vec3 getU () const
 Get global coordinates of local axis U,V,W and origin O. More...
 
vec3 getV () const
 
vec3 getW () const
 
vec3 getO () const
 
vec3 vectorFromLocalToGlobal (const vec3 &local)
 Get global coordinates of vector expressed in local coordinates. More...
 
vec3 vectorFromGlobalToLocal (const vec3 &global)
 Get local coordinates of vector expressed in global coordinates. More...
 
vec3 positionFromLocalToGlobal (const vec3 &local)
 Get global coordinates of a point expressed in local coordinates. More...
 
vec3 positionFromGlobalToLocal (const vec3 &global)
 Get local coordinates of a point expressed in global coordinates. More...
 
- Public Member Functions inherited from Base
 Base ()
 Default constructor. More...
 
 Base (const Base &other)
 Copy constructor. More...
 
virtual ~Base ()
 Destructor. More...
 
std::string getName ()
 Get the name of the object. More...
 
void setName (const std::string &_name)
 Set the name of the object. More...
 

Protected Member Functions

void updateMatrices ()
 Update the global and local frame matrices. More...
 

Protected Attributes

vec3 U
 Coordinates of local axis U in global frame. More...
 
vec3 V
 Coordinates of local axis V in global frame. More...
 
vec3 W
 Coordinates of local axis W in global frame. More...
 
vec3 O
 Origin of the local frame in the global frame. More...
 
decimal LtoG [4][4]
 Local to global frame matrix. More...
 
decimal GtoL [4][4]
 Global to local frame matrix. More...
 
- Protected Attributes inherited from Base
std::string name
 Each instantiated object may be named. More...
 

Detailed Description

Frame class.

Definition at line 25 of file Repere.h.

Constructor & Destructor Documentation

◆ Repere() [1/3]

Repere::Repere ( )
inline

Constructors.

Definition at line 31 of file Repere.h.

◆ Repere() [2/3]

Repere::Repere ( vec3  _U,
vec3  _V,
vec3  _W,
vec3  _O 
)

Definition at line 18 of file Repere.cpp.

Here is the call graph for this function:

◆ Repere() [3/3]

Repere::Repere ( const Repere repere)

Definition at line 31 of file Repere.cpp.

Here is the call graph for this function:

◆ ~Repere()

virtual Repere::~Repere ( )
inlinevirtual

Destructor.

Definition at line 36 of file Repere.h.

Member Function Documentation

◆ getO()

vec3 Repere::getO ( ) const
inline

Definition at line 49 of file Repere.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getU()

vec3 Repere::getU ( ) const
inline

Get global coordinates of local axis U,V,W and origin O.

Definition at line 46 of file Repere.h.

Here is the caller graph for this function:

◆ getV()

vec3 Repere::getV ( ) const
inline

Definition at line 47 of file Repere.h.

Here is the caller graph for this function:

◆ getW()

vec3 Repere::getW ( ) const
inline

Definition at line 48 of file Repere.h.

Here is the caller graph for this function:

◆ positionFromGlobalToLocal()

vec3 Repere::positionFromGlobalToLocal ( const vec3 &  global)

Get local coordinates of a point expressed in global coordinates.

Definition at line 98 of file Repere.cpp.

Here is the caller graph for this function:

◆ positionFromLocalToGlobal()

vec3 Repere::positionFromLocalToGlobal ( const vec3 &  local)

Get global coordinates of a point expressed in local coordinates.

Definition at line 83 of file Repere.cpp.

Here is the caller graph for this function:

◆ set()

void Repere::set ( vec3  _U,
vec3  _V,
vec3  _W,
vec3  _O 
)
inline

Set global coordinates of local axis U,V,W and origin O.

Definition at line 39 of file Repere.h.

Here is the call graph for this function:

◆ setO()

void Repere::setO ( vec3  _O)
inline

Definition at line 43 of file Repere.h.

Here is the call graph for this function:

◆ setU()

void Repere::setU ( vec3  _U)
inline

Definition at line 40 of file Repere.h.

Here is the call graph for this function:

◆ setV()

void Repere::setV ( vec3  _V)
inline

Definition at line 41 of file Repere.h.

Here is the call graph for this function:

◆ setW()

void Repere::setW ( vec3  _W)
inline

Definition at line 42 of file Repere.h.

Here is the call graph for this function:

◆ updateMatrices()

void Repere::updateMatrices ( )
protected

Update the global and local frame matrices.

Definition at line 42 of file Repere.cpp.

Here is the caller graph for this function:

◆ vectorFromGlobalToLocal()

vec3 Repere::vectorFromGlobalToLocal ( const vec3 &  global)

Get local coordinates of vector expressed in global coordinates.

Definition at line 73 of file Repere.cpp.

Here is the caller graph for this function:

◆ vectorFromLocalToGlobal()

vec3 Repere::vectorFromLocalToGlobal ( const vec3 &  local)

Get global coordinates of vector expressed in local coordinates.

Definition at line 63 of file Repere.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ GtoL

decimal Repere::GtoL[4][4]
protected

Global to local frame matrix.

Definition at line 73 of file Repere.h.

◆ LtoG

decimal Repere::LtoG[4][4]
protected

Local to global frame matrix.

Definition at line 72 of file Repere.h.

◆ O

vec3 Repere::O
protected

Origin of the local frame in the global frame.

Definition at line 70 of file Repere.h.

◆ U

vec3 Repere::U
protected

Coordinates of local axis U in global frame.

Definition at line 67 of file Repere.h.

◆ V

vec3 Repere::V
protected

Coordinates of local axis V in global frame.

Definition at line 68 of file Repere.h.

◆ W

vec3 Repere::W
protected

Coordinates of local axis W in global frame.

Definition at line 69 of file Repere.h.


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