VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGotoLogic.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
14 
16 
18 
20 
22 
23 #include <string>
24 
25 class DtExtent;
26 
27 typedef struct _OGRGeocodingSessionHS *OGRGeocodingSessionH;
28 typedef void *OGRGeometryH;
29 
30 namespace makVrv
31 {
32  class DtDe;
33  class DtGotoWidgetInterface;
34  class DtUnicode;
35  class DtCoordinateSystem;
36 
46  {
47  public:
49 
50  // \brief default constructor
51  DtGotoLogic() = delete;
52 
54  DtGotoLogic(const DtGotoLogic& orig) = delete;
55 
57  DtGotoLogic& operator = (const DtGotoLogic& orig) = delete;
58 
60  virtual ~DtGotoLogic();
61 
63  virtual void initialize();
64 
65  protected:
66 
67  // Slot connected to the signal raised by the widget when the user has entered a location to jump to
68  virtual void slot_gotoLocation(double lat, double lon);
69 
70  // Slot connected to the signal raised by the widget when the user has entered an address to jump to
71  virtual void slot_requestJumpToAddress(const DtUnicode& address);
72 
73  // Slot connected to the signal raised by the widget when the user changes to Goto Type they want to use
74  virtual void slot_gotoTypeChanged(GotoType addressOrLocation);
75 
76  // Slot connected to the signal raised by the widget when the user changes location coordinate system type they want to use
77  virtual void slot_locationEntryTypeChanged(makArchives::DtDisplayUnitsSettingsRecord::CoordSys newSys);
78 
82  virtual void slot_activate(DtDe* de) override;
83 
86  virtual void slot_deactivate(DtDe* de) override;
87 
90  bool processPolygon(int type, OGRGeometryH geometry, DtExtent& extent);
91 
93  virtual void slot_coordinateSystemChanged();
94 
95  protected:
103 
105 
108  DtCoordinateSystem* myDatabaseCoordinateSystem = nullptr;
109 
110  };
111 }
OGRGeocodingSessionH mySession
Definition: DtGotoLogic.h:99
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
DtDe & myDe
Definition: DtGotoLogic.h:96
Contains makVrv::DtSubjectObserver class.
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myLocationInputCoordSys
Definition: DtGotoLogic.h:104
void * OGRGeometryH
Definition: DtGotoLogic.h:28
DtGotoLogic declaration. The DtGotoWidget and DtGotoLogic work together to provide a user interface f...
Definition: DtGotoLogic.h:45
double myHorizontalOffset
Definition: DtGotoLogic.h:101
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
The DtExtent represents an axis-aligned 3d bounding box.
Definition: extent.h:43
Contains DLL export macros.
CoordSys
Enumeration of the different coordinate system types.
Definition: DtDisplayUnitsSettingsRecord.h:30
DtGotoWidgetInterface * myInterface
Definition: DtGotoLogic.h:97
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
struct _OGRGeocodingSessionHS * OGRGeocodingSessionH
Definition: DtGotoLogic.h:27
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Base class to provide boost signal/slot management.
GotoType
Enumeration for the way the location to go to is currently being input.
Definition: DtGotoWidgetInterface.h:24
double myHeightOffset
Definition: DtGotoLogic.h:100
GotoType myCurrentGotoType
Definition: DtGotoLogic.h:102
Abstract interface for DtGotoWidget. This defines the interface that will be used by the DtGotoLogic ...
Definition: DtGotoWidgetInterface.h:36
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
Contains the DtDisplayUnitsSettingsRecord class declaration.
DtSignalConnectionManager mySignalConnectionManager
Definition: DtGotoLogic.h:98

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)