VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOverlayDirectionLineModel.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2026 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
11 
12 #pragma once
13 
15 
16 namespace makVrv
17 {
27  public DtOverlayLineModel
28  {
29  public:
37  {
38  public:
40  : myBaseMSLAltitude(std::numeric_limits<double>::min())
41  , myPointOneScale(1.0)
42  , myPointTwoScale(1.0)
43  {
44  // intentional noop
45  }
46 
48  double altitude, double pointOneScale, double pointTwoScale)
49  : myBaseMSLAltitude(altitude)
50  , myPointOneScale(pointOneScale)
51  , myPointTwoScale(pointTwoScale)
52  {
53  // intentional noop
54  }
55 
57  {
58  // intentional noop
59  }
60 
63  const DtDirectionLineAltitudeBasedConfiguration &other) = default;
64 
67  const DtDirectionLineAltitudeBasedConfiguration &other) = default;
68 
71 
72  public:
73 
75  {
76  return DtEq(myBaseMSLAltitude, config.myBaseMSLAltitude, DtEMilli)
77  && DtEq(myPointOneScale, config.myPointOneScale, DtEMilli)
78  && DtEq(myPointTwoScale, config.myPointTwoScale, DtEMilli);
79  }
80 
84  };
85 
87  typedef std::vector<DtDirectionLineAltitudeBasedConfiguration> DtDirectionLineAltitudeBasedConfigurationCollection;
88 
89  public:
92 
94  virtual ~DtOverlayDirectionLineModel();
95 
97  virtual void setDirection(int index, const DtVector& direction) = 0;
98 
102  virtual void setScale(int index, float scale) = 0;
103 
107  virtual void setLength(int index, float length) = 0;
108 
110  virtual void setAltitudeBasedConfigurations(
112 
117  virtual void clearAltitudeBasedConfigurations() = 0;
118 
128  virtual void setIsUseForcedAltitudeEnabled(bool enabled) = 0;
129 
134  virtual void setForcedAltitudeToUse(double minimumAltitudeForUse) = 0;
135 
138  virtual void setLodOutAltitude(double lodOutAltitude) = 0;
139 
141  virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled) = 0;
142 
144  virtual void setIsArrowHeadEnabled(bool isArrowHeadEnabled) = 0;
145 
148  virtual void setLineOutlined(bool isOutlined, float r, float g, float b, float a) = 0;
149 
153  virtual void setGroup(int) = 0;
154  };
155 }
std::vector< DtDirectionLineAltitudeBasedConfiguration > DtDirectionLineAltitudeBasedConfigurationCollection
A collection of altitude-based configurations.
Definition: DtOverlayDirectionLineModel.h:87
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
double myBaseMSLAltitude
Definition: DtOverlayDirectionLineModel.h:81
Contains declaration of DtOverlayLineModel.
DtOverlayLineModel extends the DtLineModel interface to include operations only appropriate for 2D li...
Definition: DtOverlayLineModel.h:20
~DtDirectionLineAltitudeBasedConfiguration()
Definition: DtOverlayDirectionLineModel.h:56
double myPointTwoScale
Definition: DtOverlayDirectionLineModel.h:83
double myPointOneScale
Definition: DtOverlayDirectionLineModel.h:82
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
bool operator==(const DtDirectionLineAltitudeBasedConfiguration &config) const
Definition: DtOverlayDirectionLineModel.h:74
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtDirectionLineAltitudeBasedConfiguration(double altitude, double pointOneScale, double pointTwoScale)
Definition: DtOverlayDirectionLineModel.h:47
DtOverlayDirectionLineModel defines an abstract base class that all direction line models must implem...
Definition: DtOverlayDirectionLineModel.h:26
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
DtDirectionLineAltitudeBasedConfiguration()
Definition: DtOverlayDirectionLineModel.h:39
A class that defines an altitude-based configuration for a direction line model.
Definition: DtOverlayDirectionLineModel.h:36

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)