SOFA API  651e7a3a
Open source framework for multi-physics simuation
sofa::gl::Axis Class Reference

#include <Axis.h>

Public Member Functions

 SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER (Vector3, sofa::type::Vec3)
 
 SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER (Vec4f, sofa::type::Vec4f)
 
 SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER (Vec3d, sofa::type::Vec3d)
 
 Axis (SReal len=1.0_sreal)
 
 Axis (const type::Vec3 &len)
 
 Axis (const type::Vec3 &center, const Quaternion &orient, const type::Vec3 &length)
 
 Axis (const type::Vec3 &center, const double orient[4][4], const type::Vec3 &length)
 
 Axis (const double *mat, const type::Vec3 &length)
 
 Axis (const type::Vec3 &center, const Quaternion &orient, SReal length=1.0_sreal)
 
 Axis (const type::Vec3 &center, const double orient[4][4], SReal length=1.0_sreal)
 
 Axis (const double *mat, SReal length=1.0_sreal)
 
 ~Axis ()
 
void update (const type::Vec3 &center, const Quaternion &orient=Quaternion())
 
void update (const type::Vec3 &center, const double orient[4][4])
 
void update (const double *mat)
 
void draw (const type::RGBAColor &colorX=type::RGBAColor::red(), const type::RGBAColor &colorY=type::RGBAColor::green(), const type::RGBAColor &colorZ=type::RGBAColor::red())
 
void draw (const type::Vec4f &colorX=type::Vec4f(1, 0, 0, 1), const type::Vec4f &colorY=type::Vec4f(0, 1, 0, 1), const type::Vec4f &colorZ=type::Vec4f(0, 0, 1, 1))=delete
 
void draw (const double *mat, const type::Vec3 &length, const type::Vec4f &colorX=type::Vec4f(1, 0, 0, 1), const type::Vec4f &colorY=type::Vec4f(0, 1, 0, 1), const type::Vec4f &colorZ=type::Vec4f(0, 0, 1, 1))=delete
 

Static Public Member Functions

static void draw (const type::Vec3 &center, const Quaternion &orient, const type::Vec3 &length, const type::RGBAColor &colorX=type::RGBAColor::red(), const type::RGBAColor &colorY=type::RGBAColor::green(), const type::RGBAColor &colorZ=type::RGBAColor::red())
 
static void draw (const type::Vec3 &center, const double orient[4][4], const type::Vec3 &length, const type::RGBAColor &colorX=type::RGBAColor::red(), const type::RGBAColor &colorY=type::RGBAColor::green(), const type::RGBAColor &colorZ=type::RGBAColor::red())
 
static void draw (const double *mat, const type::Vec3 &length, const type::RGBAColor &colorX=type::RGBAColor::red(), const type::RGBAColor &colorY=type::RGBAColor::green(), const type::RGBAColor &colorZ=type::RGBAColor::red())
 
static void draw (const type::Vec3 &center, const Quaternion &orient, SReal length=1.0_sreal, const type::RGBAColor &colorX=type::RGBAColor::red(), const type::RGBAColor &colorY=type::RGBAColor::green(), const type::RGBAColor &colorZ=type::RGBAColor::red())
 
static void draw (const type::Vec3 &center, const double orient[4][4], SReal length=1.0_sreal, const type::RGBAColor &colorX=type::RGBAColor::red(), const type::RGBAColor &colorY=type::RGBAColor::green(), const type::RGBAColor &colorZ=type::RGBAColor::red())
 
static void draw (const double *mat, SReal length=1.0_sreal, const type::RGBAColor &colorX=type::RGBAColor::red(), const type::RGBAColor &colorY=type::RGBAColor::green(), const type::RGBAColor &colorZ=type::RGBAColor::red())
 
static void draw (const type::Vec3 &center, const Quaternion &orient, const type::Vec3 &length, const type::Vec4f &colorX=type::Vec4f(1, 0, 0, 1), const type::Vec4f &colorY=type::Vec4f(0, 1, 0, 1), const type::Vec4f &colorZ=type::Vec4f(0, 0, 1, 1))=delete
 
static void draw (const type::Vec3 &center, const double orient[4][4], const type::Vec3 &length, const type::Vec4f &colorX=type::Vec4f(1, 0, 0, 1), const type::Vec4f &colorY=type::Vec4f(0, 1, 0, 1), const type::Vec4f &colorZ=type::Vec4f(0, 0, 1, 1))=delete
 
