Choreonoid  1.8
MultiSE3SeqGraphView.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_MULTI_SE3_SEQ_GRAPH_VIEW_H
6 #define CNOID_BASE_MULTI_SE3_SEQ_GRAPH_VIEW_H
7 
8 #include "GraphViewBase.h"
9 #include "MultiSE3SeqItem.h"
10 #include "Buttons.h"
11 #include <cnoid/ConnectionSet>
12 
13 namespace cnoid {
14 
16 {
17 public:
18  static void initializeClass(ExtensionManager* ext);
19 
22 
23  virtual bool storeState(Archive& archive);
24  virtual bool restoreState(const Archive& archive);
25 
26 private:
27  ToggleToolButton xyzToggles[3];
28  ToggleToolButton rpyToggles[3];
29  ConnectionSet toggleConnections;
30 
31  void setupElementToggleSet(QBoxLayout* box, ToggleToolButton toggles[], const char* labels[], bool isActive);
32 
33  virtual int currentNumParts(const ItemList<>& items) const;
34  virtual ItemList<> extractTargetItems(const ItemList<>& items) const;
35  void addGraphDataHandlers(Item* item, int partIndex, std::vector<GraphDataHandlerPtr>& out_handlers);
36  void updateGraphDataHandler(Item* item, GraphDataHandlerPtr handler);
37  void onDataRequest(std::shared_ptr<MultiSE3Seq> seq, int partIndex, int type, int axis, int frame, int size, double* out_values);
38  void onDataModified(MultiSE3SeqItem* item, int partIndex, int type, int axis, int frame, int size, double* values);
39 };
40 
41 }
42 
43 #endif
cnoid::MultiSE3SeqGraphView::restoreState
virtual bool restoreState(const Archive &archive)
Definition: MultiSE3SeqGraphView.cpp:174
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
Buttons.h
cnoid::ConnectionSet
Definition: ConnectionSet.h:84
cnoid::MultiSE3SeqGraphView::MultiSE3SeqGraphView
MultiSE3SeqGraphView()
Definition: MultiSE3SeqGraphView.cpp:21
cnoid::Archive
Definition: Archive.h:22
cnoid::MultiSE3SeqGraphView::initializeClass
static void initializeClass(ExtensionManager *ext)
Definition: MultiSE3SeqGraphView.cpp:14
cnoid::GraphDataHandlerPtr
std::shared_ptr< GraphDataHandler > GraphDataHandlerPtr
Definition: GraphWidget.h:23
cnoid::MultiSE3SeqGraphView::storeState
virtual bool storeState(Archive &archive)
Definition: MultiSE3SeqGraphView.cpp:154
cnoid::MultiSE3SeqGraphView::~MultiSE3SeqGraphView
~MultiSE3SeqGraphView()
Definition: MultiSE3SeqGraphView.cpp:54
cnoid::MultiSE3SeqGraphView
Definition: MultiSE3SeqGraphView.h:15
MultiSE3SeqItem.h
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::GraphViewBase
Definition: GraphViewBase.h:17
cnoid::ItemList
Definition: Item.h:20
cnoid::ToggleToolButton
Definition: Buttons.h:106
cnoid::View::isActive
bool isActive() const
Definition: View.cpp:194
GraphViewBase.h
cnoid::MultiSeqItem
Definition: MultiSeqItem.h:16