18 #ifndef _GAZEBO_SCHEMATIC_VIEW_WIDGET_HH_
19 #define _GAZEBO_SCHEMATIC_VIEW_WIDGET_HH_
60 public:
void AddNode(
const std::string &_node);
64 public:
void RemoveNode(
const std::string &_node);
69 public:
bool HasNode(
const std::string &_name)
const;
77 public:
void AddEdge(
const std::string &_id,
const std::string &_name,
78 const std::string &_type,
const std::string &_parent,
79 const std::string &_child);
83 public:
void RemoveEdge(
const std::string &_id);
91 public:
void UpdateEdge(
const std::string &_id,
const std::string &_name,
92 const std::string &_type,
const std::string &_parent,
93 const std::string &_child);
98 public:
bool HasEdge(
const std::string &_id)
const;
102 public:
unsigned int GetNodeCount()
const;
106 public:
unsigned int GetEdgeCount()
const;
109 public:
void FitInView();
114 private: std::string UnscopedName(
const std::string &_scopedName);
120 private:
void OnSetSelectedLink(
const std::string &_name,
bool _selected);
126 private:
void OnSetSelectedJoint(
const std::string &_id,
132 private:
void OnSetSelectedEntity(
const std::string &_name,
133 const std::string &_mode);
137 private:
void resizeEvent(QResizeEvent *_event);
141 private slots:
void OnCustomContextMenu(
const QString &_id);
145 private slots:
void OnItemDoubleClicked(
const QString &_id);
148 private slots:
void OnSelectionChanged();
157 private:
int minimumWidth;
160 private:
int minimumHeight;
163 private: std::map<std::string, QGVEdge *> edges;
166 private: std::map<std::string, QGVNode *> nodes;
169 private: std::vector<event::ConnectionPtr> connections;
172 private: QList<QGraphicsItem *> selectedItems;
#define GZ_GUI_VISIBLE
Definition: system.hh:284
Node item.
Definition: QGVNode.h:34
Edge item.
Definition: QGVEdge.h:36
A scene of 2D graph nodes and edges.
Definition: GraphScene.hh:34
A view for the graph scene.
Definition: GraphView.hh:29
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.