VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOverlayLinearModel.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtOverlayModel.h>
14 
15 #include <utility>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtSegmentedLineInterface;
21  class DtTextProxyInterface;
22  class DtCoordinateSystem;
23 
27  {
28  DtLinearModelData() = delete;
29  DtLinearModelData( const std::string& modelDef,
30  const std::vector< DtSegmentedLineInterface* >& segmentInterfaces,
31  const std::vector< DtTextProxyInterface* >& labelInterfaces,
32  std::vector<std::pair<int, int>>& erasedSegments,
33  const std::vector<DtVector>& controlPoints,
34  const DtTaitBryan& orientation,
35  const DtCoordinateSystem& cs,
36  const std::vector<std::string>& additionalLabels,
37  double viewResolution,
38  double labelGapPadding );
39 
40  const std::string& myModelDefinition;
41  const std::vector< DtSegmentedLineInterface* >& mySegmentInterfaces;
42  const std::vector< DtTextProxyInterface* >& myLabelInterfaces;
45  std::vector<std::pair<int, int>>& myErasedSegments;
46  const std::vector<DtVector>& myControlPoints;
47  const DtTaitBryan& myOrientation;
49  const std::vector<std::string>& myAdditionalLabels;
54  };
55 
59  {
60  public:
63 
65  virtual ~DtOverlayLinearModel();
66 
68  DtOverlayLinearModel() = delete;
69 
71  DtOverlayLinearModel( const DtOverlayLinearModel& ) = delete;
72 
74  DtOverlayLinearModel& operator=( const DtOverlayLinearModel& ) = delete;
75 
77  DtOverlayLinearModel( const DtOverlayLinearModel&& ) = delete;
78 
80  DtOverlayLinearModel& operator=( const DtOverlayLinearModel&& other ) = delete;
81  protected:
83  virtual void createGeometryIfNecessary() override;
84 
86  virtual void clearGeometry() override;
87 
89  virtual void updateVertices() override;
90 
92  virtual void updateColors() override;
93 
94  virtual void updateStipplePattern() override;
95  virtual void updateLineWidth() override;
96  virtual void updateEventsEnabled() override;
97 
99  virtual void updateGroup() override;
100 
103  virtual void updateLabels() override;
104 
106  virtual void updateLineColor( DtSegmentedLineInterface* seg, float r, float g, float b, float a ) const;
107 
109  virtual void updateLineWidth( DtSegmentedLineInterface* seg, float width ) const;
110 
112  virtual void setEventsEnabledLine( DtSegmentedLineInterface* seg, bool b, unsigned long long userData ) const;
113 
115  virtual void updateLineStipple( DtSegmentedLineInterface* seg, unsigned int stipple ) const;
116 
118  virtual void channelUpdated( const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData& updateData );
119 
122  virtual void initializeViewResolution();
123 
124  protected:
125  std::vector< DtSegmentedLineInterface* > mySegments;
126  std::vector< DtTextProxyInterface* > myLabels;
127 
129  std::vector<std::pair<int, int>> myErasedSegments;
130 
137  };
138 }
Model for Linear.
Definition: DtOverlayLinearModel.h:58
std::vector< DtTextProxyInterface * > myLabels
Definition: DtOverlayLinearModel.h:126
std::vector< std::pair< int, int > > myErasedSegments
Segments suppressed by geometry creators; re-applied after every recolor.
Definition: DtOverlayLinearModel.h:129
double myLabelGapPadding
Total gap padding around label text as a fraction of the label height.
Definition: DtOverlayLinearModel.h:53
const DtTaitBryan & myOrientation
Definition: DtOverlayLinearModel.h:47
Contains makVrv:DtTacticalGraphicModelUpdaterManager.
const std::vector< std::string > & myAdditionalLabels
Definition: DtOverlayLinearModel.h:49
const std::vector< DtSegmentedLineInterface * > & mySegmentInterfaces
Definition: DtOverlayLinearModel.h:41
const DtCoordinateSystem & myCoordinateSystem
Definition: DtOverlayLinearModel.h:48
Base Overlay Model.
Definition: DtOverlayModel.h:36
const std::string & myModelDefinition
Definition: DtOverlayLinearModel.h:40
An interface for a convex polygon drawn using lines.
Definition: DtSegmentedLineInterface.h:25
Structure used to supply data to callback. Provided as structure as contents could change over time...
Definition: DtTacticalGraphicModelUpdaterManager.h:37
A class with encapsulated a font loaded from disk with a given size.
Definition: DtFontInterface.h:22
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
const std::vector< DtVector > & myControlPoints
Definition: DtOverlayLinearModel.h:46
double myViewResolution
World meters per screen pixel from the last channel update; 0 = not yet received. ...
Definition: DtOverlayLinearModel.h:132
std::vector< std::pair< int, int > > & myErasedSegments
Output list filled by geometry creators; each pair is (segment-interface index, segment index) to dra...
Definition: DtOverlayLinearModel.h:45
std::vector< DtSegmentedLineInterface * > mySegments
Definition: DtOverlayLinearModel.h:125
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
float myAppliedFontPointSize
Last quantized point size pushed to labels; 0 = base font in use.
Definition: DtOverlayLinearModel.h:134
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
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
Struct for storing and moving around data to generate vertices, e.g. see DtOverlayGeometryBlock.h.
Definition: DtOverlayLinearModel.h:26
const std::vector< DtTextProxyInterface * > & myLabelInterfaces
Definition: DtOverlayLinearModel.h:42
DtFontInterface * myScaledFont
Cached scaled font pointer (non-owning); set when myAppliedFontPointSize &gt; 0.
Definition: DtOverlayLinearModel.h:136
double myViewResolution
World meters per screen pixel for the channel displaying this model set; 0 or negative = unknown...
Definition: DtOverlayLinearModel.h:51

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)