Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgControl Class Reference

The context object maintains the position and orientation of an object. More...

#include <ddgcntrl.h>

Class diagram for ddgControl:

List of all members.


Public Members

 ddgControl ( ddgVector3 *pos = NULL, ddgVector3 *orientation = NULL)
Constructor.

virtual bool update (void)
Update the current position and orientation. More...

void orientation ( float x, float y, float z)
Modify the rotation angle of the view's X,Y or Z axis.

ddgVector3orientation ( void )
Return the view orientation.

void position ( float x, float y, float z)
Modify the world coordinate position of the view along the X,Y or Z axis.

ddgVector3position ( void )
Return the view position.

bool init (void)
Callback which is called to initialize the view.

bool dirty ( void )
Has context changed since last frame.

void clean ( void )
Has context changed since last frame.


Protected Members

bool _dirty
Flag set to true if orientation has changed from last frame.


Detailed Description

The context object maintains the position and orientation of an object.

Sub classes of this class can be connected to keys/playback routines etc. $TODO create a subclass with path capability, keep core class simple.


Member Function Documentation

virtual bool ddgControl::update (void) [virtual]

Update the current position and orientation.

Returns true if position or orientation was modified.


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