SOFA API  ca665544
Open source framework for multi-physics simuation
sofa::gl::Cylinder Class Reference

#include <Cylinder.h>

Public Member Functions

 SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER (Vector3, sofa::type::Vec3)
 
 Cylinder (SReal len=1.0_sreal)
 
 Cylinder (const Vec3 &len)
 
 Cylinder (const Vec3 &center, const Quaternion &orient, const Vec3 &length)
 
 Cylinder (const Vec3 &center, const double orient[4][4], const Vec3 &length)
 
 Cylinder (const double *mat, const Vec3 &length)
 
 Cylinder (const Vec3 &center, const Quaternion &orient, SReal length=1.0_sreal)
 
 Cylinder (const Vec3 &center, const double orient[4][4], SReal length=1.0_sreal)
 
 Cylinder (const double *mat, SReal length=1.0_sreal)
 
 ~Cylinder ()
 
void update (const Vec3 &center, const Quaternion &orient=Quaternion())
 
void update (const Vec3 &center, const double orient[4][4])
 
void update (const double *mat)
 
void draw ()
 

Static Public Member Functions

static void draw (const Vec3 &center, const Quaternion &orient, const Vec3 &length)
 
static void draw (const Vec3 &center, const double orient[4][4], const Vec3 &length)
 
static void draw (const double *mat, const Vec3 &length)
 
static void draw (const Vec3 &center, const Quaternion &orient, SReal length=1.0_sreal)
 
static void draw (const Vec3 &center, const double orient[4][4], SReal length=1.0_sreal)
 
static void draw (const double *mat, SReal length=1.0_sreal)
 
static void clear ()
 

Constructor details

◆ Cylinder() [1/8]

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

◆ Cylinder() [2/8]

sofa::gl::Cylinder::Cylinder ( const Vec3 len)

◆ Cylinder() [3/8]

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

◆ Cylinder() [4/8]

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

◆ Cylinder() [5/8]

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

◆ Cylinder() [6/8]

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

◆ Cylinder() [7/8]

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

◆ Cylinder() [8/8]

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

◆ ~Cylinder()

sofa::gl::Cylinder::~Cylinder ( )

Function details

◆ clear()

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

◆ draw() [1/7]

void sofa::gl::Cylinder::draw ( )

◆ draw() [2/7]

void sofa::gl::Cylinder::draw ( const double *  mat,
const Vec3 length 
)
static

◆ draw() [3/7]

void sofa::gl::Cylinder::draw ( const double *  mat,
SReal  length = 1.0_sreal 
)
static

◆ draw() [4/7]

void sofa::gl::Cylinder::draw ( const Vec3 center,
const double  orient[4][4],
const Vec3 length 
)
static

◆ draw() [5/7]

void sofa::gl::Cylinder::draw ( const Vec3 center,
const double  orient[4][4],
SReal  length = 1.0_sreal 
)
static

◆ draw() [6/7]

void sofa::gl::Cylinder::draw ( const Vec3 center,
const Quaternion orient,
const Vec3 length 
)
static

◆ draw() [7/7]

void sofa::gl::Cylinder::draw ( const Vec3 center,
const Quaternion orient,
SReal  length = 1.0_sreal 
)
static

◆ SOFA_ATTRIBUTE_REPLACED__TYPEMEMBER()

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

◆ update() [1/3]

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

◆ update() [2/3]

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

◆ update() [3/3]

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