VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtHla1516ConnectionWidget Class Reference

Widget for HLA 1516 connection. More...

Inheritance diagram for makVrv::DtHla1516ConnectionWidget:
Inheritance graph
[legend]

Public Member Functions

 DtHla1516ConnectionWidget (DtDe &de, QWidget *parent)
 CTOR.
virtual ~DtHla1516ConnectionWidget ()
 Virtual DTOR.
virtual void setExerciseName (const std::string &exerciseName)
 Set the exercise name.
virtual void setFederateType (const std::string &federateType)
 Set the federate type.
virtual void setFedFileName (const std::string &fedFileName)
 Set the fed file name.
virtual void setRPRFomVersion (double rprFomVersion, int rprFomRevision=1)
 Set the RPR FOM version.
virtual void setFomMapperFileName (const std::string &fomMapperFileName)
 Set the fom mapper file name.
virtual void setFomMapperInitString (const std::string &fomMapperInitString)
 Set the fom mapper init string.
virtual void setDdmEnabled (bool enabled)
 Set the ddm enabled state.
virtual void setUseAdvisories (bool enabled)
 Set the use advisories state.
virtual void setUseAbsoluteTimeStamps (bool enabled)
 Set whether absoute time stamps should be used.
virtual void setPublishObserver (bool isPublished)
 Set the observer to be published.
virtual void setOverrideGlobalViewControl (bool trueFalse)
 Set the global view control override checkbox.
virtual void setViewControl (bool isEnabled)
 Set the view control state.
virtual void setUseTopoForFlatEarthVectorConversion (bool isEnabled)
 Set whether or not old style flat earth vector conversions are used by this connection.
virtual void setConnectionStatus (DtHla1516ConnectionInterface::ConnectionStatus status)
 Set the connection status.
virtual void setAutoConnectEnabled (bool enabled)
 Set whether the auto connect button can be enabled.
virtual void setAppNumber (int appNumber)
 Set the application number in the GUI.
virtual void setSiteId (int siteId)
 Set the site id in the GUI.
- Public Member Functions inherited from makVrv::DtHla1516ConnectionInterface
virtual ~DtHla1516ConnectionInterface ()

Protected Slots

void onFederationNameString_textChanged (QString)
void onFedFileNameString_textChanged (QString)
void onFedFileBrowseButton_released ()
void onFederateTypeString_textChanged (QString)
void onIgnoreAdvisoriesCheckBox_stateChanged (int)
void onAbsoluteTimeStampsCheckBox_stateChanged (int)
void onImplicitGeographicDdmCheckBox_stateChanged (int)
void onRprFomRadioButton_toggled (bool)
void onRprFomVersionComboBox_activated (QString)
void onCustomFomRadioButton_toggled (bool)
void onFomMapperLibraryName_textChanged (QString)
void onFomMapperInitString_textChanged (QString)
void onPublishObserversCheckBox_stateChanged (int)
void onGlobalViewControlOverrideCheckBox_stateChanged (int)
void onListenForViewControlsCheckBox_stateChanged (int)
void onUseTopoForFlatEarthVectorConversionCheckBox_stateChanged (int)
void onAdvancedButton_checkChanged (bool checked)
void onSiteId_changed (int val)
void onAppNumber_changed (int val)
void onConnectButton_clicked ()
void onMakeAutoButton_clicked ()

Protected Member Functions

void setupGui ()
 Initializes the widget's widgets and layout.
QVBoxLayout * createButtonLayout ()
 Creates the button layout for the right side of the widget.
void connectToWidgetSignals ()
 Connects slots to widgets' modification signals.
virtual bool parseFomVerRev (const QString &verRevStr, double &version, int &revision)
 Determines the version and revision given a combined string.

Protected Attributes

Ui::HlaConnectionConfigurationLayout myHlaConfigurationLayout
DtHla1516ConnectionInterface::ConnectionStatus myStatus
DtHla1516ConnectionLogicmyLogic
DtDemyDe
QVBoxLayout * myDataLayout
QPushButtonmyConnectButton
QPushButtonmyMakeAutoButton

Additional Inherited Members

- Public Types inherited from makVrv::DtHla1516ConnectionInterface
enum  ConnectionStatus {
  Disconnected, Connected, Connecting, Error,
  end_ConnectionStatus
}
- Public Attributes inherited from makVrv::DtHla1516ConnectionInterface
boost::signal< void(const
std::string &)> 
signal_currentConnectionChanged
boost::signal< void(const
std::string &)> 
signal_exerciseNameChanged
boost::signal< void(const
std::string &)> 
signal_federateTypeChanged
boost::signal< void(const
std::string &)> 
signal_fedFileNameChanged
boost::signal< void(double)> signal_rprFomVersionChanged
boost::signal< void(int)> signal_rprFomRevisionChanged
boost::signal< void(const
std::string &)> 
signal_fomMapperFileNameChanged
boost::signal< void(const
std::string &)> 
signal_fomMapperInitStringChanged
boost::signal< void(bool)> signal_ddmChanged
boost::signal< void(bool)> signal_useAdvisoriesChanged
boost::signal< void(bool)> signal_useAbsoluteTimeStampsChanged
boost::signal< void(bool)> signal_publishObserversChanged
boost::signal< void(bool)> signal_viewControlChanged
boost::signal< void(bool)> signal_overrideGlobalViewControlChanged
boost::signal< void(bool)> signal_useTopoForFlatEarthVectorConversionChanged
boost::signal< void(int)> signal_appNumberChanged
boost::signal< void(int)> signal_siteIdChanged
boost::signal< void()> signal_connect
boost::signal< void()> signal_disconnect
boost::signal< void()> signal_makeAutoConnect

