This plugin provides a time panel which may display: More...
#include <WorldStats.hh>
Public Slots | |
void | ProcessMsg () |
Callback in main thread when diagnostics come in. More... | |
Signals | |
void | IterationsChanged () |
Notify that message type has changed. More... | |
void | RealTimeChanged () |
Notify that message type has changed. More... | |
void | RealTimeFactorChanged () |
Notify that message type has changed. More... | |
void | SimTimeChanged () |
Notify that message type has changed. More... | |
Public Member Functions | |
WorldStats () | |
Constructor. More... | |
virtual | ~WorldStats () |
Destructor. More... | |
Q_INVOKABLE QString | Iterations () const |
Get the message type as a string, for example. More... | |
void | LoadConfig (const tinyxml2::XMLElement *_pluginElem) |
Q_INVOKABLE QString | RealTime () const |
Get the message type as a string, for example. More... | |
Q_INVOKABLE QString | RealTimeFactor () const |
Get the message type as a string, for example. More... | |
Q_INVOKABLE void | SetIterations (const QString &_iterations) |
Set the message type from a string, for example. More... | |
Q_INVOKABLE void | SetRealTime (const QString &_realTime) |
Set the message type from a string, for example. More... | |
Q_INVOKABLE void | SetRealTimeFactor (const QString &_realTimeFactor) |
Set the message type from a string, for example. More... | |
Q_INVOKABLE void | SetSimTime (const QString &_simTime) |
Set the message type from a string, for example. More... | |
Q_INVOKABLE QString | SimTime () const |
Get the message type as a string, for example. More... | |
Properties | |
QString | iterations |
Iterations. More... | |
QString | realTime |
Real time. More... | |
QString | realTimeFactor |
Real time factor. More... | |
QString | simTime |
Sim time. More... | |
Detailed Description
This plugin provides a time panel which may display:
- Simulation time
- Real time
- Real time factor
- Iterations
Configuration
- <sim_time> : Set to true to display a sim time widget, false by default.
- <real_time> : True to display a real time widget, false by default.
- <real_time_factor> : True to display a real time factor widget, false by default.
- <iterations> : True to display an iterations widget, false by default.
- <topic> : Topic to receive world statistics, optional. If not present, the plugin will attempt to create a topic with the main window's
worldName
property.
If no elements are filled for the plugin, all properties will be displayed.
Constructor & Destructor Documentation
◆ WorldStats()
WorldStats | ( | ) |
Constructor.
◆ ~WorldStats()
|
virtual |
Destructor.
Member Function Documentation
◆ Iterations()
Q_INVOKABLE QString Iterations | ( | ) | const |
Get the message type as a string, for example.
- Returns
- Message type
◆ IterationsChanged
|
signal |
Notify that message type has changed.
◆ LoadConfig()
void LoadConfig | ( | const tinyxml2::XMLElement * | _pluginElem | ) |
◆ ProcessMsg
|
slot |
Callback in main thread when diagnostics come in.
◆ RealTime()
Q_INVOKABLE QString RealTime | ( | ) | const |
Get the message type as a string, for example.
- Returns
- Message type
◆ RealTimeChanged
|
signal |
Notify that message type has changed.
◆ RealTimeFactor()
Q_INVOKABLE QString RealTimeFactor | ( | ) | const |
Get the message type as a string, for example.
- Returns
- Message type
◆ RealTimeFactorChanged
|
signal |
Notify that message type has changed.
◆ SetIterations()
Q_INVOKABLE void SetIterations | ( | const QString & | _iterations | ) |
Set the message type from a string, for example.
- Parameters
-
[in] _iterations Message type
◆ SetRealTime()
Q_INVOKABLE void SetRealTime | ( | const QString & | _realTime | ) |
Set the message type from a string, for example.
- Parameters
-
[in] _realTime Message type
◆ SetRealTimeFactor()
Q_INVOKABLE void SetRealTimeFactor | ( | const QString & | _realTimeFactor | ) |
Set the message type from a string, for example.
- Parameters
-
[in] _realTimeFactor Message type
◆ SetSimTime()
Q_INVOKABLE void SetSimTime | ( | const QString & | _simTime | ) |
Set the message type from a string, for example.
- Parameters
-
[in] _simTime Message type
◆ SimTime()
Q_INVOKABLE QString SimTime | ( | ) | const |
Get the message type as a string, for example.
- Returns
- Message type
◆ SimTimeChanged
|
signal |
Notify that message type has changed.
Property Documentation
◆ iterations
|
readwrite |
Iterations.
◆ realTime
|
readwrite |
Real time.
◆ realTimeFactor
|
readwrite |
Real time factor.
◆ simTime
|
readwrite |
Sim time.
The documentation for this class was generated from the following file: