VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgOverlayDirectionLineModel.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 #pragma once
6 
10 
11 #include <vrvOsg/vrvOsg.h>
13 #include <vrvUtil/signalslib.h>
14 
15 namespace makVrv
16 {
17 
22  {
23  public:
26 
29 
32 
35  const DtOsgOverlayDirectionLineModel &other) = delete;
36 
39  const DtOsgOverlayDirectionLineModel &other) = delete;
40 
41  public:
42 
44  virtual void setPosition(int index, const DtVector& position);
45 
47  virtual void setDirection(int index, const DtVector& direction);
48 
52  virtual void setScale(int index, float scale);
53 
55  virtual void setLength(int index, float length);
56 
58  virtual void setColor(float r, float g, float b, float a);
59 
61  virtual void setWidth(float width);
62 
64  virtual void setStipplePattern(unsigned int stipple, int repeatFactor);
65 
67  virtual void setEventsEnabled(bool);
68 
72  virtual void setGroup(int);
73 
75  virtual void setPositionOffset(const DtVector&);
77  virtual void setIsSupportModel( bool );
78  // @}
79 
81  virtual void setVisible( bool isVisible );
82 
84  virtual void setAltitudeBasedConfigurations(
86 
91  virtual void clearAltitudeBasedConfigurations();
92 
102  virtual void setIsUseForcedAltitudeEnabled(bool enabled);
103 
108  virtual void setForcedAltitudeToUse(double minimumAltitudeForUse);
109 
112  virtual void setLodOutAltitude( double lodOutAltitude );
113 
115  virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled);
116 
118  virtual void setIsArrowHeadEnabled(bool isArrowHeadEnabled);
119 
122  virtual void setLineOutlined(bool isOutlined, float r, float g, float b, float a);
123 
125  virtual const std::vector<DtVector>& points() const;
126 
128  virtual void setModelDefinition( const std::string& str );
129 
130  protected:
131 
132  // @name Inherited DtModel methods
133  // @{
134 
136  virtual void addToScene( const DtUniqueID& sceneObjectId, DtModelSetId modelSet, int visualizerType );
137 
139  virtual void removeFromScene();
140 
141  // @}
142 
144  virtual void needsUpdate();
145 
148  virtual void update();
149 
150  protected:
152  int myGroup;
153 
154  boost::signalslib::connection mySignalPostUpdateConnection;
155  };
156 }
bool myNeedsUpdate
Definition: DtOsgOverlayDirectionLineModel.h:151
std::vector< DtDirectionLineAltitudeBasedConfiguration > DtDirectionLineAltitudeBasedConfigurationCollection
A collection of altitude-based configurations.
Definition: DtOverlayDirectionLineModel.h:87
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
boost::signalslib::connection mySignalPostUpdateConnection
Definition: DtOsgOverlayDirectionLineModel.h:154
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains declaration of DtOverlayDirectionLineModel, which draws direction lines in an overlay layer ...
OSG implementation of 2D segmented line.
Definition: DtOsgOverlayDirectionLineModel.h:20
int myGroup
Definition: DtOsgOverlayDirectionLineModel.h:152
DtOverlayDirectionLineModel defines an abstract base class that all direction line models must implem...
Definition: DtOverlayDirectionLineModel.h:26
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtModelSetId
Definition: DtModelSetEnums.h:19

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)