![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Inheritance diagram for DtNetworkMapWidget:
Collaboration diagram for DtNetworkMapWidget:Public Slots | |
| void | selectAndHoverText () |
| SLOT: called when we need to select the hovered object. | |
| void | showContextMenu (const QPoint &pos) |
| Called when the user requests a context menu in the network map. | |
Signals | |
| void | federateSelected (const MAKRti::DtString &federationName, int federateHandle) |
| Emitted when a federate node is selected. | |
| void | rtiexecSelected () |
| Emitted when the rtiexec node is selected. | |
| void | forwarderSelected (const MAKRti::DtString &forwarderName, int port) |
| Emitted when the central forwarder node is selected. | |
| void | peerForwarderSelected (const MAKRti::DtString &forwarderName, int port) |
| Emitted when a peer forwarder node is selected. | |
| void | switchToPeerForwarder (const MAKRti::DtString &forwarderName, int port) |
| Emitted when a connection should be switched to peer forwarder node. | |
| void | lightweightSelected () |
| Emitted when the lightweight center node is selected. | |
| void | nothingSelected () |
| Emitted when selection is cleared. | |
Public Member Functions | |
| DtNetworkMapWidget (QWidget *parent) | |
| Constructor. | |
| virtual | ~DtNetworkMapWidget () |
| Destructor. | |
| virtual QSize | sizeHint () const |
| Returns the recommended size for the widget. | |
| void | addPeerForwarderNode (const MAKRti::DtString &forwarderHostName, int port) |
| Adds a particular node. | |
| void | removeForwarderNode (const MAKRti::DtString &forwarderHostName, int port) |
| void | addExecNode () |
| void | removeExecNode () |
| void | addFederateNode (int fedHandle, const MAKRti::DtString &federationName, const MAKRti::DtString &processName, const MAKRti::DtString &fedType, const MAKRti::DtString &fedName, bool notJoined=false, bool isDropped=false) |
| void | removeFederateNode (int fedHandle, const MAKRti::DtString &federationName) |
| void | checkAndAddMainForwarder (const MAKRti::DtString &forwarderHostName, int port) |
| void | checkAndAddLightweight (const MAKRti::DtString &connName) |
| void | updateFederateInfo (int fedHandle, const MAKRti::DtString &federationName, int queueStatus, bool disconnected, bool reconnecting, bool inErrorState=false) |
| bool | isPeerForwarder (const MAKRti::DtString &forwarderHostName, int port) |
| void | refreshPositions () |
| bool | doesFederateExist (int fedHandle, const MAKRti::DtString &federationName) |
| Does this federate exist? | |
| void | clearFederateFlags (int fedHandle, const MAKRti::DtString &federationName) |
| clear this federates flags | |
| void | forceFederateSelection (int fedHandle, const MAKRti::DtString &federationName) |
| For the widget to select the specified federate. | |
| void | forceRtiexecSelection () |
| For the widget to select the rtiexec. | |
| void | forceForwarderSelection (const MAKRti::DtString &forwarderName, int port) |
| For the widget to select the central forwarder. | |
| void | forceClearSelection () |
| For the widget to clear the current selection. | |
| virtual void | tick (float delta) |
| Update. | |
| virtual void | selection (int x, int y, bool onHover=false) |
| checks for selection | |
| virtual void | clearList () |
| Clears the nodes. | |
| virtual bool | hasSelection () |
| Checks for a selected node. | |
| virtual int | getSelectedHandle () |
| Returns the selected index. | |
| virtual void | getSelectedNodeInfo (MAKRti::DtString &federationName, int &federateHandle, bool &isForwarder, bool &isExec, bool &isLightweightCenter) |
| Gets the selected node information. | |
| virtual QColor | getFederationColor (const MAKRti::DtString &federationName) |
| Gets the federation color. | |
| virtual void | changeFederationColor (const MAKRti::DtString &federationName, const QColor &newColor) |
| Changes the federation names color mapping. | |
| virtual void | enableFederationColors (bool enable) |
| Enable or disable display of federation colors. | |
| virtual void | setFederateIdentifierType (DtFederateIdentifierType fedIdType) |
| Choose type of text to be used to identify federates. | |
| virtual void | setContextMenu (QMenu *contextMenu) |
| Set the context menu to use when activated. | |
| virtual bool | hasForwarder () const |
| Return true if there is a forwarder node. | |
| virtual bool | hasExec () const |
| Return true if there is an rtiexec node. | |
| virtual bool | isLightweight () const |
| Return true if there is a lightweight node. | |
Protected Member Functions | |
| virtual void | resizeEvent (QResizeEvent *evt) |
| Resize event. | |
| virtual void | closeEvent (QCloseEvent *evt) |
| close event | |
| virtual void | wheelEvent (QWheelEvent *evt) |
| Wheel Event for zooming. | |
| virtual void | mouseMoveEvent (QMouseEvent *evt) |
| Mouse Movement for Panning. | |
| virtual void | keyPressEvent (QKeyEvent *evt) |
| Key Press for resetting Pan. | |
| virtual void | mousePressEvent (QMouseEvent *evt) |
| Mouse press event. | |
| virtual void | mouseDoubleClickEvent (QMouseEvent *evt) |
| Mouse double click. | |
| virtual void | initializeGL () |
| Initializes the OpenGL data. | |
| virtual void | paintGL () |
| Paint's the OpenGL Scene. | |
| virtual void | drawLines () |
| Draws the lines. | |
| virtual void | drawNodes () |
| Draws the nodes. | |
| virtual void | drawForwarderNodes () |
| Draws the forwarder nodes. | |
| virtual void | drawForwarderNode (DtNetworkMapNode *node, unsigned int index) |
| Draws the forwarder nodes. | |
| virtual void | drawForwarderNodeLines () |
| Draws the forwarder node lines. | |
| virtual void | drawText () |
| Draws node text. | |
| virtual QColor | addFederationColor (const MAKRti::DtString &federationName) |
| Adds a federation name -> color mapping. | |
| virtual void | drawWarning (int textIndex) |
| Draws the warning/error/disconnect texture. | |
Protected Attributes | |
| int | myWidth |
| int | myHeight |
| unsigned | mySelectedId |
| unsigned | myHoverId |
| float | myCameraDelta |
| QPoint | myOldMouse |
| QPoint | myNewMouse |
| QPoint | myDeltaMouse |
| DtNetworkMapCentralNode * | myCentralNode |
| DtNetworkMapCamera * | myCamera |
| DtFederateIdentifierType | myFedIdType |
| The identifying text to be used to identify federates. | |
| std::vector< QColor > | myDefaultColors |
| Available default colors. | |
| bool | myDisplayFederationColors |
| Whether the federation colors are displayed. | |
| bool | myNodesAreMoving |
| Whether nodes are currently moving. | |
| unsigned | myNextDefaultColor |
| Index of next color to use. | |
| std::set< QRgb > | myInUseColors |
| Colors currently in use. | |
| QTimer * | myHoverTimer |
| std::map< MAKRti::DtString, QColor > | myFederationColors |
| map that holds federation names to colors | |
| QMenu * | myCurrentContextMenu |
| The context menu to display for the current selected node, if requested. | |
Static Protected Attributes | |
| static const int | theStandardNodeRadius |
| The standard radius for all nodes. | |
| static const unsigned | theInvalidMapNodeId |
| Represents an invalid map node ID. | |
| static const unsigned | theInitialFwId |
| The first forwarder node ID. | |
| static const int | theRtiexecId |
| Standard IDs to use for non-federate nodes. | |
| static const int | theForwarderId |
| Standard IDs to use for non-federate nodes. | |
| static const int | theLigthweightCenterId |
| Standard IDs to use for non-federate nodes. | |
| static const int | theEmptyNodeId |
| Standard IDs to use for non-federate nodes. | |
| static const MAKRti::DtString | theRtiexecName |
| Standard names to use for non-federate nodes. | |
| static const MAKRti::DtString | theForwarderName |
| Standard names to use for non-federate nodes. | |
| static const MAKRti::DtString | theLigthweightCenterName |
| Standard names to use for non-federate nodes. | |
| static const MAKRti::DtString | theEmptyNodeName |
| Standard names to use for non-federate nodes. | |
| DtNetworkMapWidget::DtNetworkMapWidget | ( | QWidget * | parent | ) |
Constructor.
|
virtual |
Destructor.
| void DtNetworkMapWidget::addExecNode | ( | ) |
| void DtNetworkMapWidget::addFederateNode | ( | int | fedHandle, |
| const MAKRti::DtString & | federationName, | ||
| const MAKRti::DtString & | processName, | ||
| const MAKRti::DtString & | fedType, | ||
| const MAKRti::DtString & | fedName, | ||
| bool | notJoined = false, |
||
| bool | isDropped = false |
||
| ) |
|
protectedvirtual |
Adds a federation name -> color mapping.
| void DtNetworkMapWidget::addPeerForwarderNode | ( | const MAKRti::DtString & | forwarderHostName, |
| int | port | ||
| ) |
Adds a particular node.
|
virtual |
Changes the federation names color mapping.
| void DtNetworkMapWidget::checkAndAddLightweight | ( | const MAKRti::DtString & | connName | ) |
| void DtNetworkMapWidget::checkAndAddMainForwarder | ( | const MAKRti::DtString & | forwarderHostName, |
| int | port | ||
| ) |
| void DtNetworkMapWidget::clearFederateFlags | ( | int | fedHandle, |
| const MAKRti::DtString & | federationName | ||
| ) |
clear this federates flags
|
virtual |
Clears the nodes.
|
protectedvirtual |
close event
| bool DtNetworkMapWidget::doesFederateExist | ( | int | fedHandle, |
| const MAKRti::DtString & | federationName | ||
| ) |
Does this federate exist?
|
protectedvirtual |
Draws the forwarder nodes.
|
protectedvirtual |
Draws the forwarder node lines.
|
protectedvirtual |
Draws the forwarder nodes.
|
protectedvirtual |
Draws the lines.
|
protectedvirtual |
Draws the nodes.
|
protectedvirtual |
Draws node text.
|
protectedvirtual |
Draws the warning/error/disconnect texture.
|
virtual |
Enable or disable display of federation colors.
|
signal |
Emitted when a federate node is selected.
| void DtNetworkMapWidget::forceClearSelection | ( | ) |
For the widget to clear the current selection.
| void DtNetworkMapWidget::forceFederateSelection | ( | int | fedHandle, |
| const MAKRti::DtString & | federationName | ||
| ) |
For the widget to select the specified federate.
| void DtNetworkMapWidget::forceForwarderSelection | ( | const MAKRti::DtString & | forwarderName, |
| int | port | ||
| ) |
For the widget to select the central forwarder.
| void DtNetworkMapWidget::forceRtiexecSelection | ( | ) |
For the widget to select the rtiexec.
|
signal |
Emitted when the central forwarder node is selected.
|
virtual |
Gets the federation color.
|
inlinevirtual |
Returns the selected index.
|
virtual |
Gets the selected node information.
|
virtual |
Return true if there is an rtiexec node.
|
virtual |
Return true if there is a forwarder node.
|
virtual |
Checks for a selected node.
|
protectedvirtual |
Initializes the OpenGL data.
|
virtual |
Return true if there is a lightweight node.
| bool DtNetworkMapWidget::isPeerForwarder | ( | const MAKRti::DtString & | forwarderHostName, |
| int | port | ||
| ) |
|
protectedvirtual |
Key Press for resetting Pan.
|
signal |
Emitted when the lightweight center node is selected.
|
protectedvirtual |
Mouse double click.
|
protectedvirtual |
Mouse Movement for Panning.
|
protectedvirtual |
Mouse press event.
|
signal |
Emitted when selection is cleared.
|
protectedvirtual |
Paint's the OpenGL Scene.
|
signal |
Emitted when a peer forwarder node is selected.
| void DtNetworkMapWidget::refreshPositions | ( | ) |
| void DtNetworkMapWidget::removeExecNode | ( | ) |
| void DtNetworkMapWidget::removeFederateNode | ( | int | fedHandle, |
| const MAKRti::DtString & | federationName | ||
| ) |
| void DtNetworkMapWidget::removeForwarderNode | ( | const MAKRti::DtString & | forwarderHostName, |
| int | port | ||
| ) |
|
protectedvirtual |
Resize event.
|
signal |
Emitted when the rtiexec node is selected.
|
slot |
SLOT: called when we need to select the hovered object.
|
virtual |
checks for selection
|
virtual |
Set the context menu to use when activated.
|
virtual |
Choose type of text to be used to identify federates.
|
slot |
Called when the user requests a context menu in the network map.
|
virtual |
Returns the recommended size for the widget.
|
signal |
Emitted when a connection should be switched to peer forwarder node.
|
virtual |
Update.
| void DtNetworkMapWidget::updateFederateInfo | ( | int | fedHandle, |
| const MAKRti::DtString & | federationName, | ||
| int | queueStatus, | ||
| bool | disconnected, | ||
| bool | reconnecting, | ||
| bool | inErrorState = false |
||
| ) |
|
protectedvirtual |
Wheel Event for zooming.
|
protected |
|
protected |
|
protected |
|
protected |
The context menu to display for the current selected node, if requested.
|
protected |
Available default colors.
|
protected |
|
protected |
Whether the federation colors are displayed.
|
protected |
map that holds federation names to colors
|
protected |
The identifying text to be used to identify federates.
|
protected |
|
protected |
|
protected |
|
protected |
Colors currently in use.
|
protected |
|
protected |
Index of next color to use.
|
protected |
Whether nodes are currently moving.
|
protected |
|
protected |
|
protected |
|
staticprotected |
Standard IDs to use for non-federate nodes.
|
staticprotected |
Standard names to use for non-federate nodes.
|
staticprotected |
Standard IDs to use for non-federate nodes.
|
staticprotected |
Standard names to use for non-federate nodes.
|
staticprotected |
The first forwarder node ID.
|
staticprotected |
Represents an invalid map node ID.
|
staticprotected |
Standard IDs to use for non-federate nodes.
|
staticprotected |
Standard names to use for non-federate nodes.
|
staticprotected |
Standard IDs to use for non-federate nodes.
|
staticprotected |
Standard names to use for non-federate nodes.
|
staticprotected |
The standard radius for all nodes.