AnimatLab  2
Test
ScriptProcessorPy.h
1 #pragma once
2 
3 namespace AnimatSimPy
4 {
5 
6  class ANIMATSIMPY_PORT ScriptProcessorPy : public AnimatSim::ScriptProcessor
7  {
8  protected:
9  std::string m_strInitPy;
10  std::string m_strResetSimPy;
11  std::string m_strBeforeStepPhysicsEnginePy;
12  std::string m_strAfterStepPhysicsEnginePy;
13  std::string m_strBeforeStepNeuralEnginePy;
14  std::string m_strAfterStepNeuralEnginePy;
15  std::string m_strKillPy;
16  std::string m_strKillResetPy;
17  std::string m_strSimStartingPy;
18  std::string m_strSimPausingPy;
19  std::string m_strSimStoppingPy;
20 
21  virtual bool ExecutePythonScript(const std::string &strPy, bool bThrowError = true);
22 
23  public:
24  ScriptProcessorPy(void);
25  virtual ~ScriptProcessorPy(void);
26 
27  virtual void InitPy(std::string strVal);
28  virtual std::string InitPy();
29 
30  virtual void ResetSimPy(std::string strVal);
31  virtual std::string ResetSimPy();
32 
33  virtual void BeforeStepPhysicsEnginePy(std::string strVal);
34  virtual std::string BeforeStepPhysicsEnginePy();
35 
36  virtual void AfterStepPhysicsEnginePy(std::string strVal);
37  virtual std::string AfterStepPhysicsEnginePy();
38 
39  virtual void BeforeStepNeuralEnginePy(std::string strVal);
40  virtual std::string BeforeStepNeuralEnginePy();
41 
42  virtual void AfterStepNeuralEnginePy(std::string strVal);
43  virtual std::string AfterStepNeuralEnginePy();
44 
45  virtual void KillPy(std::string strVal);
46  virtual std::string KillPy();
47 
48  virtual void KillResetPy(std::string strVal);
49  virtual std::string KillResetPy();
50 
51  virtual void SimStartingPy(std::string strVal);
52  virtual std::string SimStartingPy();
53 
54  virtual void SimPausingPy(std::string strVal);
55  virtual std::string SimPausingPy();
56 
57  virtual void SimStoppingPy(std::string strVal);
58  virtual std::string SimStoppingPy();
59 
60  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
61  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
62 
63  virtual void Initialize();
64  virtual void ResetSimulation();
65  virtual void Kill(bool bState = true);
66 
67  virtual void BeforeStepPhysicsEngine();
68  virtual void AfterStepPhysicsEngine();
69  virtual void BeforeStepNeuralEngine();
70  virtual void AfterStepNeuralEngine();
71 
72  virtual void SimStarting();
73  virtual void SimPausing();
74  virtual void SimStopping();
75  virtual void Load(StdUtils::CStdXml &oXml);
76  };
77 
78 }
A standard xml manipulation class.
Definition: StdXml.h:19