17 #ifndef GAZEBO_GUI_MODEL_SCHEMATICVIEWWIDGET_HH_
18 #define GAZEBO_GUI_MODEL_SCHEMATICVIEWWIDGET_HH_
59 public:
void AddNode(
const std::string &_node);
63 public:
void RemoveNode(
const std::string &_node);
68 public:
bool HasNode(
const std::string &_name)
const;
76 public:
void AddEdge(
const std::string &_id,
const std::string &_name,
77 const std::string &_type,
const std::string &_parent,
78 const std::string &_child);
82 public:
void RemoveEdge(
const std::string &_id);
90 public:
void UpdateEdge(
const std::string &_id,
const std::string &_name,
91 const std::string &_type,
const std::string &_parent,
92 const std::string &_child);
97 public:
bool HasEdge(
const std::string &_id)
const;
101 public:
unsigned int GetNodeCount()
const;
105 public:
unsigned int GetEdgeCount()
const;
108 public:
void FitInView();
115 private: std::string UnscopedName(
const std::string &_scopedName)
const;
122 private: std::string TopLevelName(
const std::string &_scopedName)
const;
128 private:
void OnSetSelectedEntity(
const std::string &_name,
135 private:
void OnSetSelectedJoint(
const std::string &_id,
141 private:
void OnDeselectAll(
const std::string &_name,
142 const std::string &_mode);
146 private:
void resizeEvent(QResizeEvent *_event);
150 private slots:
void OnCustomContextMenu(
const QString &_id);
154 private slots:
void OnItemDoubleClicked(
const QString &_id);
157 private slots:
void OnSelectionChanged();
166 private:
int minimumWidth;
169 private:
int minimumHeight;
172 private: std::map<std::string, QGVEdge *> edges;
175 private: std::map<std::string, QGVNode *> nodes;
178 private: std::vector<event::ConnectionPtr> connections;
181 private: QList<QGraphicsItem *> selectedItems;
A scene of 2D graph nodes and edges.
Definition: GraphScene.hh:33
A view for the graph scene.
Definition: GraphView.hh:28
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.