Choreonoid  1.8
SubSimulatorItem.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_BODY_PLUGIN_SUB_SIMULATOR_ITEM_H
7 #define CNOID_BODY_PLUGIN_SUB_SIMULATOR_ITEM_H
8 
9 #include <cnoid/Item>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class SimulatorItem;
15 
16 class CNOID_EXPORT SubSimulatorItem : public Item
17 {
18 public:
19  static void initializeClass(ExtensionManager* ext);
20 
23 
24  virtual bool isEnabled();
25  virtual bool setEnabled(bool on);
26  virtual bool initializeSimulation(SimulatorItem* simulatorItem);
27  virtual void finalizeSimulation();
28 
29 protected:
30  virtual void doPutProperties(PutPropertyFunction& putProperty);
31  virtual bool store(Archive& archive);
32  virtual bool restore(const Archive& archive);
33 
34 private:
35  bool isEnabled_;
36 };
37 
39 }
40 
41 #endif
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::SubSimulatorItemPtr
ref_ptr< SubSimulatorItem > SubSimulatorItemPtr
Definition: SubSimulatorItem.h:38
cnoid::PutPropertyFunction
Definition: PutPropertyFunction.h:51
cnoid::Archive
Definition: Archive.h:22
cnoid::SubSimulatorItem
Definition: SubSimulatorItem.h:16
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::SimulatorItem
Definition: SimulatorItem.h:81