class TcGfxManager

Class: TcGfxManager Role: This class manages Tandem's graphics subsystem

Public Methods

TcGfxManager(int argc, char *argv[], TcLoader *clientLoader)
Constructor
virtual ~TcGfxManager()
Destructor.
bool drawScene()
Updates draw routines handled by the TcGfxLibrary.
void updateScene()
Updates GL components and interative events.
bool updateTravel()
Updates the travel scheme.
TcGfxComponent* initTcGfxScene()
Initialize the graphics scene.
void removeTcGfxComponent(TcGfxComponent *)
Remove node from the TcGfxComponent hierarchy.
TcGfxComponent* getAvComponent()
Returns the Avatar Group.
TcGfxComponent* getGfxCompByName(const TcUtString &name) const
Returns the TcGfxComponent with the given name in the tree and NULL if it does not exist
TcGfxComponent* getGLCompByName(const TcUtString &name) const
Returns the TcGfxComponent with the given name in the GL tree and NULL if it does not exist
TcTraveler* getTcTraveler() const
Returns a pointer to the TcTraveler.
void setIntersectionManager(TcGfxIntersectionManager &)
Sets the TcGfxIntersectionManager
void setViewPoint(const TcUtVector3f *rot, const TcUtVector3f *trans)
Sets the position and orientation of the viewpoint in the world

Documentation

Class: TcGfxManager Role: This class manages Tandem's graphics subsystem. This includes drawing, searching, updating and maintaining its various objects.

Responsibilities: It provides an interface for searching TcGfxComponents. This class also updates the TcGfxLibrary's draw routines. In addition it traverses the TcGfxComponent hierarchy each frame and updates iterative events.

TcGfxManager(int argc, char *argv[], TcLoader *clientLoader)
Constructor. This class is instantiated internally by TcApplication.
Parameters:
clientLoader - Class returned by createLoader in TcApplication.

virtual ~TcGfxManager()
Destructor.

bool drawScene()
Updates draw routines handled by the TcGfxLibrary.

void updateScene()
Updates GL components and interative events.

bool updateTravel()
Updates the travel scheme.

TcGfxComponent* initTcGfxScene()
Initialize the graphics scene.

void removeTcGfxComponent(TcGfxComponent *)
Remove node from the TcGfxComponent hierarchy.

TcGfxComponent* getAvComponent()
Returns the Avatar Group.

TcGfxComponent* getGfxCompByName(const TcUtString &name) const
Returns the TcGfxComponent with the given name in the tree and NULL if it does not exist
Parameters:
name - This can be a TcUtString or a string literal.

TcGfxComponent* getGLCompByName(const TcUtString &name) const
Returns the TcGfxComponent with the given name in the GL tree and NULL if it does not exist
Parameters:
name - This can be a TcUtString or a string literal.

TcTraveler* getTcTraveler() const
Returns a pointer to the TcTraveler.

void setIntersectionManager(TcGfxIntersectionManager &)
Sets the TcGfxIntersectionManager. This should not be done at runtime unless the client wants to change the manager.

void setViewPoint(const TcUtVector3f *rot, const TcUtVector3f *trans)
Sets the position and orientation of the viewpoint in the world. Usually called by the interaction manager at startup.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de