static void draw (const type::Vec3 &center, const Quaternion &orient, SReal length=1.0_sreal, const type::Vec4f &colorX=type::Vec4f(1, 0, 0, 1), const type::Vec4f &colorY=type::Vec4f(0, 1, 0, 1), const type::Vec4f &colorZ=type::Vec4f(0, 0, 1, 1))=delete
 
static void draw (const type::Vec3 &center, const double orient[4][4], SReal length=1.0_sreal, const type::Vec4f &colorX=type::Vec4f(1, 0, 0, 1), const type::Vec4f &colorY=type::Vec4f(0, 1, 0, 1), const type::Vec4f &colorZ=type::Vec4f(0, 0, 1, 1))=delete
 
static void draw (const double *mat, SReal length=1.0_sreal, const type::Vec4f &colorX=type::Vec4f(1, 0, 0, 1), const type::Vec4f &colorY=type::Vec4f(0, 1, 0, 1), const type::Vec4f &colorZ=type::Vec4f(0, 0, 1, 1))=delete
 
static void draw (const type::Vec3 &center, const type::Vec3 &ext, const double &radius)
 
static void draw (const type::Vec3 &center, const type::Vec3 &ext, const double &r1, const double &r2)
 
static void clear ()
 

Constructor details

◆ Axis() [1/8]

sofa::gl::Axis::Axis ( SReal  len = 1.0_sreal)

◆ Axis() [2/8]

sofa::gl::Axis::Axis ( const type::Vec3 len)

◆ Axis() [3/8]

sofa::gl::Axis::Axis ( const type::Vec3 center,
const Quaternion orient,
const type::Vec3 length 
)

◆ Axis() [4/8]

sofa::gl::Axis::Axis ( const type::Vec3 center,
const double  orient[4][4],
const type::Vec3 length 
)

◆ Axis() [5/8]

sofa::gl::Axis::Axis ( const double *  mat,
const type::Vec3 length 
)

◆ Axis() [6/8]

sofa::gl::Axis::Axis ( const type::Vec3 center,
const Quaternion orient,
SReal  length = 1.0_sreal 
)

◆ Axis() [7/8]

sofa::gl::Axis::Axis ( const type::Vec3 center,
const double  orient[4][4],
SReal  length = 1.0_sreal 
)

◆ Axis() [8/8]

sofa::gl::Axis::Axis ( const double *  mat,
SReal  length = 1.0_sreal 
)

◆ ~Axis()

sofa::gl::Axis::~Axis ( )

Function details

◆ clear()

static void sofa::gl::Axis::clear ( )
inlinestatic

◆ draw() [1/16]

void sofa::gl::Axis::draw ( const double *  mat,
const type::Vec3 length,
const type::RGBAColor colorX = type::RGBAColor::red(),
const type::RGBAColor colorY = type::RGBAColor::green(),
const type::RGBAColor colorZ = type::RGBAColor::red() 
)
static

◆ draw() [2/16]

void sofa::gl::Axis::draw ( const double *  mat,
const type::Vec3 length,
const type::Vec4f colorX = type::Vec4f(1, 0, 0, 1),
const type::Vec4f colorY = type::Vec4f(0, 1, 0, 1),
const type::Vec4f colorZ = type::Vec4f(0, 0, 1, 1) 
)
delete

◆ draw() [3/16]

void sofa::gl::Axis::draw ( const double *  mat,
SReal  length = 1.0_sreal,
const type::RGBAColor colorX = type::RGBAColor::red(),
const type::RGBAColor colorY = type::RGBAColor::green(),
const type::RGBAColor colorZ = type::RGBAColor::red() 
)
static

◆ draw() [4/16]

static void sofa::gl::Axis::draw ( const double *  mat,
SReal  length = 1.0_sreal,
const type::Vec4f colorX = type::Vec4f(1, 0, 0, 1),
const type::Vec4f colorY = type::Vec4f(0, 1, 0, 1),
const type::Vec4f colorZ = type::Vec4f(0, 0, 1, 1) 
)
staticdelete

◆ draw() [5/16]

void sofa::gl::Axis::draw ( const type::RGBAColor colorX = type::RGBAColor::red(),
const type::RGBAColor colorY = type::RGBAColor::green(),
const type::RGBAColor colorZ = type::RGBAColor::red() 
)

◆ draw() [6/16]

