Choreonoid  1.8
SimulationScriptItem.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_BODY_PLUGIN_SIMULATION_SCRIPT_ITEM_H
7 #define CNOID_BODY_PLUGIN_SIMULATION_SCRIPT_ITEM_H
8 
9 #include <cnoid/ScriptItem>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class SimulationScriptItemImpl;
15 
16 class CNOID_EXPORT SimulationScriptItem : public ScriptItem
17 {
18 public:
19  static void initializeClass(ExtensionManager* ext);
20 
23 
31  };
32 
33  ExecutionTiming executionTiming() const;
34  void setExecutionTiming(ExecutionTiming timing);
35  double executionDelay() const;
36  void setExecutionDelay(double t);
37 
38  virtual bool execute();
39  virtual bool executeAsSimulationScript() = 0;
40 
41 protected:
42  virtual ~SimulationScriptItem();
43 
44  virtual void doPutProperties(PutPropertyFunction& putProperty);
45  virtual bool store(Archive& archive);
46  virtual bool restore(const Archive& archive);
47 
48 private:
49  SimulationScriptItemImpl* impl;
50  friend class SimulationScriptItemImpl;
51 };
52 
54 
55 }
56 
57 #endif
cnoid::SimulationScriptItem::AFTER_FINALIZATION
@ AFTER_FINALIZATION
Definition: SimulationScriptItem.h:29
cnoid::SimulationScriptItem::DURING_INITIALIZATION
@ DURING_INITIALIZATION
Definition: SimulationScriptItem.h:26
cnoid::ScriptItem
Definition: ScriptItem.h:14
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::PutPropertyFunction
Definition: PutPropertyFunction.h:51
cnoid::Archive
Definition: Archive.h:22
cnoid::SimulationScriptItemPtr
ref_ptr< SimulationScriptItem > SimulationScriptItemPtr
Definition: SimulationScriptItem.h:53
cnoid::SimulationScriptItem::DURING_FINALIZATION
@ DURING_FINALIZATION
Definition: SimulationScriptItem.h:28
cnoid::SimulationScriptItem::NUM_TIMINGS
@ NUM_TIMINGS
Definition: SimulationScriptItem.h:30
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::SimulationScriptItem::ExecutionTiming
ExecutionTiming
Definition: SimulationScriptItem.h:24
cnoid::SimulationScriptItem::BEFORE_INITIALIZATION
@ BEFORE_INITIALIZATION
Definition: SimulationScriptItem.h:25
cnoid::SimulationScriptItem
Definition: SimulationScriptItem.h:16
cnoid::SimulationScriptItem::AFTER_INITIALIZATION
@ AFTER_INITIALIZATION
Definition: SimulationScriptItem.h:27