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) 2022 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 
146  virtual void setGroup(int) = 0;
147  };
148 }
std::vector< DtDirectionLineAltitudeBasedConfiguration > DtDirectionLineAltitudeBasedConfigurationCollection
A collection of altitude-based configurations.
Definition: DtOverlayDirectionLineModel.h:87
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
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.
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 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)