sofa::helper::gl::Axis Class Reference

#include <Axis.h>

Collaboration diagram for sofa::helper::gl::Axis:

Collaboration graph
[legend]

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 ()

Static Public Member Functions

static void draw (const Vector3 &center, const Quaternion &orient, const Vector3 &length)
static void draw (const Vector3 &center, const double orient[4][4], const Vector3 &length)
static void draw (const double *mat, const Vector3 &length)
static void draw (const Vector3 &center, const Quaternion &orient, SReal length=(SReal) 1)
static void draw (const Vector3 &center, 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 &center, const Vector3 &ext, const double &radius)
static void draw (const Vector3 &center, 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

Detailed Description

Definition at line 49 of file Axis.h.


Constructor & Destructor Documentation

sofa::helper::gl::Axis::Axis ( SReal  len = (SReal)1  ) 

Definition at line 180 of file Axis.cpp.

References length, quadratic, and update().

Referenced by get().

sofa::helper::gl::Axis::Axis ( const Vector3 &  len  ) 

Definition at line 187 of file Axis.cpp.

References length, quadratic, and update().

sofa::helper::gl::Axis::Axis ( const Vector3 &  center,
const Quaternion &  orient,
const Vector3 &  length 
)

Definition at line 194 of file Axis.cpp.

References length, quadratic, and update().

sofa::helper::gl::Axis::Axis ( const Vector3 &  center,
const double  orient[4][4],
const Vector3 &  length 
)

Definition at line 201 of file Axis.cpp.

References length, quadratic, and update().

sofa::helper::gl::Axis::Axis ( const double *  mat,
const Vector3 &  length 
)

Definition at line 208 of file Axis.cpp.

References length, quadratic, and update().

sofa::helper::gl::Axis::Axis ( const Vector3 &  center,
const Quaternion &  orient,
SReal  length = (SReal)1 
)

Definition at line 215 of file Axis.cpp.

References length, quadratic, and update().

sofa::helper::gl::Axis::Axis ( const Vector3 &  center,
const double  orient[4][4],
SReal  length = (SReal)1 
)

Definition at line 221 of file Axis.cpp.

References length, quadratic, and update().

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

Definition at line 228 of file Axis.cpp.

References length, quadratic, and update().

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

Definition at line 235 of file Axis.cpp.

References quadratic.


Member Function Documentation

void sofa::helper::gl::Axis::draw ( const Vector3 &  center,
const Vector3 &  ext,
const double &  r1,
const double &  r2 
) [static]

void sofa::helper::gl::Axis::draw ( const Vector3 &  center,
const Vector3 &  ext,
const double &  radius 
) [static]

Definition at line 291 of file Axis.cpp.

References draw().

void sofa::helper::gl::Axis::draw ( const double *  mat,
SReal  length = (SReal)1.0 
) [static]

Definition at line 284 of file Axis.cpp.

References draw(), and update().

void sofa::helper::gl::Axis::draw ( const Vector3 &  center,
const double  orient[4][4],
SReal  length = (SReal)1 
) [static]

Definition at line 277 of file Axis.cpp.

References draw(), and update().

void sofa::helper::gl::Axis::draw ( const Vector3 &  center,
const Quaternion &  orient,
SReal  length = (SReal)1 
) [static]

Definition at line 270 of file Axis.cpp.

References draw(), and update().

void sofa::helper::gl::Axis::draw ( const double *  mat,
const Vector3 &  length 
) [static]

Definition at line 263 of file Axis.cpp.

References draw(), and update().

void sofa::helper::gl::Axis::draw ( const Vector3 &  center,
const double  orient[4][4],
const Vector3 &  length 
) [static]

Definition at line 256 of file Axis.cpp.

References draw(), and update().

void sofa::helper::gl::Axis::draw ( const Vector3 &  center,
const Quaternion &  orient,
const Vector3 &  length 
) [static]

Definition at line 249 of file Axis.cpp.

References draw(), and update().

void sofa::helper::gl::Axis::draw (  ) 

Axis * sofa::helper::gl::Axis::get ( const Vector3 &  len  )  [static, private]

Definition at line 241 of file Axis.cpp.

References Axis(), and axisMap.

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  ) 

Definition at line 144 of file Axis.cpp.

References matTransOpenGL.

void sofa::helper::gl::Axis::update ( const Vector3 &  center,
const double  orient[4][4] 
)

Definition at line 149 of file Axis.cpp.

References matTransOpenGL.

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().

Referenced by Axis(), and draw().


Field Documentation

std::map< std::pair< std::pair< float, float >, float >, Axis * > sofa::helper::gl::Axis::axisMap [static, private]

Definition at line 91 of file Axis.h.

Referenced by get().

Definition at line 87 of file Axis.h.

Referenced by draw(), and initDraw().

Definition at line 83 of file Axis.h.

Referenced by Axis(), and initDraw().

Definition at line 84 of file Axis.h.

Referenced by draw(), and update().

GLUquadricObj* sofa::helper::gl::Axis::quadratic [private]

Definition at line 86 of file Axis.h.

Referenced by Axis(), initDraw(), and ~Axis().


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

Generated on Sun Nov 23 04:24:17 2008 for Sofa by  doxygen 1.5.7.1