![]() |
VR-Forces 5.0.2 Developer's Guide
|
OSG Implementation of DtWindowTriangleGroup. A model-like object that controls a group of 2D Triangles. A DtOsgWindowTriangleGroupInstance is created in the CTOR and methods call the instance to modify triangles.

Public Member Functions | |
| DtOsgWindowTriangleGroup (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgWindowTriangleGroup () |
| virtual void | setTriangleCount (unsigned int count) |
| virtual void | addTriangle (unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1, float xVertex2, float yVertex2) |
| virtual void | updateTriangle (unsigned int index, unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1, float xVertex2, float yVertex) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setGroup (int groupId) |
| virtual void | setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName) override |
Public Member Functions inherited from makVrv::DtWindowTriangleGroup | |
| DtWindowTriangleGroup (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWindowTriangleGroup () |
Public Member Functions inherited from makVrv::DtWindowObject | |
| DtWindowObject (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWindowObject () |
| virtual bool | visible () |
| virtual DtUniqueID | uniqueId () |
| DtWindowObject * | getParent () |
| virtual ChildList | childList () |
| virtual void | addChild (DtUniqueID id) |
| virtual void | removeChild (DtUniqueID id) |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| virtual void | slot_postTick () |
| virtual Transform | windowTransform () |
| virtual DtClipBox | clipBox () |
| virtual void | setParentId (DtUniqueID parentId) |
| virtual DtUniqueID | getParentId () |
| virtual void | setPosition (double x, double y) |
| virtual void | getPosition (double &x, double &y) |
| virtual void | setScale (double scale) |
| virtual void | setScale (double x, double y) |
| virtual void | getScale (double &x, double &y) |
| virtual void | setRotation (double rotation) |
| virtual void | getRotation (double &rotation) |
| virtual void | setInheritColor (bool inheritColor) |
| virtual bool | inheritColor () |
| virtual int | group () |
| virtual void | setFlashing (bool flashing, double interval) |
| virtual void | getFlashing (bool &flashing, double &interval) |
| virtual void | getChannelOverlay (std::string &displayName, std::string &windowName, std::string &channelName) |
Protected Member Functions | |
| virtual void | update () |
| virtual void | needsUpdate () |
Protected Attributes | |
| DtOsgWindowTriangleGroupInstance * | myInstance |
| bool | myConnectedToPostUpdate |
Protected Attributes inherited from makVrv::DtWindowObject | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtUniqueID | myParentId |
| ChildList | myChildIdList |
| DtVector2d | myPosition |
| DtVector2d | myScale |
| DtVector2d | myWindowScale |
| double | myRotation |
| double | myFlashInterval |
| double | myLastFlashTime |
| double | myLastSimTime |
| bool | myVisible |
| bool | myLastVisibilityFlash |
| bool | myInheritColor |
| bool | myFlashing |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| Transform | myWindowTransform |
| DtClipBox | myClipBox |
| int | myGroup |
| std::string | myDisplayName |
| std::string | myWindowName |
| std::string | myChannelName |
Additional Inherited Members | |
Public Types inherited from makVrv::DtWindowObject | |
| typedef std::list< DtUniqueID > | ChildList |
| typedef DtVector2< double > | DtVector2d |
| typedef DtMatrix3< double > | Transform |
| makVrv::DtOsgWindowTriangleGroup::DtOsgWindowTriangleGroup | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
Set the number of Triangles that this group will have Should be set before addTriangle is called.
Reimplemented from makVrv::DtWindowTriangleGroup.
|
virtual |
Add an Triangle to the specified in params.
Reimplemented from makVrv::DtWindowTriangleGroup.
|
virtual |
Update the Triangle at in param index with in parma specs. The reason index is passed in is because we need to know which Triangle to update. You cannot just delete all the pointers and recreate once all the updateTriangle calls arrive ( indexNumber = myTriangleCount ), because the Triangles will flash on screen!!
Reimplemented from makVrv::DtWindowTriangleGroup.
|
virtual |
Set the group's visibility.
Reimplemented from makVrv::DtWindowObject.
|
virtual |
Set the group's color.
Reimplemented from makVrv::DtWindowObject.
|
virtual |
Set this object's group ID for z order. The higher the Z order the "closer" the element will be drawn to the eye point.
Reimplemented from makVrv::DtWindowObject.
|
overridevirtual |
By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. If a user wishes to draw a specific window object on a specific channel, use this method. This does not work for remote displays.
Reimplemented from makVrv::DtWindowObject.
|
protectedvirtual |
Called on signal_postUpdate; time to update render data.
|
protectedvirtual |
Called by all mutators to set up a postUpdate signal if not already connected.
Reimplemented from makVrv::DtWindowObject.
|
protected |
|
protected |