18 #ifndef GZ_GUI_PLUGINS_WORLDSTATS_HH_
19 #define GZ_GUI_PLUGINS_WORLDSTATS_HH_
23 #include <gz/msgs/world_stats.pb.h>
25 #include "gz/gui/Export.hh"
29 # define WorldStats_EXPORTS_API
31 # if (defined(WorldStats_EXPORTS))
32 # define WorldStats_EXPORTS_API __declspec(dllexport)
34 # define WorldStats_EXPORTS_API __declspec(dllimport)
40 class WorldStatsPrivate;
70 WRITE SetRealTimeFactor
71 NOTIFY RealTimeFactorChanged
87 NOTIFY RealTimeChanged
95 NOTIFY IterationsChanged
105 public:
void LoadConfig(const
tinyxml2::XMLElement *_pluginElem);
108 public slots:
void ProcessMsg();
112 public: Q_INVOKABLE
QString RealTimeFactor() const;
116 public: Q_INVOKABLE
void SetRealTimeFactor(const
QString &_realTimeFactor);
119 signals:
void RealTimeFactorChanged();
127 public: Q_INVOKABLE
void SetSimTime(const
QString &_simTime);
130 signals:
void SimTimeChanged();
138 public: Q_INVOKABLE
void SetRealTime(const
QString &_realTime);
141 signals:
void RealTimeChanged();
145 public: Q_INVOKABLE
QString Iterations() const;
149 public: Q_INVOKABLE
void SetIterations(const
QString &_iterations);
152 signals:
void IterationsChanged();
155 private:
void OnWorldStatsMsg(const
gz::msgs::WorldStatistics &_msg);
158 private:
std::unique_ptr<WorldStatsPrivate> dataPtr;