Go to the documentation of this file.
6 #ifndef CNOID_PYTHON_SIM_SCRIPT_PLUGIN_PYTHON_SIM_SCRIPT_ITEM_H
7 #define CNOID_PYTHON_SIM_SCRIPT_PLUGIN_PYTHON_SIM_SCRIPT_ITEM_H
9 #include <cnoid/SimulationScriptItem>
10 #include "exportdecl.h"
14 class PythonScriptItemImpl;
25 bool setScriptFilename(
const std::string& filename);
26 virtual const std::string& scriptFilename()
const override;
28 virtual void setBackgroundMode(
bool on)
override;
29 virtual bool isBackgroundMode()
const override;
30 virtual bool isRunning()
const override;
32 virtual bool executeAsSimulationScript()
override;
33 virtual bool executeCode(
const char* code)
override;
34 virtual bool waitToFinish(
double timeout = 0.0)
override;
35 virtual std::string resultString()
const override;
36 virtual SignalProxy<void()> sigScriptFinished()
override;
38 virtual bool terminate()
override;
41 virtual void onDisconnectedFromRoot()
override;
42 virtual Item* doDuplicate()
const override;
44 virtual bool store(
Archive& archive)
override;
45 virtual bool restore(
const Archive& archive)
override;
ref_ptr< PythonSimScriptItem > PythonSimScriptItemPtr
Definition: PythonSimScriptItem.h:51
Definition: ExtensionManager.h:23
Definition: PutPropertyFunction.h:51
Definition: Referenced.h:103
Definition: PythonSimScriptItem.h:16
Definition: AbstractSceneLoader.h:11
Definition: PythonScriptItemImpl.h:16
Definition: SimulationScriptItem.h:16