sofa::helper::gl::Cylinder Class Reference

#include <Cylinder.h>

Collaboration diagram for sofa::helper::gl::Cylinder:

Collaboration graph
[legend]

Public Member Functions

 Cylinder (SReal len=(SReal) 1)
 Cylinder (const Vector3 &len)
 Cylinder (const Vector3 &center, const Quaternion &orient, const Vector3 &length)
 Cylinder (const Vector3 &center, const double orient[4][4], const Vector3 &length)
 Cylinder (const double *mat, const Vector3 &length)
 Cylinder (const Vector3 &center, const Quaternion &orient, SReal length=(SReal) 1)
 Cylinder (const Vector3 &center, const double orient[4][4], SReal length=(SReal) 1)
 Cylinder (const double *mat, SReal length=(SReal) 1.0)
 ~Cylinder ()
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)

Private Member Functions

void initDraw ()

Static Private Member Functions

static Cylinder * 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 >, Cylinder * > 
CylinderMap

Detailed Description

Definition at line 49 of file Cylinder.h.


Constructor & Destructor Documentation

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

Definition at line 153 of file Cylinder.cpp.

References length, quadratic, and update().

Referenced by get().

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

Definition at line 160 of file Cylinder.cpp.

References length, quadratic, and update().

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

Definition at line 167 of file Cylinder.cpp.

References length, quadratic, and update().

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

Definition at line 174 of file Cylinder.cpp.

References length, quadratic, and update().

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

Definition at line 181 of file Cylinder.cpp.

References length, quadratic, and update().

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

Definition at line 188 of file Cylinder.cpp.

References length, quadratic, and update().

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

Definition at line 194 of file Cylinder.cpp.

References length, quadratic, and update().

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

Definition at line 201 of file Cylinder.cpp.

References length, quadratic, and update().

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

Definition at line 208 of file Cylinder.cpp.

References quadratic.


Member Function Documentation

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

Definition at line 257 of file Cylinder.cpp.

References draw(), and update().

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

Definition at line 250 of file Cylinder.cpp.

References draw(), and update().

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

Definition at line 243 of file Cylinder.cpp.

References draw(), and update().

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

Definition at line 236 of file Cylinder.cpp.

References draw(), and update().

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

Definition at line 229 of file Cylinder.cpp.

References draw(), and update().

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

Definition at line 222 of file Cylinder.cpp.

References draw(), and update().

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

Definition at line 101 of file Cylinder.cpp.

References displayList, initDraw(), and matTransOpenGL.

Referenced by draw().

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

Definition at line 214 of file Cylinder.cpp.

References Cylinder(), and CylinderMap.

void sofa::helper::gl::Cylinder::initDraw (  )  [private]

Definition at line 51 of file Cylinder.cpp.

References displayList, length, quadratic, and sofa::helper::gl::quadricDiscretisation.

Referenced by draw().

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

Definition at line 117 of file Cylinder.cpp.

References matTransOpenGL.

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

Definition at line 122 of file Cylinder.cpp.

References matTransOpenGL.

void sofa::helper::gl::Cylinder::update ( const Vector3 &  center,
const Quaternion &  orient = Quaternion() 
)

Definition at line 145 of file Cylinder.cpp.

References matTransOpenGL, and sofa::helper::Quater< Real >::writeOpenGlMatrix().

Referenced by Cylinder(), and draw().


Field Documentation

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

Definition at line 87 of file Cylinder.h.

Referenced by get().

Definition at line 83 of file Cylinder.h.

Referenced by draw(), and initDraw().

Definition at line 79 of file Cylinder.h.

Referenced by Cylinder(), and initDraw().

Definition at line 80 of file Cylinder.h.

Referenced by draw(), and update().

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

Definition at line 82 of file Cylinder.h.

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


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

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