Plotting Interface Responsible for plotting transport msgs-fields Used by TransportPlotting Plugin & GazeboPlotting Plugin Accepts dragged items from TopicViewer Plugin & ComponentInspector Plugin.  
 More...
#include <PlottingInterface.hh>
|  | 
| bool | exportCSV (QString _path, int _chart, QMap< QString, QVariant > _serieses) | 
|  | export plot graphs to csv files 
 | 
|  | 
| std::string | FilePath (QString _path, std::string _name, std::string _extension) | 
|  | Create suitable file path with unique name and extension. 
 | 
|  | 
| void | onComponentSubscribe (QString _entity, QString _typeId, QString _type, QString _attribute, int _chart) | 
|  | called by Qml to register a chart to a component attribute 
 | 
|  | 
| void | onComponentUnSubscribe (QString _entity, QString _typeId, QString _attribute, int _chart) | 
|  | called by Qml to remove a chart from a component attribute 
 | 
|  | 
| 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 (int _chart, QString _fieldPath, QString _topic) | 
|  | subscribe to a field to plotted on a chart 
 | 
|  | 
| void | unsubscribe (int _chart, QString _fieldPath, QString _topic) | 
|  | unsubscribe from a field and detach it from a chart 
 | 
|  | 
| void | UpdateTime () | 
|  | update the plotting tool time 
 | 
|  | 
|  | 
| std::string | ComponentName (uint64_t _typeId) | 
|  | Get Component Name based on its type Id. 
 | 
|  | 
| 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 | ComponentUnSubscribe (uint64_t _entity, uint64_t _typeId, const std::string &_attribute, int _chart) | 
|  | Notify the gazebo plugin to unsubscribe a component data. 
 | 
|  | 
| void | plot (int _chart, QString _fieldID, double _x, double _y) | 
|  | plot a point to a chart 
 | 
|  | 
|  | 
|  | PlottingInterface () | 
|  | Constructor. 
 | 
|  | 
|  | ~PlottingInterface () | 
|  | Destructor. 
 | 
|  | 
| void | InitTimer () | 
|  | configuration of the timer 
 | 
|  | 
| float | Timeout () const | 
|  | Get the timeout of updating the plot. 
 | 
|  | 
|  | QObject (QObject *parent) | 
|  | 
|  | QObject (QObject *parent, const char *name) | 
|  | 
| virtual | ~QObject () | 
|  | 
| bool | blockSignals (bool block) | 
|  | 
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const | 
|  | 
| const QObjectList & | children () const | 
|  | 
| const char * | className () const | 
|  | 
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const | 
|  | 
| void | deleteLater () | 
|  | 
| void | destroyed (QObject *obj) | 
|  | 
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) | 
|  | 
| bool | disconnect (const QObject *receiver, const char *method) | 
|  | 
| void | dumpObjectInfo () | 
|  | 
| void | dumpObjectTree () | 
|  | 
| QList< QByteArray > | dynamicPropertyNames () const | 
|  | 
| virtual bool | event (QEvent *e) | 
|  | 
| virtual bool | eventFilter (QObject *watched, QEvent *event) | 
|  | 
| T | findChild (const QString &name) const | 
|  | 
| QList< T > | findChildren (const QRegExp ®Exp) const | 
|  | 
| QList< T > | findChildren (const QString &name) const | 
|  | 
| bool | inherits (const char *className) const | 
|  | 
| void | insertChild (QObject *object) | 
|  | 
| void | installEventFilter (QObject *filterObj) | 
|  | 
| bool | isA (const char *className) const | 
|  | 
| bool | isWidgetType () const | 
|  | 
| void | killTimer (int id) | 
|  | 
| virtual const QMetaObject * | metaObject () const | 
|  | 
| void | moveToThread (QThread *targetThread) | 
|  | 
| const char * | name () const | 
|  | 
| const char * | name (const char *defaultName) const | 
|  | 
| QString | objectName () const | 
|  | 
| QObject * | parent () const | 
|  | 
| QVariant | property (const char *name) const | 
|  | 
| void | removeChild (QObject *object) | 
|  | 
| void | removeEventFilter (QObject *obj) | 
|  | 
| void | setName (const char *name) | 
|  | 
| void | setObjectName (const QString &name) | 
|  | 
| void | setParent (QObject *parent) | 
|  | 
| bool | setProperty (const char *name, const QVariant &value) | 
|  | 
| bool | signalsBlocked () const | 
|  | 
| int | startTimer (int interval) | 
|  | 
| QThread * | thread () const | 
|  | 
|  | 
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) | 
|  | 
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) | 
|  | 
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) | 
|  | 
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) | 
|  | 
| QString | tr (const char *sourceText, const char *disambiguation, int n) | 
|  | 
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) | 
|  | 
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) | 
|  | 
| virtual void | childEvent (QChildEvent *event) | 
|  | 
| virtual void | connectNotify (const char *signal) | 
|  | 
| virtual void | customEvent (QEvent *event) | 
|  | 
| virtual void | disconnectNotify (const char *signal) | 
|  | 
| int | receivers (const char *signal) const | 
|  | 
| QObject * | sender () const | 
|  | 
| int | senderSignalIndex () const | 
|  | 
| virtual void | timerEvent (QTimerEvent *event) | 
|  | 
| QByteArray | normalizeSignalSlot (const char *signalSlot) | 
|  | 
|  | objectName | 
|  | 
Plotting Interface Responsible for plotting transport msgs-fields Used by TransportPlotting Plugin & GazeboPlotting Plugin Accepts dragged items from TopicViewer Plugin & ComponentInspector Plugin. 
◆ PlottingInterface()
◆ ~PlottingInterface()
◆ ComponentName
Get Component Name based on its type Id. 
- Parameters
- 
  
    | [in] | _typeId | type Id of the component |  
 
