17 #ifndef GZ_GUI_PLOTTINGINTERFACE_HH_
18 #define GZ_GUI_PLOTTINGINTERFACE_HH_
26 #pragma warning(disable: 4251)
28 #include <google/protobuf/message.h>
29 #include <google/protobuf/descriptor.h>
39 #include "gz/gui/Export.hh"
43 class PlotDataPrivate;
58 public:
void SetValue(
const double _value);
62 public:
double Value()
const;
66 public:
void SetTime(
const double _time);
70 public:
double Time()
const;
74 public:
void AddChart(
int _chart);
77 public:
void RemoveChart(
int _chart);
81 public:
int ChartCount()
const;
111 public:
void Register(
const std::string &_fieldPath,
int _chart);
116 public:
void UnRegister(
const std::string &_fieldPath,
int _chart);
120 public:
int FieldCount()
const;
128 public:
void Callback(
const google::protobuf::Message &_msg);
133 public:
bool HasHeader(
const google::protobuf::Message &_msg,
134 double &_headerTime);
145 signals:
void plot(
int _chart,
QString _fieldID,
double _x,
double _y);
155 class TransportPrivate;
172 public:
void Unsubscribe(
const std::string &_topic,
186 public slots:
void UnsubscribeOutdatedTopics();
197 public slots:
void onPlot(
int _chart,
QString _fieldID,
double _x,
double _y);
204 signals:
void plot(
int _chart,
QString _fieldID,
double _x,
double _y);
210 class PlottingIfacePrivate;
230 public slots:
void subscribe(
int _chart,
238 public slots:
void unsubscribe(
int _chart,
244 public:
float Timeout()
const;
251 public slots:
void onPlot(
int _chart,
QString _fieldID,
double _x,
double _y);
258 signals:
void plot(
int _chart,
QString _fieldID,
double _x,
double _y);
266 public slots:
void onComponentSubscribe(
QString _entity,
277 public slots:
void onComponentUnSubscribe(
QString _entity,
288 signals:
void ComponentSubscribe(uint64_t _entity,
299 signals:
void ComponentUnSubscribe(uint64_t _entity,
316 public slots:
bool exportCSV(
QString _path,
int _chart,
322 signals:
std::string ComponentName(uint64_t _typeId);
325 public:
void InitTimer();
328 public slots:
void UpdateTime();
334 #endif // GZ_GUI_PLOTTINGINTERFACE_HH_