18 #ifndef _GAZEBO_GRAPH_SCENE_HH_
19 #define _GAZEBO_GRAPH_SCENE_HH_
50 public:
void RemoveNode(
const std::string &_name);
55 public:
bool HasNode(
const std::string &_name);
68 const std::string &_node1,
const std::string &_node2);
72 public:
void RemoveEdge(
const std::string &_id);
77 private:
void drawBackground(QPainter *_painter,
const QRectF &_rect);
GraphScene(QWidget *_parent=0)
Constructor.
Node item.
Definition: QGVNode.h:33
Edge item.
Definition: QGVEdge.h:34
bool HasNode(const std::string &_name)
Check if a node exists in the scene.
A scene of 2D graph nodes and edges.
Definition: GraphScene.hh:32
QGVEdge * AddEdge(const std::string &_id, const std::string &_node1, const std::string &_node2)
Add an edge to connect two nodes.
GraphViz interactive scene.
Definition: QGVScene.h:40
void RemoveNode(const std::string &_name)
Remove a node from the scene.
virtual ~GraphScene()=default
Destructor.
QGVNode * GetNode(const std::string &_name)
Get a node from the scene.
QGVNode * AddNode(const std::string &_name)
Add a node to the scene.
void RemoveEdge(const std::string &_id)
Remove an edge between two nodes.