SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::gl::Axis Class Reference

#include <Axis.h>

Public Member Functions

 Axis (SReal len=(SReal) 1)
 
 Axis (const Vector3 &len)
 
 Axis (const Vector3 &center, const Quaternion &orient, const Vector3 &length)
 
 Axis (const Vector3 &center, const double orient[4][4], const Vector3 &length)
 
 Axis (const double *mat, const Vector3 &length)
 
 Axis (const Vector3 &center, const Quaternion &orient, SReal length=(SReal) 1)
 
 Axis (const Vector3 &center, const double orient[4][4], SReal length=(SReal) 1)
 
 Axis (const double *mat, SReal length=(SReal) 1.0)
 
 ~Axis ()
 
void update (const Vector3 &center, const Quaternion &orient=Quaternion())
 
void update (const Vector3 &center, const double orient[4][4])
 
void update (const double *mat)
 
void draw (const Vec4f &colorX=Vec4f(1, 0, 0, 1), const Vec4f &colorY=Vec4f(0, 1, 0, 1), const Vec4f &colorZ=Vec4f(0, 0, 1, 1))
 

Static Public Member Functions

static void draw (const Vector3 &center, const Quaternion &orient, const Vector3 &length, const Vec4f &colorX=Vec4f(1, 0, 0, 1), const Vec4f &colorY=Vec4f(0, 1, 0, 1), const Vec4f &colorZ=Vec4f(0, 0, 1, 1))
 
static void draw (const Vector3 &center, const double orient[4][4], const Vector3 &length, const Vec4f &colorX=Vec4f(1, 0, 0, 1), const Vec4f &colorY=Vec4f(0, 1, 0, 1), const Vec4f &colorZ=Vec4f(0, 0, 1, 1))
 
static void draw (const double *mat, const Vector3 &length, const Vec4f &colorX=Vec4f(1, 0, 0, 1), const Vec4f &colorY=Vec4f(0, 1, 0, 1), const Vec4f &colorZ=Vec4f(0, 0, 1, 1))
 
static void draw (const Vector3 &center, const Quaternion &orient, SReal length=(SReal) 1, const Vec4f &colorX=Vec4f(1, 0, 0, 1), const Vec4f &colorY=Vec4f(0, 1, 0, 1), const Vec4f &colorZ=Vec4f(0, 0, 1, 1))
 
static void draw (const Vector3 &center, const double orient[4][4], SReal length=(SReal) 1, const Vec4f &colorX=Vec4f(1, 0, 0, 1), const Vec4f &colorY=Vec4f(0, 1, 0, 1), const Vec4f &colorZ=Vec4f(0, 0, 1, 1))
 
static void draw (const double *mat, SReal length=(SReal) 1.0, const Vec4f &colorX=Vec4f(1, 0, 0, 1), const Vec4f &colorY=Vec4f(0, 1, 0, 1), const Vec4f &colorZ=Vec4f(0, 0, 1, 1))
 
static void draw (const Vector3 &center, const Vector3 &ext, const double &radius)
 
static void draw (const Vector3 &center, const Vector3 &ext, const double &r1, const double &r2)
 
static void clear ()
 

Constructor details

sofa::helper::gl::Axis::Axis ( SReal  len = (SReal)1)
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 Vector3 center,
const double  orient[4][4],
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 
)
sofa::helper::gl::Axis::Axis ( const Vector3 center,
const double  orient[4][4],
SReal  length = (SReal)1 
)
sofa::helper::gl::Axis::Axis ( const double mat,
SReal  length = (SReal)1.0 
)
sofa::helper::gl::Axis::~Axis ( )

Function details

static void sofa::helper::gl::Axis::clear ( )
inlinestatic
void sofa::helper::gl::Axis::draw ( const Vec4f colorX = Vec4f(1,0,0,1),
const Vec4f colorY = Vec4f(0,1,0,1),
const Vec4f colorZ = Vec4f(0,0,1,1) 
)
void sofa::helper::gl::Axis::draw ( const Vector3 center,
const Quaternion orient,
const Vector3 length,
const Vec4f colorX = Vec4f(1,0,0,1),
const Vec4f colorY = Vec4f(0,1,0,1),
const Vec4f colorZ = Vec4f(0,0,1,1) 
)
static
void sofa::helper::gl::Axis::draw ( const Vector3 center,
const double  orient[4][4],
const Vector3 length,
const Vec4f colorX = Vec4f(1,0,0,1),
const Vec4f colorY = Vec4f(0,1,0,1),
const Vec4f colorZ = Vec4f(0,0,1,1) 
)
static
void sofa::helper::gl::Axis::draw ( const double mat,
const Vector3 length,
const Vec4f colorX = Vec4f(1,0,0,1),
const Vec4f colorY = Vec4f(0,1,0,1),
const Vec4f colorZ = Vec4f(0,0,1,1) 
)
static
void sofa::helper::gl::Axis::draw ( const Vector3 center,
const Quaternion orient,
SReal  length = (SReal)1,
const Vec4f colorX = Vec4f(1,0,0,1),
const Vec4f colorY = Vec4f(0,1,0,1),
const Vec4f colorZ = Vec4f(0,0,1,1) 
)
static
void sofa::helper::gl::Axis::draw ( const Vector3 center,
const double  orient[4][4],
SReal  length = (SReal)1,
const Vec4f colorX = Vec4f(1,0,0,1),
const Vec4f colorY = Vec4f(0,1,0,1),
const Vec4f colorZ = Vec4f(0,0,1,1) 
)
static
void sofa::helper::gl::Axis::draw ( const double mat,
SReal  length = (SReal)1.0,
const Vec4f colorX = Vec4f(1,0,0,1),
const Vec4f colorY = Vec4f(0,1,0,1),
const Vec4f colorZ = Vec4f(0,0,1,1) 
)
static
void sofa::helper::gl::Axis::draw ( const Vector3 center,
const Vector3 ext,
const double radius 
)
static
void sofa::helper::gl::Axis::draw ( const Vector3 center,
const Vector3 ext,
const double r1,
const double r2 
)
static
void sofa::helper::gl::Axis::update ( const Vector3 center,
const Quaternion orient = Quaternion() 
)
void sofa::helper::gl::Axis::update ( const Vector3 center,
const double  orient[4][4] 
)
void sofa::helper::gl::Axis::update ( const double mat)