5 #ifndef CNOID_BODYPLUGIN_MULTI_VALUE_SEQ_GRAPH_VIEW_H_INCLUDED
6 #define CNOID_BODYPLUGIN_MULTI_VALUE_SEQ_GRAPH_VIEW_H_INCLUDED
13 #include <boost/signals.hpp>
15 #include <cnoid/MultiValueSeqItem>
17 #include <cnoid/GraphWidget>
18 #include <cnoid/ItemList>
19 #include <cnoid/ConnectionSet>
51 connections.disconnect();
53 MultiValueSeqItemPtr item;
56 ConnectionSet connections;
57 std::vector<GraphDataHandlerPtr> handlers;
60 std::list<ItemInfo> itemInfos;
62 std::set<BodyItemPtr> bodyItems;
63 ConnectionSet bodyItemConnections;
65 void onItemSelectionChanged(
const ItemList<MultiValueSeqItem>& dataItems);
66 void onDataItemDetachedFromRoot(std::list<ItemInfo>::iterator itemInfoIter);
67 void updateBodyItems();
68 void onBodyItemDetachedFromRoot(
BodyItemPtr bodyItem);
69 void setupGraphWidget();
70 void addJointTrajectory(std::list<ItemInfo>::iterator itemInfoIter,
Link* joint,
MultiValueSeqPtr seq);
71 void onDataItemUpdated(std::list<ItemInfo>::iterator itemInfoIter);
72 void onDataRequest(std::list<ItemInfo>::iterator itemInfoIter,
int jointId,
int frame,
int size,
double* out_values);
73 void onDataModified(std::list<ItemInfo>::iterator itemInfoIter,
int jointId,
int frame,
int size,
double* values);