32 #ifndef HPP_PLOT_HPP_MANIPULATION_GRAPH_HH 33 #define HPP_PLOT_HPP_MANIPULATION_GRAPH_HH 36 #include <QPushButton> 37 #include <hpp/corbaserver/manipulation/client.hh> 41 namespace corbaServer {
42 namespace manipulation {
47 class HppManipulationGraphWidget;
56 void activated(hpp::ID
id);
59 void transferSignal();
77 void client(corbaServer::manipulation::Client*
hpp);
79 bool selectionID(hpp::ID&
id);
80 void showEdge(
const hpp::ID& edgeId);
81 const std::string&
graphName()
const {
return graphName_; }
87 void updateStatistics();
88 void showNodeOfConfiguration(
const hpp::floatSeq& cfg);
89 void displayNodeConstraint(hpp::ID
id);
90 void displayEdgeConstraint(hpp::ID
id);
91 void displayEdgeTargetConstraint(hpp::ID
id);
94 virtual void nodeContextMenu(QGVNode* node);
95 virtual void nodeDoubleClick(QGVNode* node);
96 virtual void edgeContextMenu(QGVEdge* edge);
97 virtual void edgeDoubleClick(QGVEdge* edge);
99 void selectionChanged();
102 void startStopUpdateStats(
bool start);
105 corbaServer::manipulation::Client* manip_;
109 QString constraintStr;
113 QString constraintStr;
116 ::hpp::ConfigProjStat_var configStat, pathStat;
118 ::hpp::intSeq_var freqPerCC;
123 QString name, containingNodeName;
124 ::CORBA::Long weight;
125 QString constraintStr;
129 ::hpp::ConfigProjStat_var configStat, pathStat;
130 ::hpp::Names_t_var errors;
131 ::hpp::intSeq_var freqs;
136 void updateWeight(EdgeInfo& ei,
bool get =
true);
137 void updateWeight(EdgeInfo& ei, const ::CORBA::Long w);
139 QString getConstraints(hpp::ID
id);
141 std::string graphName_;
142 QList<GraphAction*> nodeContextMenuActions_;
143 QList<GraphAction*> edgeContextMenuActions_;
144 QMap<QGVNode*, NodeInfo> nodeInfos_;
145 QMap<QGVEdge*, EdgeInfo> edgeInfos_;
146 QMap<hpp::ID, QGVNode*> nodes_;
147 QMap<hpp::ID, QGVEdge*> edges_;
149 QPushButton *showWaypoints_, *statButton_;
150 QTimer* updateStatsTimer_;
152 hpp::ID currentId_, showNodeId_, showEdgeId_;
157 #endif // HPP_PLOT_HPP_MANIPULATION_GRAPH_HH Definition: graph-widget.hh:43
Definition: hpp-manipulation-graph.hh:49