Main Page   Namespace List   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Figures Class Reference


Public Methods

 Figures ()
 Constructor.

void billboardCheatSphericalBegin (void)
void drawAxis (float length)
void drawArrow (float length)
void drawCuboid (vec3 p1, vec3 p2)
void drawTraces (void)
void drawGrid (double length, double pitch)
bool testInclusion (vec3 p, vec3 pmin, vec3 pmax)
void drawBox (GLfloat size, GLenum type)

Data Fields

QColor * axisColor
QColor * axisLabelColor
QColor * bgColor

Detailed Description

Draws basic figures:


Constructor & Destructor Documentation

Figures::Figures  
 

Constructor.

Inits Figures properties


Member Function Documentation

void Figures::billboardCheatSphericalBegin void   
 

void Figures::drawArrow float    length
 

Draws an arrow from 0,0,0 to 0,0,length

Parameters:
length  the size of arrow

void Figures::drawAxis float    length
 

Draws colored axis with label X,Y,Z

Parameters:
length  the size of axis

void Figures::drawBox GLfloat    size,
GLenum    type
 

Generates a box with normals

Parameters:
size  : the size of a square edge of the box
type  : GL_LINES or GL_POLYGON or other GLenum

void Figures::drawCuboid vec3    p1,
vec3    p2
 

Draws a cuboid using two points

Parameters:
p1, p2  two opposite vertices

void Figures::drawGrid double    length,
double    pitch
 

void Figures::drawTraces void   
 

bool Figures::testInclusion vec3    p,
vec3    pmin,
vec3    pmax
 

Tests whether a given point is in a cuboid

Parameters:
p  the point to test
pmin, pmax  define the cuboid
Returns:
true if the point p is in <p1,p2>, false otherwise


Field Documentation

QColor* Figures::axisColor
 

QColor* Figures::axisLabelColor
 

QColor* Figures::bgColor
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 16:32:54 2004 for POVAMA by doxygen1.2.18