5 #ifndef CNOID_BODY_PLUGIN_JOINT_GRAPH_VIEW_H
6 #define CNOID_BODY_PLUGIN_JOINT_GRAPH_VIEW_H
9 #include <cnoid/MultiValueSeqItem>
11 #include <cnoid/GraphWidget>
12 #include <cnoid/ItemList>
13 #include <cnoid/ConnectionSet>
40 connections.disconnect();
43 std::shared_ptr<MultiValueSeq> seq;
46 std::vector<GraphDataHandlerPtr> handlers;
49 std::list<ItemInfo> itemInfos;
51 std::set<BodyItemPtr> bodyItems;
56 void onDataItemDisconnectedFromRoot(std::list<ItemInfo>::iterator itemInfoIter);
57 void updateBodyItems();
58 void onBodyItemDisconnectedFromRoot(
BodyItemPtr bodyItem);
59 void setupGraphWidget();
60 void addJointTrajectory(std::list<ItemInfo>::iterator itemInfoIter,
Link* joint, std::shared_ptr<MultiValueSeq> seq);
61 void onDataItemUpdated(std::list<ItemInfo>::iterator itemInfoIter);
62 void onDataRequest(std::list<ItemInfo>::iterator itemInfoIter,
int jointId,
int frame,
int size,
double* out_values);
63 void onDataModified(std::list<ItemInfo>::iterator itemInfoIter,
int jointId,
int frame,
int size,
double* values);