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"
47 public: QGVNode *
AddNode(
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);
79 const ignition::math::Color &_color);
84 private:
void drawBackground(QPainter *_painter,
const QRectF &_rect);
gui
Definition: KeyEventHandler.hh:29
A scene of 2D graph nodes and edges.
Definition: GraphScene.hh:34
GraphScene(QWidget *_parent=0)
Constructor.
void RemoveEdge(const std::string &_id)
Remove an edge between two nodes.
QGVNode * GetNode(const std::string &_name)
Get a node from the scene.
virtual ~GraphScene()=default
Destructor.
QGVEdge * AddEdge(const std::string &_id, const std::string &_node1, const std::string &_node2)
Add an edge to connect two nodes.
void SetEdgeColor(const std::string &_id, const ignition::math::Color &_color)
Set the color of an edge.
bool HasNode(const std::string &_name)
Check if a node exists in the scene.
void RemoveNode(const std::string &_name)
Remove a node from the scene.
QGVNode * AddNode(const std::string &_name)
Add a node to the scene.
Forward declarations for the common classes.
Definition: Animation.hh:27