Detailed Description

Widget for HLA 1516 connection.

Constructor & Destructor Documentation

makVrv::DtHla1516ConnectionWidget::DtHla1516ConnectionWidget ( DtDe de,
QWidget *  parent 
)

CTOR.

virtual makVrv::DtHla1516ConnectionWidget::~DtHla1516ConnectionWidget ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtHla1516ConnectionWidget::setExerciseName ( const std::string &  exerciseName)
virtual

Set the exercise name.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFederateType ( const std::string &  federateType)
virtual

Set the federate type.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFedFileName ( const std::string &  fedFileName)
virtual

Set the fed file name.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setRPRFomVersion ( double  rprFomVersion,
int  rprFomRevision = 1 
)
virtual

Set the RPR FOM version.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFomMapperFileName ( const std::string &  fomMapperFileName)
virtual

Set the fom mapper file name.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setFomMapperInitString ( const std::string &  fomMapperInitString)
virtual

Set the fom mapper init string.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setDdmEnabled ( bool  enabled)
virtual

Set the ddm enabled state.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setUseAdvisories ( bool  enabled)
virtual

Set the use advisories state.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setUseAbsoluteTimeStamps ( bool  enabled)
virtual

Set whether absoute time stamps should be used.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setPublishObserver ( bool  isPublished)
virtual

Set the observer to be published.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setOverrideGlobalViewControl ( bool  trueFalse)
virtual

Set the global view control override checkbox.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setViewControl ( bool  isEnabled)
virtual

Set the view control state.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setUseTopoForFlatEarthVectorConversion ( bool  isEnabled)
virtual

Set whether or not old style flat earth vector conversions are used by this connection.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setConnectionStatus ( DtHla1516ConnectionInterface::ConnectionStatus  status)
virtual

Set the connection status.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setAutoConnectEnabled ( bool  enabled)
virtual

Set whether the auto connect button can be enabled.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setAppNumber ( int  appNumber)
virtual

Set the application number in the GUI.

Implements makVrv::DtHla1516ConnectionInterface.

virtual void makVrv::DtHla1516ConnectionWidget::setSiteId ( int  siteId)
virtual

Set the site id in the GUI.

Implements makVrv::DtHla1516ConnectionInterface.

void makVrv::DtHla1516ConnectionWidget::setupGui ( )
protected

Initializes the widget's widgets and layout.

Non-virtual because this method is called from the constructor.

QVBoxLayout* makVrv::DtHla1516ConnectionWidget::createButtonLayout ( )
protected

Creates the button layout for the right side of the widget.

Non-virtual because this method is called from the constructor.

void makVrv::DtHla1516ConnectionWidget::connectToWidgetSignals ( )
protected

Connects slots to widgets' modification signals.

Non-virtual because this method is called from the constructor.

virtual bool makVrv::DtHla1516ConnectionWidget::parseFomVerRev ( const QString &  verRevStr,
double version,
int revision 
)
protectedvirtual

Determines the version and revision given a combined string.

Given a version-revision string ( eg. 2.0017-2 ), stores the version and revision in the argument references for use independently. If the version and/or revision could not be converted to a float / int, the return value is false, and no values are written to the storage reference parameters.

Parameters
verRevStrthe hyphenated version-revision string
versionreference to storage for the version part
revisionreference to storage for the revision part
Returns
true if the ver/rev were successfully converted to numeric values
void makVrv::DtHla1516ConnectionWidget::onFederationNameString_textChanged ( QString  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onFedFileNameString_textChanged ( QString  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onFedFileBrowseButton_released ( )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onFederateTypeString_textChanged ( QString  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onIgnoreAdvisoriesCheckBox_stateChanged ( int  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onAbsoluteTimeStampsCheckBox_stateChanged ( int  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onImplicitGeographicDdmCheckBox_stateChanged ( int  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onRprFomRadioButton_toggled ( bool  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onRprFomVersionComboBox_activated ( QString  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onCustomFomRadioButton_toggled ( bool  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onFomMapperLibraryName_textChanged ( QString  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onFomMapperInitString_textChanged ( QString  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onPublishObserversCheckBox_stateChanged ( int  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onGlobalViewControlOverrideCheckBox_stateChanged ( int  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onListenForViewControlsCheckBox_stateChanged ( int  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onUseTopoForFlatEarthVectorConversionCheckBox_stateChanged ( int  )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onAdvancedButton_checkChanged ( bool  checked)
protectedslot
void makVrv::DtHla1516ConnectionWidget::onSiteId_changed ( int  val)
protectedslot
void makVrv::DtHla1516ConnectionWidget::onAppNumber_changed ( int  val)
protectedslot
void makVrv::DtHla1516ConnectionWidget::onConnectButton_clicked ( )
protectedslot
void makVrv::DtHla1516ConnectionWidget::onMakeAutoButton_clicked ( )
protectedslot

Member Data Documentation

Ui::HlaConnectionConfigurationLayout makVrv::DtHla1516ConnectionWidget::myHlaConfigurationLayout
protected
DtHla1516ConnectionInterface::ConnectionStatus makVrv::DtHla1516ConnectionWidget::myStatus
protected
DtHla1516ConnectionLogic* makVrv::DtHla1516ConnectionWidget::myLogic
protected
DtDe& makVrv::DtHla1516ConnectionWidget::myDe
protected
QVBoxLayout* makVrv::DtHla1516ConnectionWidget::myDataLayout
protected
QPushButton* makVrv::DtHla1516ConnectionWidget::myConnectButton
protected
QPushButton* makVrv::DtHla1516ConnectionWidget::myMakeAutoButton
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)