#include <Axis.h>

Public Member Functions | |
| Axis (SReal len=(SReal) 1) | |
| Axis (const Vector3 &len) | |
| Axis (const Vector3 ¢er, const Quaternion &orient, const Vector3 &length) | |
| Axis (const Vector3 ¢er, const double orient[4][4], const Vector3 &length) | |
| Axis (const double *mat, const Vector3 &length) | |
| Axis (const Vector3 ¢er, const Quaternion &orient, SReal length=(SReal) 1) | |
| Axis (const Vector3 ¢er, const double orient[4][4], SReal length=(SReal) 1) | |
| Axis (const double *mat, SReal length=(SReal) 1.0) | |
| ~Axis () | |
| void | update (const Vector3 ¢er, const Quaternion &orient=Quaternion()) |
| void | update (const Vector3 ¢er, const double orient[4][4]) |
| void | update (const double *mat) |
| void | draw () |
Static Public Member Functions | |
| static void | draw (const Vector3 ¢er, const Quaternion &orient, const Vector3 &length) |
| static void | draw (const Vector3 ¢er, const double orient[4][4], const Vector3 &length) |
| static void | draw (const double *mat, const Vector3 &length) |
| static void | draw (const Vector3 ¢er, const Quaternion &orient, SReal length=(SReal) 1) |
| static void | draw (const Vector3 ¢er, const double orient[4][4], SReal length=(SReal) 1) |
| static void | draw (const double *mat, SReal length=(SReal) 1.0) |
| static void | draw (const Vector3 ¢er, const Vector3 &ext, const double &radius) |
| static void | draw (const Vector3 ¢er, const Vector3 &ext, const double &r1, const double &r2) |
Private Member Functions | |
| void | initDraw () |
Static Private Member Functions | |
| static Axis * | get (const Vector3 &len) |
Private Attributes | |
| Vector3 | length |
| double | matTransOpenGL [16] |
| GLUquadricObj * | quadratic |
| GLuint | displayList |
Static Private Attributes | |
| static std::map< std::pair < std::pair< float, float > , float >, Axis * > | axisMap |
Definition at line 49 of file Axis.h.
| sofa::helper::gl::Axis::Axis | ( | const Vector3 & | len | ) |
| sofa::helper::gl::Axis::Axis | ( | const Vector3 & | center, | |
| const Quaternion & | orient, | |||
| const Vector3 & | length | |||
| ) |
| sofa::helper::gl::Axis::Axis | ( | const double * | mat, | |
| const Vector3 & | length | |||
| ) |
| sofa::helper::gl::Axis::Axis | ( | const Vector3 & | center, | |
| const Quaternion & | orient, | |||
| SReal | length = (SReal)1 | |||
| ) |
| void sofa::helper::gl::Axis::draw | ( | const Vector3 & | center, | |
| const Vector3 & | ext, | |||
| const double & | r1, | |||
| const double & | r2 | |||
| ) | [static] |
Definition at line 298 of file Axis.cpp.
References sofa::defaulttype::Vec< N, real >::cross(), and sofa::defaulttype::Vec< N, real >::normalize().
| void sofa::helper::gl::Axis::draw | ( | const Vector3 & | center, | |
| const Quaternion & | orient, | |||
| SReal | length = (SReal)1 | |||
| ) | [static] |
| void sofa::helper::gl::Axis::draw | ( | const double * | mat, | |
| const Vector3 & | length | |||
| ) | [static] |
| void sofa::helper::gl::Axis::draw | ( | const Vector3 & | center, | |
| const Quaternion & | orient, | |||
| const Vector3 & | length | |||
| ) | [static] |
| void sofa::helper::gl::Axis::draw | ( | ) |
Definition at line 128 of file Axis.cpp.
References displayList, initDraw(), and matTransOpenGL.
Referenced by sofa::component::forcefield::JointSpringForceField< DataTypes >::draw(), and draw().
| void sofa::helper::gl::Axis::initDraw | ( | ) | [private] |
Definition at line 53 of file Axis.cpp.
References displayList, length, quadratic, and sofa::helper::gl::quadricDiscretisation.
Referenced by draw().
| void sofa::helper::gl::Axis::update | ( | const double * | mat | ) |
| void sofa::helper::gl::Axis::update | ( | const Vector3 & | center, | |
| const double | orient[4][4] | |||
| ) |
| void sofa::helper::gl::Axis::update | ( | const Vector3 & | center, | |
| const Quaternion & | orient = Quaternion() | |||
| ) |
Definition at line 172 of file Axis.cpp.
References matTransOpenGL, and sofa::helper::Quater< Real >::writeOpenGlMatrix().
std::map< std::pair< std::pair< float, float >, float >, Axis * > sofa::helper::gl::Axis::axisMap [static, private] |
GLuint sofa::helper::gl::Axis::displayList [private] |
Vector3 sofa::helper::gl::Axis::length [private] |
double sofa::helper::gl::Axis::matTransOpenGL[16] [private] |
GLUquadricObj* sofa::helper::gl::Axis::quadratic [private] |
1.5.7.1