17 class DtLineSegmentProxy;
19 class DtOverlayRenderer;
27 const static unsigned short NoStipple = 0xFFFF;
28 const static unsigned short NoLine = 0x0;
52 virtual void setAltitudeBasedConfigurations(
60 virtual void clearAltitudeBasedConfigurations();
68 virtual void setIsUseForcedAltitudeEnabled(
bool enabled);
73 virtual void setForcedAltitudeToUse(
double minimumAltitudeForUse);
77 virtual void setLodOutAltitude(
double lodOutAltitude);
80 virtual void setIsLodOutAltitudeEnabled(
bool isLodOutAltitudeEnabled);
86 virtual void setGroup(
float group);
89 virtual int group()
const;
92 void set2DPositions(
float x1,
float y1,
float x2,
float y2);
95 void set2DPosition(
unsigned int index0or1,
float x,
float y);
98 void get2DPosition(
unsigned int index0or1,
float& x,
float& y )
const;
101 void setColors(
float r1,
float g1,
float b1,
float a1,
102 float r2,
float g2,
float b2,
float a2);
106 virtual void set3DPosition(
int index0or1,
float dx,
float dy,
float z,
float w);
109 virtual void get3DPosition(
int index0or1,
float& dx,
float& dy,
float& z,
float& w)
const;
112 virtual void set3DDirection(
unsigned int index0or1,
float x,
float y,
float z);
115 virtual void get3DDirection(
unsigned int index0or1,
float& x,
float& y,
float& z)
const;
118 virtual void setDirection2DLength(
unsigned int index0or1,
float length);
121 virtual float direction2DLength(
unsigned int index0or1)
const;
124 virtual void setColor(
unsigned int index0or1,
float r,
float g,
float b,
float a);
127 virtual void getColor(
unsigned int index0or1,
float& r,
float& g,
float& b,
float& a)
const;
130 void setColor1(
float r1,
float g1,
float b1,
float a1);
133 void setColor2(
float r2,
float g2,
float b2,
float a2);
136 inline void setColor(
float r,
float g,
float b,
float a)
138 setColors(r,g,b,a,r,g,b,a);
144 void setScale(
int index,
float scale);
147 float scale(
unsigned int index0or1)
const;
151 virtual void setWidth(
float w);
154 virtual float width()
const;
162 virtual void setStippleParameters(
unsigned int scale,
unsigned short pattern);
166 virtual void getStippleParameters(
unsigned int& scale,
unsigned short& pattern)
const;
void setColor(float r, float g, float b, float a)
Definition: DtLineSegment.h:136
A line segment proxy is a flyweight class for controlling a single line segment.
Definition: DtLineRenderer.h:191
An interface for a single line segment.
Definition: DtLineSegmentInterface.h:23
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
A class which represents a single line segment.
Definition: DtLineSegment.h:23
Contains the makVrv::DtLineSegmentInterface class declaration.
std::vector< DtLineSegmentAltitudeBasedConfiguration > DtLineSegmentAltitudeBasedConfigurationCollection
A collection of altitude-based configurations.
Definition: DtLineSegmentInterface.h:76
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
DtLineSegmentProxy * myProxy
Definition: DtLineSegment.h:173
DtLineSegment()
Definition: DtLineSegment.h:170
Contains the makVrv::DtLineRenderer class declaration.
A class responsible for rendering lines.
Definition: DtLineRenderer.h:49
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:67