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

Classes | |
| struct | Line |
| struct | LineStruct |
Public Member Functions | |
| DtOsgWindowLineGroupInstance (DtDe &de) | |
| virtual | ~DtOsgWindowLineGroupInstance () |
| virtual void | setLineCount (unsigned int count) |
| virtual void | addLine (float lineWidth, unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1) |
| virtual void | updateLine (unsigned int index, float lineWidth, unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1) |
| 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::DtOsgWindowLineInstance | |
| DtOsgWindowLineInstance (DtDe &de) | |
| virtual | ~DtOsgWindowLineInstance () |
| virtual void | setVertex (unsigned int vertex, double x, double y) |
| virtual void | removeVertex (unsigned int vertex) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual void | setWidth (unsigned int width) |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages) |
| virtual void | setSegmentColor (unsigned int index, float r, float g, float b, float a) |
| virtual void | setSegmentStartColor (unsigned int index, float r, float g, float b, float a) |
| virtual void | setSegmentEndColor (unsigned int index, float r, float g, float b, float a) |
| virtual void | setSegmentLightningStyle (unsigned int index, bool enableLightningStyle) |
| virtual void | setSegmentStartArrow (unsigned int index, bool enableStartArrow) |
| virtual void | setSegmentEndArrow (unsigned int index, bool enableEndArrow) |
| virtual void | setSegmentStipplePattern (unsigned int index, unsigned int stippleScale, unsigned int stipplePattern) |
| virtual void | setSegmentWidth (unsigned int index, unsigned int width) |
| virtual void | update () |
| virtual void | setTransform (DtMatrix3< double > transform) |
| virtual void | createLine () |
| virtual void | setClipBox (DtVector2< double > bottomLeftLocation, DtVector2< double > topRightLocation) |
| virtual void | setGroup (int groupId) |
Public Member Functions inherited from makVrv::DtWindowLineInstance | |
| virtual | ~DtWindowLineInstance () |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
Protected Member Functions | |
| virtual void | updateGeometry () |
| virtual void | deleteAllLines () |
| virtual DtSegmentedLine * | createAdditionalLine () |
Protected Member Functions inherited from makVrv::DtOsgWindowLineInstance | |
| virtual void | resizeSegmentAttributes (int size) |
| virtual void | updateSegments () |
| virtual void | generateSegment (int segmentIndex, const osg::Vec2 &startPoint, const osg::Vec2 &endPoint, const osg::Vec2 &segmentAxis, const osg::Vec2 &segmentPerpendicular) |
| virtual void | setupColorRanges (SegmentAttributes *segmentAttributes) |
| virtual void | setLineSegmentColors (unsigned int vtx, SegmentAttributes *segmentAttributes) |
| virtual void | slot_channelToBeDestroyed (DtChannelManager *, DtChannel *) |
Protected Attributes | |
| std::vector< LineStruct > | myLines |
| unsigned int | myLineCount |
Protected Attributes inherited from makVrv::DtOsgWindowLineInstance | |
| DtDe & | myDe |
| Points | myPoints |
| Points | myVertices |
| SegmentAttributesVector | mySegmentAttributes |
| DtSegmentedLine * | myLine |
| osg::Vec4 | myColor |
| float | myWidth |
| unsigned int | myStipplePattern |
| unsigned int | myGroup |
| std::vector< double > | mySegmentPercentages |
| bool | myGeometryDirty |
| bool | mySegmentsDirty |
| bool | myUseChannelOverlay |
| bool | myVisible |
| osg::Matrix | myTransform |
| 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::DtOsgWindowLineInstance | |
| typedef std::vector < SegmentAttributes > | SegmentAttributesVector |
| typedef std::vector< osg::Vec2 > | Points |
| makVrv::DtOsgWindowLineGroupInstance::DtOsgWindowLineGroupInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
Set the number of Lines that this group will have Should be set before addLine is called.
|
virtual |
Add an Line to the specified in params Calls createLineStruct.
|
virtual |
Set all of the Lines to visible or invisible.
Reimplemented from makVrv::DtOsgWindowLineInstance.
|
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::DtOsgWindowLineInstance.
|
protectedvirtual |
Generate the vertices of the graphic polygon that approximates the Line Loops through myLines updating vertices on either the filled polygons or lines. Called by DtOsgWindowLineInstance::update()
Reimplemented from makVrv::DtOsgWindowLineInstance.
|
protectedvirtual |
Delete all the pointers and structs in myLines.
|
protectedvirtual |
Create a line.
|
protected |