VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtHla1516ConnectionWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
16 #include "DtHlaConnectionConfigurationLayout.hpp"
17 
18 #include <QtWidgets/QWidget>
19 
20 class QPushButton;
21 class QGridLayout;
22 class QCheckBox;
23 class QComboBox;
24 class QGroupBox;
25 class QLineEdit;
26 class QLabel;
27 
28 namespace makVrv
29 {
30 
31  class DtHla1516ConnectionLogic;
32 
37  { Q_OBJECT;
38  public:
39 
41  DtHla1516ConnectionWidget( DtDe& de, QWidget* parent );
42 
44  virtual ~DtHla1516ConnectionWidget();
45 
47  virtual void setExerciseName( const std::string& exerciseName );
48 
50  virtual void setFederateType( const std::string& federateType );
51 
53  virtual void setFedFileName( const std::string& fedFileName );
54 
56  virtual void setRPRFomVersion( double rprFomVersion, int rprFomRevision = 1 );
57 
59  virtual void setFomMapperFileName( const std::string& fomMapperFileName );
60 
62  virtual void setFomMapperInitString( const std::string& fomMapperInitString );
63 
65  virtual void setDdmEnabled( bool enabled );
66 
68  virtual void setUseAdvisories( bool enabled );
69 
71  virtual void setUseAbsoluteTimeStamps( bool enabled );
72 
74  virtual void setPublishObserver( bool isPublished );
75 
77  virtual void setOverrideGlobalViewControl( bool trueFalse );
78 
80  virtual void setViewControl( bool isEnabled );
81 
84  virtual void setUseTopoForFlatEarthVectorConversion( bool isEnabled );
85 
87  virtual void setConnectionStatus( DtHla1516ConnectionInterface::ConnectionStatus status );
88 
90  virtual void setAutoConnectEnabled( bool enabled);
91 
93  virtual void setAppNumber(int appNumber);
94 
96  virtual void setSiteId(int siteId);
97 
98  protected:
99 
102  void setupGui();
103 
106  QVBoxLayout* createButtonLayout();
107 
110  void connectToWidgetSignals();
111 
122  virtual bool parseFomVerRev( const QString& verRevStr,
123  double& version, int& revision );
124 
125  protected slots:
126 
127  void onFederationNameString_textChanged( QString );
128  void onFedFileNameString_textChanged( QString );
129  void onFedFileBrowseButton_released();
130  void onFederateTypeString_textChanged( QString );
131  void onIgnoreAdvisoriesCheckBox_stateChanged( int );
132  void onAbsoluteTimeStampsCheckBox_stateChanged( int );
133  void onImplicitGeographicDdmCheckBox_stateChanged( int );
134  void onRprFomRadioButton_toggled( bool );
135  void onRprFomVersionComboBox_activated( QString );
136  void onCustomFomRadioButton_toggled( bool );
137  void onFomMapperLibraryName_textChanged( QString );
138  void onFomMapperInitString_textChanged( QString );
139  void onPublishObserversCheckBox_stateChanged( int );
140  void onGlobalViewControlOverrideCheckBox_stateChanged( int );
141  void onListenForViewControlsCheckBox_stateChanged( int );
142  void onUseTopoForFlatEarthVectorConversionCheckBox_stateChanged( int );
143  void onAdvancedButton_checkChanged(bool checked);
144  void onSiteId_changed(int val);
145  void onAppNumber_changed(int val);
146 
147  void onConnectButton_clicked();
148  void onMakeAutoButton_clicked();
149 
150  protected:
151 
152  Ui::HlaConnectionConfigurationLayout myHlaConfigurationLayout;
153 
155 
157 
159 
160  QVBoxLayout* myDataLayout;
163 
164  };
165 
166 }
DtHla1516ConnectionLogic * myLogic
Definition: DtHla1516ConnectionWidget.h:156
QVBoxLayout * myDataLayout
Definition: DtHla1516ConnectionWidget.h:160
#define DT_DLL_VRVHLA1516QT
Definition: vrvHla1516Qt.h:19
ConnectionStatus
Definition: DtHla1516ConnectionInterface.h:23
QPushButton * myMakeAutoButton
Definition: DtHla1516ConnectionWidget.h:162
Contains makVrv::DtHla1516ConnectionInterface class.
Logic for configuring the Hla1516 Connection.
Definition: DtHla1516ConnectionLogic.h:27
DtDe & myDe
Definition: DtHla1516ConnectionWidget.h:158
Widget for HLA 1516 connection.
Definition: DtHla1516ConnectionWidget.h:35
Contains DLL export macros.
QPushButton * myConnectButton
Definition: DtHla1516ConnectionWidget.h:161
Ui::HlaConnectionConfigurationLayout myHlaConfigurationLayout
Definition: DtHla1516ConnectionWidget.h:152
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
DtHla1516ConnectionInterface::ConnectionStatus myStatus
Definition: DtHla1516ConnectionWidget.h:154
Abstract interface used to a user interface.
Definition: DtHla1516ConnectionInterface.h:18

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)