![]() |
VR-Forces 5.0.2 Developer's Guide
|
This class updates vertices for each triangle added via addTriangle. They are stored in a vector of triangleStructs which contain the verts and stipple pattern. You can update the triangles after they have been added without deleting them using updateTriangle. This means that they do not flash on screen. Please call settriangleCount before adding triangles. updateTriangle will adjust the number of DtFilledPolygons this class has to match mytriangleCount.

Classes | |
| struct | Triangle |
| struct | TriangleStruct |
Public Member Functions | |
| DtOsgWindowTriangleGroupInstance (DtDe &de) | |
| virtual | ~DtOsgWindowTriangleGroupInstance () |
| 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 yVertex2) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName) override |
Public Member Functions inherited from makVrv::DtOsgWindowPolygonInstance | |
| DtOsgWindowPolygonInstance (DtDe &de) | |
| virtual | ~DtOsgWindowPolygonInstance () |
| virtual void | setFillPattern (unsigned int fillPattern) |
| virtual void | setNumVertices (unsigned int numVertices) |
| virtual void | setVertex (int i, double x, double y) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setFill (bool fill) |
| virtual bool | visible () const |
| virtual void | setTransform (DtMatrix3< double > transform) |
| virtual void | update () |
| virtual void | setGroup (int groupId) |
| virtual void | createPolygon () |
| virtual void | setClipBox (DtVector2< double > bottomLeftLocation, DtVector2< double > topRightLocation) |
Public Member Functions inherited from makVrv::DtWindowPolygonInstance | |
| virtual | ~DtWindowPolygonInstance () |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
Protected Member Functions | |
| virtual void | updateGeometry () |
| virtual void | deleteAllTriangles () |
| virtual DtFilledPolygon * | createTriangle () |
Protected Member Functions inherited from makVrv::DtOsgWindowPolygonInstance | |
| virtual void | slot_channelToBeDestroyed (DtChannelManager *, DtChannel *) |
Protected Attributes | |
| std::vector< TriangleStruct > | myTriangles |
| unsigned int | myTriangleCount |
Protected Attributes inherited from makVrv::DtOsgWindowPolygonInstance | |
| DtDe & | myDe |
| DtPolygon * | myPolygon |
| VertexList | myVertices |
| osg::Matrix | myTransform |
| unsigned int | myFillPattern |
| unsigned int | myGroup |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| bool | myFill |
| bool | myGeometryDirty |
| bool | myUseChannelOverlay |
| bool | myVisible |
| osg::Vec2 | myClipBoxBottomLeft |
| osg::Vec2 | myClipBoxTopRight |
| std::string | myDisplayName |
| std::string | myWindowName |
| std::string | myChannelName |
| DtSignalConnectionManager | myConnections |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtOsgWindowPolygonInstance | |
| typedef std::vector< osg::Vec2 > | VertexList |
| makVrv::DtOsgWindowTriangleGroupInstance::DtOsgWindowTriangleGroupInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the number of Triangles that this group will have Should be set before addTriangle is called.
|
virtual |
Add an Triangle to the specified in params Calls createTriangleStruct.
|
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!!
|
virtual |
Set all of the Triangles to visible or invisible.
Reimplemented from makVrv::DtOsgWindowPolygonInstance.
|
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::DtOsgWindowPolygonInstance.
|
protectedvirtual |
Generate the vertices of the graphic polygon that approximates the Triangle Loops through myTriangles updating vertices on either the filled polygons or Triangles. Called by DtOsgWindowTriangleInstance::update()
Reimplemented from makVrv::DtOsgWindowPolygonInstance.
|
protectedvirtual |
Delete all the pointers and structs in myTriangles.
|
protectedvirtual |
Create a Triangle.
|
protected |