Choreonoid  1.8
KinematicSimulatorItem.h
Go to the documentation of this file.
1 #ifndef CNOID_BODY_PLUGIN_KINEMATIC_SIMULATOR_ITEM_H
2 #define CNOID_BODY_PLUGIN_KINEMATIC_SIMULATOR_ITEM_H
3 
4 #include "SimulatorItem.h"
5 #include "exportdecl.h"
6 
7 namespace cnoid {
8 
9 class CNOID_EXPORT KinematicSimulatorItem : public SimulatorItem
10 {
11 public:
12  static void initializeClass(ExtensionManager* ext);
13 
16  virtual ~KinematicSimulatorItem();
17  virtual Item* doDuplicate() const override;
18 
19 protected:
20  virtual void clearSimulation() override;
21  virtual SimulationBody* createSimulationBody(Body* orgBody, CloneMap& cloneMap) override;
22  virtual bool initializeSimulation(const std::vector<SimulationBody*>& simBodies) override;
23  virtual bool stepSimulation(const std::vector<SimulationBody*>& activeSimBodies) override;
24  virtual void finalizeSimulation() override;
25  virtual void doPutProperties(PutPropertyFunction& putProperty) override;
26  virtual bool store(Archive& archive) override;
27  virtual bool restore(const Archive& archive) override;
28 
29 private:
30  class Impl;
31  Impl* impl;
32 };
33 
35 
36 }
37 
38 #endif
cnoid::KinematicSimulatorItem
Definition: KinematicSimulatorItem.h:9
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::PutPropertyFunction
Definition: PutPropertyFunction.h:51
cnoid::Archive
Definition: Archive.h:22
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid::SimulationBody
Definition: SimulatorItem.h:29
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::CloneMap
Definition: CloneMap.h:13
cnoid::KinematicSimulatorItemPtr
ref_ptr< KinematicSimulatorItem > KinematicSimulatorItemPtr
Definition: KinematicSimulatorItem.h:34
cnoid::Body
Definition: Body.h:28
SimulatorItem.h
cnoid::SimulatorItem
Definition: SimulatorItem.h:81