32 #ifndef HPP_PLOT_HPP_MANIPULATION_GRAPH_HH 33 #define HPP_PLOT_HPP_MANIPULATION_GRAPH_HH 36 #include <QPushButton> 38 #include <hpp/corbaserver/manipulation/client.hh> 43 namespace corbaServer {
44 namespace manipulation {
49 class HppManipulationGraphWidget;
59 void activated (hpp::ID
id);
62 void transferSignal ();
77 void addNodeContextMenuAction (
GraphAction* action);
78 void addEdgeContextMenuAction (
GraphAction* action);
80 void client (corbaServer::manipulation::Client*
hpp);
82 bool selectionID (hpp::ID&
id);
83 void showEdge (
const hpp::ID& edgeId);
93 void updateStatistics ();
95 void displayNodeConstraint(hpp::ID
id);
96 void displayEdgeConstraint(hpp::ID
id);
97 void displayEdgeTargetConstraint(hpp::ID
id);
100 virtual void nodeContextMenu(QGVNode* node);
101 virtual void nodeDoubleClick(QGVNode* node);
102 virtual void edgeContextMenu(QGVEdge* edge);
103 virtual void edgeDoubleClick(QGVEdge* edge);
105 void selectionChanged ();
108 void startStopUpdateStats (
bool start);
111 corbaServer::manipulation::Client* manip_;
115 QString constraintStr;
119 QString constraintStr;
122 ::hpp::ConfigProjStat_var configStat, pathStat;
124 ::hpp::intSeq_var freqPerCC;
129 QString name, containingNodeName;
130 ::CORBA::Long weight;
131 QString constraintStr;
135 ::hpp::ConfigProjStat_var configStat, pathStat;
136 ::hpp::Names_t_var errors;
137 ::hpp::intSeq_var freqs;
142 void updateWeight (EdgeInfo& ei,
bool get =
true);
143 void updateWeight (EdgeInfo& ei, const ::CORBA::Long w);
145 QString getConstraints(hpp::ID
id);
147 std::string graphName_;
148 QList <GraphAction*> nodeContextMenuActions_;
149 QList <GraphAction*> edgeContextMenuActions_;
150 QMap <QGVNode*, NodeInfo> nodeInfos_;
151 QMap <QGVEdge*, EdgeInfo> edgeInfos_;
152 QMap <hpp::ID, QGVNode*> nodes_;
153 QMap <hpp::ID, QGVEdge*> edges_;
155 QPushButton* showWaypoints_, *statButton_;
156 QTimer* updateStatsTimer_;
158 hpp::ID currentId_, showNodeId_, showEdgeId_;
163 #endif // HPP_PLOT_HPP_MANIPULATION_GRAPH_HH
sequence< double > floatSeq
Definition: hpp-manipulation-graph.hh:51