VR-Forces 5.0.3 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) 2021 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  , myPointOneLength(1.0)
42  , myPointTwoLength(1.0)
43  {
44  // intentional noop
45  }
46 
48  double altitude, double pointOneLength, double pointTwoLength)
49  : myBaseMSLAltitude(altitude)
50  , myPointOneLength(pointOneLength)
51  , myPointTwoLength(pointTwoLength)
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(myPointOneLength, config.myPointOneLength, DtEMilli)
78  && DtEq(myPointTwoLength, config.myPointTwoLength, 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 setLength(int index, float length) = 0;
103 
105  virtual void setAltitudeBasedConfigurations(
107 
112  virtual void clearAltitudeBasedConfigurations() = 0;
113 
123  virtual void setIsUseForcedAltitudeEnabled(bool enabled) = 0;
124 
129  virtual void setForcedAltitudeToUse(double minimumAltitudeForUse) = 0;
130 
133  virtual void setLodOutAltitude(double lodOutAltitude) = 0;
134 
136  virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled) = 0;
137 
141  virtual void setGroup(int) = 0;
142  };
143 }
std::vector< DtDirectionLineAltitudeBasedConfiguration > DtDirectionLineAltitudeBasedConfigurationCollection
A collection of altitude-based configurations.
Definition: DtOverlayDirectionLineModel.h:87
DtDirectionLineAltitudeBasedConfiguration(double altitude, double pointOneLength, double pointTwoLength)
Definition: DtOverlayDirectionLineModel.h:47
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
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
bool operator==(const DtDirectionLineAltitudeBasedConfiguration &config) const
Definition: DtOverlayDirectionLineModel.h:74
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:70
DtDirectionLineAltitudeBasedConfiguration()
Definition: DtOverlayDirectionLineModel.h:39
double myPointOneLength
Definition: DtOverlayDirectionLineModel.h:82
double myPointTwoLength
Definition: DtOverlayDirectionLineModel.h:83
A class that defines an altitude-based configuration for a direction line model.
Definition: DtOverlayDirectionLineModel.h:36

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)