VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDisConnectionLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvDisQt/vrvDisQt.h>
14 #include <vl/exerciseConnInitializer.h>
15 #include <string>
16 #include <memory>
17 #include <functional>
18 
19 namespace makVrv
20 {
21  class DtDisConnectionInterface;
22  class DtDisDriver;
23  class DtDriver;
24 
28  {
29  public:
30 
33 
35  virtual ~DtDisConnectionLogic();
36 
38  virtual void updateCurrentDriver();
39 
40  protected:
41  virtual const std::string& className() const;
42 
43  protected:
44 
45  virtual void populateDeviceAddresses();
46 
47  DtDisDriver* findCurrentDriver(const std::string& name);
48 
49  void on_currentConnectionChanged(const std::string& connectionName);
50 
51  void on_portChanged(int value);
52  void on_exerciseIdChanged(int value);
53  void on_appNumberChanged(int value);
54  void on_selfReflectChanged(bool val);
55  void on_siteIdChanged(int value);
56  void on_asynchIOChanged(bool value);
57  void on_absoluteTimeStampsChanged(bool value);
58  void on_destinationAddressChanged(const std::string& str);
59  void on_deviceAddressChanged(const std::string& str);
60  void on_subnetMaskChanged(const std::string& str);
61  void on_sendBufferSizeChanged(int value);
62  void on_receiveBufferSizeChanged(int value);
63  void on_multicastTTLChanged(int value);
64  void on_timeoutProcessingChanged(bool onOff);
65  void on_timeoutIntervalChanged(double value);
66  void on_multiCastAddressesChanged(const std::string& str);
67  void on_disVersionChanged(int value);
68  void on_publishObserversChanged(bool value);
69  void on_viewControlChanged(bool onOff);
70  void on_overrideGlobalViewControlChanged(bool trueFalse);
71  void on_useTopoForFlatEarthVectorConversionChanged(bool onOff);
72 
73  void on_connect();
74  void on_disconnect();
75  void on_makeAutoConnect();
76 
77  void on_driverStarted(DtDriver& simCon);
78  void on_driverStopped(DtDriver& simCon);
79  void on_autoDriverChanged(const std::string& con);
80 
81  protected:
84 
85  using MyDisDriverDeleter = std::function<void(DtDisDriver*)>;
86  using MyDisDriverPtrType = std::unique_ptr<DtDisDriver, MyDisDriverDeleter>;
88  };
89 }
The DtDriver for DIS.
Definition: DtDisDriver.h:23
std::unique_ptr< DtDisDriver, MyDisDriverDeleter > MyDisDriverPtrType
Definition: DtDisConnectionLogic.h:86
DtDisConnectionInterface & myDisInterface
Definition: DtDisConnectionLogic.h:83
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:30
std::function< void(DtDisDriver *)> MyDisDriverDeleter
Definition: DtDisConnectionLogic.h:85
MyDisDriverPtrType myCurrentDriver
Definition: DtDisConnectionLogic.h:87
Logic for configuring the Dis Connection.
Definition: DtDisConnectionLogic.h:27
Contains DLL export macros.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Base class to provide boost signal/slot management.
DtDe & myDe
Definition: DtDisConnectionLogic.h:82
Abstract interface used to a user interface.
Definition: DtDisConnectionInterface.h:20
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
#define DT_DLL_VRVDISQT
Definition: vrvDisQt.h:21

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)