24 class DtSegmentedLine;
39 virtual void setVertex(
unsigned int vertex,
double x,
double y );
42 virtual void removeVertex(
unsigned int vertex );
45 virtual void setColor(
float r,
float g,
float b,
float a);
48 virtual void setStipplePattern(
unsigned int stipplePattern);
51 virtual void setWidth(
unsigned int width);
55 virtual void setStyleSegments(
const std::vector<double>& segmentPercentages );
58 virtual void setSegmentColor(
unsigned int index,
float r,
float g,
float b,
float a);
62 virtual void setSegmentStartColor(
unsigned int index,
float r,
float g,
67 virtual void setSegmentEndColor(
unsigned int index,
float r,
float g,
71 virtual void setSegmentLightningStyle(
unsigned int index,
bool enableLightningStyle);
74 virtual void setSegmentStartArrow(
unsigned int index,
bool enableStartArrow);
77 virtual void setSegmentEndArrow(
unsigned int index,
bool enableEndArrow);
80 virtual void setSegmentStipplePattern(
unsigned int index,
unsigned int stippleScale,
unsigned int stipplePattern);
83 virtual void setSegmentWidth(
unsigned int index,
unsigned int width);
86 virtual void setVisible(
bool isVisible);
89 virtual void update();
96 virtual void setScale(
double x,
double y );
100 virtual void resizeSegmentAttributes(
int size );
103 virtual void createLineIfNecessary();
106 virtual void updateSegments();
109 virtual void updateGeometry();
112 virtual void generateSegment(
int segmentIndex,
const osg::Vec2& startPoint,
113 const osg::Vec2& endPoint,
const osg::Vec2& segmentAxis,
114 const osg::Vec2& segmentPerpendicular );
128 int startColorRange[2];
129 int blendColorRange[2];
130 int endColorRange[2];
140 virtual void setLineSegmentColors(
unsigned int vtx,
Contains makVrv::DtWindowLineInstance class.
bool lightning
Definition: DtOsgWindowLineInstance.h:122
bool myGeometryDirty
Definition: DtOsgWindowLineInstance.h:170
Contains makVrv::DtRgbColorInterpolator class declaration.
osg::Vec2 myClipBoxTopRight
Definition: DtOsgWindowLineInstance.h:177
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtSegmentedLine * myLine
Definition: DtOsgWindowLineInstance.h:162
vrvGraphics implementation of a 2D Line
Definition: DtOsgWindowLineInstance.h:29
bool colorRangesSetup
Definition: DtOsgWindowLineInstance.h:132
voidpf void uLong size
Definition: ioapi.h:39
unsigned int myStipplePattern
Definition: DtOsgWindowLineInstance.h:166
std::vector< osg::Vec2 > Points
Definition: DtOsgWindowLineInstance.h:152
bool myVisible
Definition: DtOsgWindowLineInstance.h:169
Points myVertices
Definition: DtOsgWindowLineInstance.h:158
osg::Vec2 myClipBoxBottomLeft
Definition: DtOsgWindowLineInstance.h:176
double myXScale
Definition: DtOsgWindowLineInstance.h:174
osg::Vec4 myColor
Definition: DtOsgWindowLineInstance.h:164
int segmentStartVertex
Definition: DtOsgWindowLineInstance.h:126
SegmentAttributesVector mySegmentAttributes
Definition: DtOsgWindowLineInstance.h:160
unsigned int width
Definition: DtOsgWindowLineInstance.h:119
bool startArrow
Definition: DtOsgWindowLineInstance.h:120
unsigned int stipplePatternScale
Definition: DtOsgWindowLineInstance.h:124
float myWidth
Definition: DtOsgWindowLineInstance.h:165
DtRgbColorInterpolator interpolator
Definition: DtOsgWindowLineInstance.h:131
bool endArrow
Definition: DtOsgWindowLineInstance.h:121
Points myPoints
Definition: DtOsgWindowLineInstance.h:155
osg::Matrix myTransform
Definition: DtOsgWindowLineInstance.h:173
unsigned int stipplePattern
Definition: DtOsgWindowLineInstance.h:123
Definition: DtRgbColorInterpolator.h:21
int segmentEndVertex
Definition: DtOsgWindowLineInstance.h:127
Interface for a DtWindowLineInstance - an attachable model instance that draws a 2D line...
Definition: DtWindowLineInstance.h:27
DtDe & myDe
Definition: DtOsgWindowLineInstance.h:149
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
bool mySegmentsDirty
Definition: DtOsgWindowLineInstance.h:171
A convex polygon drawn using lines.
Definition: DtSegmentedLine.h:24
std::vector< double > mySegmentPercentages
Definition: DtOsgWindowLineInstance.h:167
double myYScale
Definition: DtOsgWindowLineInstance.h:175
std::vector< SegmentAttributes > SegmentAttributesVector
Definition: DtOsgWindowLineInstance.h:151
Attributes describing one segment in a segmented line.
Definition: DtOsgWindowLineInstance.h:117