Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgTransform Class Reference

Class the performs a generic transformation which can include translation, scaling and rotation. More...

#include <ddgtransform.h>

Class diagram for ddgTransform:

ddgGroup ddgNode ddgTranslate ddgScale ddgRotate

List of all members.


Public Members

 ddgTransform (void)
Constructor.

 ddgTransform (ddgVector3 *t, ddgVector3 *s = NULL, ddgVector3 *r = NULL, ddgNode *d = NULL)
Constructor.

void translate ( ddgVector3 *t )
Set translation.

void scale ( ddgVector3 *s )
Set scale.

void rotate ( ddgVector3 *r )
Set rotation.

void cylindricalBillBoard ( void )
Set bill board forces object to face the camera allows rotation about Y axis only.

void sphericalBillBoard ( void )
Set bill board forces object to face the camera..

bool draw ( ddgContext *c )
Render this node. More...

ddgVector3 _translate
The amount to translate world space by.

ddgVector3 _scale
The amount to scale world space by.

ddgVector3 _rotate
The amount to rotate world space by in degrees about x, y and z axis.

bool fTranslate
Flag to indicate if translation is used.

bool fScale
Flag to indicate if scaling is used.

bool fRotate
Flag to indicate if rotation is used.

bool fCylindricalBillBoard
Cylindrical mode always faces viewer in XZ plane.

bool fSphericalBillBoard
Spherical mode always faces viewer in all dimensions.


Detailed Description

Class the performs a generic transformation which can include translation, scaling and rotation.

It affects all node which are managed by the transform. $TODO: we should be updating the ctx for this class, or else transformed nodes will not be able to correctly determine visibility etc.


Member Function Documentation

bool ddgTransform::draw (ddgContext * c) [virtual]

Render this node.

Return true if error.

Reimplemented from ddgNode.


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:57 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999