#include <ddgcntrl.h>
Class diagram for ddgControl:
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. | |
![]() | ![]() | ddgVector3* | orientation ( 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. | |
![]() | ![]() | ddgVector3* | position ( 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. |
Sub classes of this class can be connected to keys/playback routines etc. $TODO create a subclass with path capability, keep core class simple.
virtual bool ddgControl::update (void) [virtual]
|
Update the current position and orientation.
Returns true if position or orientation was modified.