void sofa::gl::Axis::draw ( const type::Vec3 center,
const double  orient[4][4],
const type::Vec3 length,
const type::RGBAColor colorX = type::RGBAColor::red(),
const type::RGBAColor colorY = type::RGBAColor::green(),
const type::RGBAColor colorZ = type::RGBAColor::red() 
)
static

◆ draw() [7/16]

static void sofa::gl::Axis::draw ( const type::Vec3 center,
const double  orient[4][4],
const type::Vec3 length,
const type::Vec4f colorX = type::Vec4f(1, 0, 0, 1),
const type::Vec4f colorY = type::Vec4f(0, 1, 0, 1),
const type::Vec4f colorZ = type::Vec4f(0, 0, 1, 1) 
)
staticdelete

◆ draw() [8/16]

void sofa::gl::Axis::draw ( const type::Vec3 center,
const double  orient[4][4],
SReal  length = 1.0_sreal,
const type::RGBAColor colorX = type::RGBAColor::red(),
const type::RGBAColor colorY = type::RGBAColor::green(),
const type::RGBAColor colorZ = type::RGBAColor::red() 
)
static

◆ draw() [9/16]

static void sofa::gl::Axis::draw ( const type::Vec3 center,
const double  orient[4][4],
SReal  length = 1.0_sreal,
const type::Vec4f colorX = type::Vec4f(1, 0, 0, 1),
const type::Vec4f colorY = type::Vec4f(0, 1, 0, 1),
const type::Vec4f colorZ = type::Vec4f(0, 0, 1, 1) 
)
staticdelete

◆ draw() [10/16]

void sofa::gl::Axis::draw ( const type::Vec3 center,
const Quaternion orient,
const type::Vec3 length,
const type::RGBAColor colorX = type::RGBAColor::red(),
const type::RGBAColor colorY = type::RGBAColor::green(),
const type::RGBAColor colorZ = type::RGBAColor::red() 
)
static

◆ draw() [11/16]

static void sofa::gl::Axis::draw ( const type::Vec3 center,
const Quaternion orient,
const type::Vec3 length,
const type::Vec4f colorX = type::Vec4f(1, 0, 0, 1),
const type::Vec4f colorY = type::Vec4f(0, 1, 0, 1),
const type::Vec4f colorZ = type::Vec4f(0, 0, 1, 1) 
)
staticdelete

◆ draw() [12/16]

void sofa::gl::Axis::draw ( const type::Vec3 center,
const Quaternion orient,
SReal  length = 1.0_sreal,
const type::RGBAColor colorX = type::RGBAColor::red(),
const type::RGBAColor colorY = type::RGBAColor::green(),
const type::RGBAColor colorZ = type::RGBAColor::red() 
)
static

◆ draw() [13/16]

static void sofa::gl::Axis::draw ( const type::Vec3 center,
const Quaternion orient,
SReal  length = 1.0_sreal,
const type::Vec4f colorX = type::Vec4f(1, 0, 0, 1),
const type::Vec4f colorY = type::Vec4f(0, 1, 0, 1),
const type::Vec4f colorZ = type::Vec4f(0, 0, 1, 1) 
)
staticdelete

◆ draw() [14/16]

void sofa::gl::Axis::draw ( const type::Vec3 center,
const type::Vec3 ext,
const double &  r1,
const double &  r2 
)
static

◆ draw() [15/16]

void sofa::gl::Axis::draw ( const type::Vec3 center,
const type::Vec3 ext,
const double &  radius 
)
static

◆ draw() [16/16]

void sofa::gl::Axis::draw ( const type::Vec4f colorX = type::Vec4f(1, 0, 0, 1),
const type::Vec4f colorY = type::Vec4f(0, 1, 0, 1),
const type::Vec4f colorZ = type::Vec4f(0, 0, 1, 1) 
)
delete

◆ SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER() [1/3]

sofa::gl::Axis::SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER ( Vec3d  ,
sofa::type::Vec3d   
)

◆ SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER() [2/3]

sofa::gl::Axis::SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER ( Vec4f  ,
sofa::type::Vec4f   
)

◆ SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER() [3/3]

sofa::gl::Axis::SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER ( Vector3  ,
sofa::type::Vec3   
)

◆ update() [1/3]

void sofa::gl::Axis::update ( const double *  mat)

◆ update() [2/3]

void sofa::gl::Axis::update ( const type::Vec3 center,
const double  orient[4][4] 
)

◆ update() [3/3]

void sofa::gl::Axis::update ( const type::Vec3 center,
const Quaternion orient = Quaternion() 
)