gz/gui/PlottingInterface.hh
STL class.
void UnsubscribeOutdatedTopics()
Unsubscribe from non-exist topics in the transport.
void subscribe(int _chart, QString _fieldPath, QString _topic)
subscribe to a field to plotted on a chart
std::string ComponentName(uint64_t _typeId)
Get Component Name based on its type Id.
void plot(int _chart, QString _fieldID, double _x, double _y)
notify the Plotting Interface to plot
void onComponentSubscribe(QString _entity, QString _typeId, QString _type, QString _attribute, int _chart)
called by Qml to register a chart to a component attribute
void plot(int _chart, QString _fieldID, double _x, double _y)
plot a point to a chart
void Unsubscribe(const std::string &_topic, const std::string &_fieldPath, int _chart)
Unsubscribe/deattatch a field from a certain chart.
void SetPlottingTimeRef(const std::shared_ptr< double > &_time)
update the current time with the default time of the plotting timer
void Register(const std::string &_fieldPath, int _chart)
Register a chart to a field.
void RemoveChart(int _chart)
UnRegister a chart from plotting that field.
std::string FilePath(QString _path, std::string _name, std::string _extention)
Create suitable file path with unique name and extention.
void ComponentSubscribe(uint64_t _entity, uint64_t _typeId, const std::string &_type, const std::string &_attribute, int _chart)
Notify the gazebo plugin to subscribe to a component data.
void unsubscribe(int _chart, QString _fieldPath, QString _topic)
unsubscribe from a field and deattach it from a chart
STL class.
const std::map< std::string, Topic * > & Topics()
Get the registered topics.
void Callback(const google::protobuf::Message &_msg)
Callback to receive messages.
void onComponentUnSubscribe(QString _entity, QString _typeId, QString _attribute, int _chart)
called by Qml to remove a chart from a component attribute
void ComponentUnSubscribe(uint64_t _entity, uint64_t _typeId, const std::string &_attribute, int _chart)
Notify the gazebo plugin to unsubscribe a component data.
Plotting Topic to handle published topics & their registered fields.
Definition: gz/gui/PlottingInterface.hh:95
bool exportCSV(QString _path, int _chart, QMap< QString, QVariant > _serieses)
export plot graphs to csv files
void UnRegister(const std::string &_fieldPath, int _chart)
Remove field from the plot.
Plot Data containter to hold value and registered charts Can be a Field or a PlotComponent Used by Pl...
Definition: gz/gui/PlottingInterface.hh:49
STL class.
bool HasHeader(const google::protobuf::Message &_msg, double &_headerTime)
Check if msg has header field and get its time.
std::map< std::string, PlotData * > & Fields()
Get the registered fields.
Handle transport topics subscribing for one object (Chart)
Definition: gz/gui/PlottingInterface.hh:159
void onPlot(int _chart, QString _fieldID, double _x, double _y)
slot to get triggered to plot a point and send its data to the UI
void Subscribe(const std::string &_topic, const std::string &_fieldPath, int _chart, const std::shared_ptr< double > &_time)
Subscribe/attatch a field from a certain chart.
void plot(int _chart, QString _fieldID, double _x, double _y)
update the GUI and plot the topic's fields values
Plotting Interface Responsible for plotting transport msgs-fields Used by TransportPlotting Plugin & ...
Definition: gz/gui/PlottingInterface.hh:217
void onPlot(int _chart, QString _fieldID, double _x, double _y)
Slot for receiving topics signal at each topic callback to plot.