Choreonoid  1.8
ZMPSeqItem.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_BODY_PLUGIN_ZMPSEQ_ITEM_H
7 #define CNOID_BODY_PLUGIN_ZMPSEQ_ITEM_H
8 
9 #include <cnoid/Vector3SeqItem>
10 #include <cnoid/ZMPSeq>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class ExtensionManager;
16 
17 class CNOID_EXPORT ZMPSeqItem : public Vector3SeqItem
18 {
19 public:
20  static void initializeClass(ExtensionManager* ext);
21 
22  ZMPSeqItem();
23  ZMPSeqItem(std::shared_ptr<ZMPSeq> seq);
24  ZMPSeqItem(const ZMPSeqItem& org);
25 
26  std::shared_ptr<ZMPSeq> zmpseq() { return zmpseq_; }
27  std::shared_ptr<const ZMPSeq> zmpseq() const { return zmpseq_; }
28 
29  bool makeRootRelative(bool on);
30 
31 protected:
32  virtual ~ZMPSeqItem();
33  virtual Item* doDuplicate() const;
34  virtual void doPutProperties(PutPropertyFunction& putProperty);
35 
36 private:
37  std::shared_ptr<ZMPSeq> zmpseq_;
38 };
39 
41 
42 }
43 
44 #endif
cnoid::ZMPSeqItemPtr
ref_ptr< ZMPSeqItem > ZMPSeqItemPtr
Definition: ZMPSeqItem.h:40
cnoid::ZMPSeqItem
Definition: ZMPSeqItem.h:17
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::PutPropertyFunction
Definition: PutPropertyFunction.h:51
cnoid::ZMPSeqItem::zmpseq
std::shared_ptr< ZMPSeq > zmpseq()
Definition: ZMPSeqItem.h:26
cnoid::makeRootRelative
CNOID_EXPORT bool makeRootRelative(ZMPSeq &zmpseq, BodyMotion &motion, bool on)
Definition: ZMPSeq.cpp:121
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::Vector3SeqItem
Definition: Vector3SeqItem.h:15
cnoid::ZMPSeqItem::zmpseq
std::shared_ptr< const ZMPSeq > zmpseq() const
Definition: ZMPSeqItem.h:27