class TcGfxGLObject : public TcGfxObject

Class is used to hold GL Gfx objects that implement the draw and update methods

Inheritance:


Public Methods

TcGfxGLObject()
Default constructor.
TcGfxGLObject(const TcUtString &name)
Allows the compName to be set by the constructor.
virtual ~TcGfxGLObject()
Destructor.
void loadGeometry(const LoadType& lType)
Loads the openGL object into the scene
void unLoadGeometry()
Unloads the openGL from the scene.
virtual void hideGeometry()
Hide the geometry so that it is still loaded, but not drawn.
virtual void unHideGeometry()
Make geometry that has been hidden visible.
virtual void draw()
Implemented by descendents and called once per iteration by Tandem Execution.
virtual void update()
Implemented by descendents and called once per iteration by Tandem Execution.
virtual TcUtVector3f getPosition()
Returns the position of the object.
virtual int setPosition(TcUtVector3f)
Sets the position of the object.
virtual TcUtVector3f getOrientation()
Returns the orientation of the object.
virtual int setOrientation(TcUtVector3f)
Sets the orientation of the object.
virtual void accept(TcGfxVisitor &v)
Used to accept TcGfxVisitors.

Protected Fields

bool* draw_gl
Boolean flag that must be allocated from shared memory to be seen By the draw process in multi-processor and multi-processed systems

Inherited from TcGfxObject:

Public Methods

const TcGfxObject& operator=(const TcGfxObject &right)

Inherited from TcGfxComponent:

Public Classes

enum LoadType
enum LoadState

Public Methods

virtual int addChild(TcGfxComponent *gfxNode)
virtual int removeChild(TcGfxComponent *gfxNode)
virtual void toggleLoadGeometry()
virtual void toggleHideGeometry()
virtual const TcGfxComponent* getCompByName(const TcUtString &)
virtual void triggerEvent(const TcUtString &eventName)
virtual TcActionEvent* getEvent(const TcUtString &eventName)
virtual TcActionEvent* getIterativeEvent(const TcUtString &eventName)
virtual void handleIterativeEvents()
const TcUtString& getCompName()
void addEvent(TcActionEvent *)
void removeEvent(TcActionEvent *)
void addIterativeEvent(TcActionEvent *)
void removeIterativeEvent(TcActionEvent *)
void addUserComponent(const TcUtString &name, TcUserComponent *component)
TcUserComponent* getUserComponent(const TcUtString &name)
void removeUserComponent(const TcUtString &)
const vector <TcActionEvent *> * getEventList()
TcUtString getGeoFileName()
void setGeoLoaded(bool)
void setGeoHidden(bool)
void setCompName(const TcUtString &name)
bool geoLoaded()
bool geoHidden()
TcGfxComponent* getParent()
void setParent(TcGfxComponent *)
void setDspLibComponent(TcGfxDspLibComponent *)
TcGfxDspLibComponent* getDspLibComponent() const

Protected Fields

TcUtString geometryFileName

Documentation

Class is used to hold GL Gfx objects that implement the draw and update methods. Shared memory allocation must occur in constructor initialization.
TcGfxGLObject()
Default constructor.

TcGfxGLObject(const TcUtString &name)
Allows the compName to be set by the constructor.

virtual ~TcGfxGLObject()
Destructor.

void loadGeometry(const LoadType& lType)
Loads the openGL object into the scene
Parameters:
lType - Generally not used by GLObjects, but can be ASYNC or SYNC

void unLoadGeometry()
Unloads the openGL from the scene.

virtual void hideGeometry()
Hide the geometry so that it is still loaded, but not drawn.

virtual void unHideGeometry()
Make geometry that has been hidden visible.

virtual void draw()
Implemented by descendents and called once per iteration by Tandem Execution.

virtual void update()
Implemented by descendents and called once per iteration by Tandem Execution.

virtual TcUtVector3f getPosition()
Returns the position of the object.

virtual int setPosition(TcUtVector3f)
Sets the position of the object.

virtual TcUtVector3f getOrientation()
Returns the orientation of the object.

virtual int setOrientation(TcUtVector3f)
Sets the orientation of the object.

virtual void accept(TcGfxVisitor &v)
Used to accept TcGfxVisitors.

bool* draw_gl
Boolean flag that must be allocated from shared memory to be seen By the draw process in multi-processor and multi-processed systems


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