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) 2023 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 const std::vector<DtVector>& points() const;
119 
121  virtual void setModelDefinition( const std::string& str );
122 
123  protected:
124 
125  // @name Inherited DtModel methods
126  // @{
127 
129  virtual void addToScene( const DtUniqueID& sceneObjectId, DtModelSetId modelSet, int visualizerType );
130 
132  virtual void removeFromScene();
133 
134  // @}
135 
137  virtual void needsUpdate();
138 
141  virtual void update();
142 
143  protected:
145  int myGroup;
146 
147  boost::signalslib::connection mySignalPostUpdateConnection;
148  };
149 }
bool myNeedsUpdate
Definition: DtOsgOverlayDirectionLineModel.h:144
std::vector< DtDirectionLineAltitudeBasedConfiguration > DtDirectionLineAltitudeBasedConfigurationCollection
A collection of altitude-based configurations.
Definition: DtOverlayDirectionLineModel.h:87
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
boost::signalslib::connection mySignalPostUpdateConnection
Definition: DtOsgOverlayDirectionLineModel.h:147
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
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.
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:145
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:72
DtModelSetId
Definition: DtModelSetEnums.h:19

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)