VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTexturedLineSegment.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
14 
15 namespace makVrv
16 {
17  class DtQuadProxyInterface;
18  class DtQuadRenderer;
19  class DtOverlayRendererInterface;
20  class DtTextureInterface;
21 
25  {
26  public:
27 
30 
33 
35  virtual ~DtTexturedLineSegment();
36 
37  public:
38 
43  virtual void setGroup(float group) override;
44 
46  virtual int group() const override;
47 
49  virtual void set2DPosition(unsigned int index0or1, float x, float y) override;
50 
51  //Set the position of the vertex.
52  virtual void get2DPosition(unsigned int index0or1, float& x, float& y ) const override;
53 
56  virtual void set3DPosition(int index0or1,float dx, float dy, float z, float w) override;
57 
58  //Get the 3D position of the line.
59  virtual void get3DPosition(int index0or1,float& dx, float& dy, float& z, float& w) const override;
60 
61  //Set the vertex color.
62  virtual void setColor(float r, float g, float b, float a);
63 
64  //Get the vertex color.
65  virtual void getColor(float& r, float& g, float& b, float& a) const;
66 
69  virtual void setWidth(float w) override;
70 
72  virtual float width() const override;
73 
77  virtual void setTextureParameters( DtTextureInterface* texture,
78  float left = 0.0f, float right = 1.0f,
79  float bottom = 0.0f, float top = 1.0f );
80 
82  virtual void setZoomFactor(float z);
83 
86  void setPatternWidth(float widthPixels);
87 
91  void setTrimEndPattern(bool trim);
92 
94  virtual void set2DPositions(float x1, float y1, float x2, float y2) override;
95 
96  //Set the vertex color.
97  virtual void setColor(unsigned int index0or1,float r, float g, float b, float a) override;
98 
99  //Get the vertex color.
100  virtual void getColor(unsigned int index0or1,float& r, float& g, float& b, float& a) const override;
101 
103  virtual void setColors(float r1, float g1, float b1, float a1,
104  float r2, float g2, float b2, float a2) override;
105 
107  virtual void setRotationOffset(float);
108 
110  protected:
115  {};
116 
124  {};
125 
133  virtual void setIsUseForcedAltitudeEnabled(bool enabled)
134  {};
135 
140  virtual void setForcedAltitudeToUse(double minimumAltitudeForUse)
141  {};
142 
146  virtual void setLodOutAltitude(double lodOutAltitude)
147  {};
148 
151  virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled)
152  {};
153 
156  virtual void set3DDirection(unsigned int index0or1, float x, float y, float z) override
157  {};
158 
160  virtual void get3DDirection(unsigned int index0or1, float& x, float& y, float& z) const override
161  {};
162 
164  virtual void setDirection2DLength(unsigned int index0or1, float length) override
165  {};
166 
168  virtual float direction2DLength(unsigned int index0or1) const override
169  { return 0.0f; };
170 
172  virtual void setStippleParameters(unsigned int scale,unsigned short pattern) override;
173 
176  virtual void getStippleParameters(unsigned int& scale, unsigned short& pattern) const override;
177 
178  protected:
180  virtual void resetTextureCoordinates();
181 
182  private:
183 
185  DtTexturedLineSegment& operator=(const DtTexturedLineSegment&);
186 
187  protected:
189  float myVertices[2][4];
190  float my2DVertices[2][2];
198 
199  protected:
201  };
202 
203 }
Contains makVrv::DtOverlayResourceProvider class.
virtual void setForcedAltitudeToUse(double minimumAltitudeForUse)
Set the MSL altitude, in meters, to use when determining the altitude-based configuration to use...
Definition: DtTexturedLineSegment.h:140
A class which represents a single line segment.
Definition: DtTexturedLineSegment.h:24
virtual float direction2DLength(unsigned int index0or1) const override
Get the length of the line in 2D space.
Definition: DtTexturedLineSegment.h:168
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
float myRotationOffset
Definition: DtTexturedLineSegment.h:197
virtual void setLodOutAltitude(double lodOutAltitude)
Set the minimum MSL altitude, in meters, at which the line will no longer appear Unimplemented for th...
Definition: DtTexturedLineSegment.h:146
float myPatternWidth
Uniform pattern tile width in pixels pushed from the owning polygon; 0 means use myTextureWidth.
Definition: DtTexturedLineSegment.h:194
virtual void setIsUseForcedAltitudeEnabled(bool enabled)
Set whether or not a particular altitude-based configuration is used, regardless of altitude...
Definition: DtTexturedLineSegment.h:133
DtTextureInterface * myTexture
Definition: DtTexturedLineSegment.h:191
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition: DtTextureInterface.h:26
A class which allocates and draws quads.
Definition: DtQuadRenderer.h:44
virtual void set3DDirection(unsigned int index0or1, float x, float y, float z) override
Set the normalized direction of the line in world space. Unimplemented for this type of line...
Definition: DtTexturedLineSegment.h:156
virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled)
Set whether or not this attribute will use the LOD Out Altitude property. Unimplemented for this type...
Definition: DtTexturedLineSegment.h:151
virtual void get3DDirection(unsigned int index0or1, float &x, float &y, float &z) const override
Get the normalized direction of the vertex. Unimplemented for this line.
Definition: DtTexturedLineSegment.h:160
virtual void setDirection2DLength(unsigned int index0or1, float length) override
Set the length of the line in 2D space. Unimplemented for this line.
Definition: DtTexturedLineSegment.h:164
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
float myZoomFactor
Definition: DtTexturedLineSegment.h:196
virtual void setAltitudeBasedConfigurations(const DtLineSegmentInterface::DtLineSegmentAltitudeBasedConfigurationCollection &configs)
Unimplemented.
Definition: DtTexturedLineSegment.h:113
An interface for a textured single line segment.
Definition: DtTexturedLineSegmentInterface.h:18
A single 2D quadrilateral.
Definition: DtQuadProxyInterface.h:21
bool myTrimEndPattern
Definition: DtTexturedLineSegment.h:195
std::vector< DtLineSegmentAltitudeBasedConfiguration > DtLineSegmentAltitudeBasedConfigurationCollection
A collection of altitude-based configurations.
Definition: DtLineSegmentInterface.h:76
DtQuadProxyInterface * myVertex
Definition: DtTexturedLineSegment.h:188
virtual void clearAltitudeBasedConfigurations()
Clear the altitude-based configurations for this line segment. The line segment will no longer have a...
Definition: DtTexturedLineSegment.h:123
The DtOverlayRendererInterface implements the overlay concept. An overlay is a 2D scene that is drawn...
Definition: DtOverlayRendererInterface.h:80
float myTextureWidth
Definition: DtTexturedLineSegment.h:192

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)