17 #ifndef GAZEBO_GUI_MODEL_GRAPHSCENE_HH_ 18 #define GAZEBO_GUI_MODEL_GRAPHSCENE_HH_ 22 #include <ignition/math/Color.hh> 25 #include "gazebo/gui/qgv/QGVScene.h" 39 public:
explicit GraphScene(QWidget *_parent = 0);
47 public: QGVNode *AddNode(
const std::string &_name);
51 public:
void RemoveNode(
const std::string &_name);
56 public:
bool HasNode(
const std::string &_name);
61 public: QGVNode *GetNode(
const std::string &_name);
68 public: QGVEdge *AddEdge(
const std::string &_id,
69 const std::string &_node1,
const std::string &_node2);
73 public:
void RemoveEdge(
const std::string &_id);
78 public:
void SetEdgeColor(
const std::string &_id,
79 const ignition::math::Color &_color);
84 private:
void drawBackground(QPainter *_painter,
const QRectF &_rect);
Forward declarations for the common classes.
Definition: Animation.hh:26
A scene of 2D graph nodes and edges.
Definition: GraphScene.hh:33