- Returns
- Component name 
 
 
◆ ComponentSubscribe
  
  | 
        
          | void ComponentSubscribe | ( | uint64_t | _entity, |  
          |  |  | uint64_t | _typeId, |  
          |  |  | const std::string & | _type, |  
          |  |  | const std::string & | _attribute, |  
          |  |  | int | _chart |  
          |  | ) |  |  |  | signal | 
 
Notify the gazebo plugin to subscribe to a component data. 
- Parameters
- 
  
    | [in] | _entity | entity id which has the component |  | [in] | _typeId | component type id |  | [in] | _type | component data type |  | [in] | _attribute | component specefice attribute |  | [in] | _chart | chart id |  
 
 
 
◆ ComponentUnSubscribe
  
  | 
        
          | void ComponentUnSubscribe | ( | uint64_t | _entity, |  
          |  |  | uint64_t | _typeId, |  
          |  |  | const std::string & | _attribute, |  
          |  |  | int | _chart |  
          |  | ) |  |  |  | signal | 
 
Notify the gazebo plugin to unsubscribe a component data. 
- Parameters
- 
  
    | [in] | _entity | entity id which has the component |  | [in] | _typeId | component type id |  | [in] | _attribute | component specefice attribute |  | [in] | _chart | chart id |  
 
 
 
◆ exportCSV
export plot graphs to csv files 
- Parameters
- 
  
    | [in] | _path | path of folder to save the csv files |  | [in] | _chart | plot id to make its name unique |  | [in] | _serieses | serieses (graphs) of the plot |  
 
- Returns
- True if successfully export, False if any error 
 
 
◆ FilePath
Create suitable file path with unique name and extension. 
- Parameters
- 
  
    | [in] | _path | path selected from the UI |  | [in] | _name | file name |  | [in] | _extension | file extension (csv or pdf) |  
 
 
 
◆ InitTimer()
configuration of the timer 
 
 
◆ onComponentSubscribe
called by Qml to register a chart to a component attribute 
- Parameters
- 
  
    | [in] | _entity | entity id which has the component |  | [in] | _typeId | component type id |  | [in] | _type | component data type |  | [in] | _attribute | component specefice attribute |  | [in] | _chart | chart id |  
 
 
 
◆ onComponentUnSubscribe
called by Qml to remove a chart from a component attribute 
- Parameters
- 
  
    | [in] | _entity | entity id which has the component |  | [in] | _typeId | component type id |  | [in] | _attribute | component specefice attribute |  | [in] | _chart | chart id |  
 
 
 
◆ onPlot
  
  | 
        
          | void onPlot | ( | int | _chart, |  
          |  |  | QString | _fieldID, |  
          |  |  | double | _x, |  
          |  |  | double | _y |  
          |  | ) |  |  |  | slot | 
 
slot to get triggered to plot a point and send its data to the UI 
- Parameters
- 
  
    | [in] | _chart | chart ID |  | [in] | _fieldID | field path ID |  | [in] | _x | x coordinates of the plot point |  | [in] | _y | y coordinates of the plot point |  
 
 
 
◆ plot
  
  | 
        
          | void plot | ( | int | _chart, |  
          |  |  | QString | _fieldID, |  
          |  |  | double | _x, |  
          |  |  | double | _y |  
          |  | ) |  |  |  | signal | 
 
plot a point to a chart 
- Parameters
- 
  
    | [in] | _chart | chart ID |  | [in] | _fieldID | field path ID |  | [in] | _x | x coordinates of the plot point |  | [in] | _y | y coordinates of the plot point |  
 
 
 
◆ subscribe
subscribe to a field to plotted on a chart 
param[in] _topic the topic that includes that field
param[in] _fieldPath path to the field to reach it from the msg
param[in] _chart chart id to be attached to that field 
 
 
◆ Timeout()
Get the timeout of updating the plot. 
- Returns
- updating plot timeout 
 
 
◆ unsubscribe
unsubscribe from a field and detach it from a chart 
param[in] _topic the topic that includes that field
param[in] _fieldPath path to the field to reach it from the msg
param[in] _chart chart id to be detached to that field 
 
 
◆ UpdateTime
update the plotting tool time 
 
 
The documentation for this class was generated from the following file: