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();
116 private: std::string UnscopedName(
const std::string &_scopedName)
const;
123 private: std::string TopLevelName(
const std::string &_scopedName)
const;
129 private:
void OnSetSelectedEntity(
const std::string &_name,
136 private:
void OnSetSelectedJoint(
const std::string &_id,
142 private:
void OnDeselectAll(
const std::string &_name,
143 const std::string &_mode);
147 private:
void resizeEvent(QResizeEvent *_event);
151 private slots:
void OnCustomContextMenu(
const QString &_id);
155 private slots:
void OnItemDoubleClicked(
const QString &_id);
158 private slots:
void OnSelectionChanged();
167 private:
int minimumWidth;
170 private:
int minimumHeight;
173 private: std::map<std::string, QGVEdge *> edges;
176 private: std::map<std::string, QGVNode *> nodes;
179 private: std::vector<event::ConnectionPtr> connections;
182 private: QList<QGraphicsItem *> selectedItems;
Forward declarations for the common classes.
Definition: Animation.hh:33
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.