OSG Implementation of a DtWindowLineInstance. Uses a vrvGraphics DtSegmentedLine to draw a 2D Line.
|
| | 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 | setVisible (bool isVisible) |
| |
| 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) |
| |
| virtual | ~DtWindowLineInstance () |
| |
| virtual | ~DtSetVisibilityInterface () |
| |
| makVrv::DtOsgWindowLineInstance::DtOsgWindowLineInstance |
( |
DtDe & |
de | ) |
|
| virtual makVrv::DtOsgWindowLineInstance::~DtOsgWindowLineInstance |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::removeVertex |
( |
unsigned int |
vertex | ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setStipplePattern |
( |
unsigned int |
stipplePattern | ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setWidth |
( |
unsigned int |
width | ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setStyleSegments |
( |
const std::vector< double > & |
segmentPercentages | ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setSegmentColor |
( |
unsigned int |
index, |
|
|
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setSegmentStartColor |
( |
unsigned int |
index, |
|
|
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
virtual |
Set the color of the firt vertex in a segment. This can be used for color blending between vertices.
Implements makVrv::DtWindowLineInstance.
| virtual void makVrv::DtOsgWindowLineInstance::setSegmentEndColor |
( |
unsigned int |
index, |
|
|
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
virtual |
Set the color of the second vertex in a segment. This can be used for color blending between vertices.
Implements makVrv::DtWindowLineInstance.
| virtual void makVrv::DtOsgWindowLineInstance::setSegmentLightningStyle |
( |
unsigned int |
index, |
|
|
bool |
enableLightningStyle |
|
) |
| |
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setSegmentStartArrow |
( |
unsigned int |
index, |
|
|
bool |
enableStartArrow |
|
) |
| |
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setSegmentEndArrow |
( |
unsigned int |
index, |
|
|
bool |
enableEndArrow |
|
) |
| |
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setVisible |
( |
bool |
isVisible | ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::update |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setTransform |
( |
DtMatrix3< double > |
transform | ) |
|
|
virtual |
Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices.
Implements makVrv::DtWindowLineInstance.
| virtual void makVrv::DtOsgWindowLineInstance::createLine |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowLineInstance::setGroup |
( |
int |
groupId | ) |
|
|
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.
Implements makVrv::DtWindowLineInstance.
| virtual void makVrv::DtOsgWindowLineInstance::resizeSegmentAttributes |
( |
int |
size | ) |
|
|
protectedvirtual |
Add segments to the segments attribute vector.
| virtual void makVrv::DtOsgWindowLineInstance::updateSegments |
( |
| ) |
|
|
protectedvirtual |
Updates the segment information.
| virtual void makVrv::DtOsgWindowLineInstance::updateGeometry |
( |
| ) |
|
|
protectedvirtual |
| virtual void makVrv::DtOsgWindowLineInstance::generateSegment |
( |
int |
segmentIndex, |
|
|
const osg::Vec2 & |
startPoint, |
|
|
const osg::Vec2 & |
endPoint, |
|
|
const osg::Vec2 & |
segmentAxis, |
|
|
const osg::Vec2 & |
segmentPerpendicular |
|
) |
| |
|
protectedvirtual |
Generate vertices for a single segment.
| virtual void makVrv::DtOsgWindowLineInstance::setupColorRanges |
( |
SegmentAttributes * |
segmentAttributes | ) |
|
|
protectedvirtual |
Determine the sub-segment range for each segment color specified.
Sets the point colors for the line segments based on the features and colors provided in segmentAttributes.
| virtual void makVrv::DtOsgWindowLineInstance::setChannelOverlay |
( |
const std::string & |
displayName, |
|
|
const std::string & |
windowName, |
|
|
const std::string & |
channelName |
|
) |
| |
|
overrideprotectedvirtual |
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.
Implements makVrv::DtWindowLineInstance.
Reimplemented in makVrv::DtOsgWindowLineGroupInstance.
Destroy the line when the channel its being rendered on is going to be destroyed.
| DtDe& makVrv::DtOsgWindowLineInstance::myDe |
|
protected |
| Points makVrv::DtOsgWindowLineInstance::myPoints |
|
protected |
| Points makVrv::DtOsgWindowLineInstance::myVertices |
|
protected |
| osg::Vec4 makVrv::DtOsgWindowLineInstance::myColor |
|
protected |
| float makVrv::DtOsgWindowLineInstance::myWidth |
|
protected |
| unsigned int makVrv::DtOsgWindowLineInstance::myStipplePattern |
|
protected |
| std::vector<double> makVrv::DtOsgWindowLineInstance::mySegmentPercentages |
|
protected |
| bool makVrv::DtOsgWindowLineInstance::myGeometryDirty |
|
protected |
| bool makVrv::DtOsgWindowLineInstance::mySegmentsDirty |
|
protected |
| bool makVrv::DtOsgWindowLineInstance::myUseChannelOverlay |
|
protected |
| bool makVrv::DtOsgWindowLineInstance::myVisible |
|
protected |
| osg::Matrix makVrv::DtOsgWindowLineInstance::myTransform |
|
protected |
| osg::Vec2 makVrv::DtOsgWindowLineInstance::myClipBoxBottomLeft |
|
protected |
| osg::Vec2 makVrv::DtOsgWindowLineInstance::myClipBoxTopRight |
|
protected |
| std::string makVrv::DtOsgWindowLineInstance::myDisplayName |
|
protected |
| std::string makVrv::DtOsgWindowLineInstance::myWindowName |
|
protected |
| std::string makVrv::DtOsgWindowLineInstance::myChannelName |
|
protected |
The documentation for this class was generated from the following file: