VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOverlayGreatCircleArcModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
15 
16 namespace makVrv
17 {
18  class DtSegmentedLine;
19  class DtGreatCircleCurveGenerator;
20  class DtCoordinateSystem;
21 
27  {
28  public:
29 
32 
35 
38  virtual void setMaxSubdivisions( int subDivisions );
39 
43  virtual void setPreferredSubdivisionSize( double size );
44 
47  virtual void setHeightScale( double heightScale );
48 
51  virtual bool realize(const DtModelDefinition& definition);
52 
53  protected:
54 
56  virtual void updateGeometry();
57 
59  virtual void generateStyleSegmentedGeometry();
60 
62  virtual void generateMultipointGeometry();
63 
65  virtual void updateSegments();
66 
68  virtual void resizeSegmentAttributes( int size );
69 
72  virtual int calculateNumSubdivisions(
73  const DtGreatCircleCurveGenerator& curveGen,
74  const DtVector& endGeod, double percentage ) const;
75 
77  DtVector localToGeodetic( const DtVector& local );
78 
80  DtVector geodeticToLocal( const DtVector& geodetic );
81 
83  virtual void slot_coordinateSystemChanged();
84 
85  protected:
86 
88  {
91  };
92 
93  typedef std::vector<SegmentLandmarks> SegmentLandmarksVector;
94 
96  double myHeightScale;
99 
101 
104  DtCoordinateSystem* myCoordinateSystem = nullptr;
105  };
106 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Model instance to draw a 3D line with styleable segments onto the 2D overlay.
Definition: DtOverlaySegmentedLineModelInstance.h:37
voidpf void uLong size
Definition: ioapi.h:39
double myPreferredSubdivisionSize
Definition: DtOverlayGreatCircleArcModelInstance.h:98
Model instance to draw a 3D line with styleable segments onto the 2D overlay.
Definition: DtOverlayGreatCircleArcModelInstance.h:25
int myMaxSubdivisions
Definition: DtOverlayGreatCircleArcModelInstance.h:97
double myHeightScale
Definition: DtOverlayGreatCircleArcModelInstance.h:96
int segmentStartVertex
Definition: DtOverlayGreatCircleArcModelInstance.h:89
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:42
DtSignalConnectionManager myConnections
Definition: DtOverlayGreatCircleArcModelInstance.h:100
Contains makVrv::DtOverlaySegmentedLineModelInstance class.
Definition: DtOverlayGreatCircleArcModelInstance.h:87
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
DtGreatCircleCurveGenerator generates a set of geodetic points that follow a great circle at a radius...
Definition: DtGreatCircleCurveGenerator.h:29
Base class to provide boost signal/slot management.
SegmentLandmarksVector mySegmentLandmarks
Definition: DtOverlayGreatCircleArcModelInstance.h:95
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:76
int segmentEndVertex
Definition: DtOverlayGreatCircleArcModelInstance.h:90
std::vector< SegmentLandmarks > SegmentLandmarksVector
Definition: DtOverlayGreatCircleArcModelInstance.h:93

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)