Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

TeEngineExplorer Class Reference

#include <TeEngineExplorer.h>

Inheritance diagram for TeEngineExplorer:

TeObject List of all members.

Detailed Description

Simple flyer, its HUD is used to display information about the engine.

This class is here to provide example of creating new objects that can be inserted into the engine. Handling of events and HUD-related things are implemented, so user can understand the meaning of them quickly.

The HUD of this "flyer" is used to display some useful information about the running engine.


Public Member Functions

 TeEngineExplorer ()
virtual void handleEvent (const SoEvent *event)

Protected Member Functions

virtual void createHUD ()
virtual void updateHUD ()

Private Attributes

SoText2 * posText
SoText2 * speedText
SoText2 * fpsText
SoText2 * tasksInQueueText
SoText2 * patchNumText
SoText2 * rootLevelText
SbVec3f defaultCamDistance

Friends

class TeEngine


Constructor & Destructor Documentation

TeEngineExplorer::TeEngineExplorer  ) 
 

Default constructor.


Member Function Documentation

void TeEngineExplorer::createHUD  )  [protected, virtual]
 

Creates HUD scene graph in engine's HUDRoot.

Reimplemented from TeObject.

void TeEngineExplorer::handleEvent const SoEvent *  event  )  [virtual]
 

Handles the user interaction.

This method defines controls of the object and should represent the physics of the object by correctly adjusted control responses.

Parameters:
event Event invoked by user interaction.

Reimplemented from TeObject.

void TeEngineExplorer::updateHUD  )  [protected, virtual]
 

Updates the HUD scene graph.

In this function all nodes that reflect actual state should be updated.

Reimplemented from TeObject.


Member Data Documentation

SbVec3f TeEngineExplorer::defaultCamDistance [private]
 

Default camera distance.

SoText2* TeEngineExplorer::fpsText [private]
 

Node that contains info about current FPS value.

See also:
updateHUD()

SoText2* TeEngineExplorer::patchNumText [private]
 

Node that contains info about total number of generated patches.

See also:
updateHUD()

SoText2* TeEngineExplorer::posText [private]
 

Node that contains info about object position.

See also:
updateHUD()

SoText2* TeEngineExplorer::rootLevelText [private]
 

Node that contains info about current patches-tree depth.

See also:
updateHUD()

SoText2* TeEngineExplorer::speedText [private]
 

Node that contains info about object speed.

See also:
updateHUD()

SoText2* TeEngineExplorer::tasksInQueueText [private]
 

Node that contains info about number of tasks waiting in the queue.

See also:
updateHUD()


Generated on Sun May 8 16:45:06 2005 for TerrainEngine by Doxygen 1.4.1