17 #ifndef AGXPYTHON_SCRIPTCONTEXT_H 18 #define AGXPYTHON_SCRIPTCONTEXT_H 21 #include <agx/config/AGX_USE_PYTHON.h> 22 #include <agx/config.h> 26 #include <agx/config/AGX_USE_FMI.h> 38 class ExampleApplication;
75 class ScriptContextInterface;
89 friend class ScriptContext;
90 friend class ScriptContextInterface;
93 osg::Group* getSceneRoot();
100 agxFMI2::Export::Module* getFMI2Module();
106 ScriptContext_environment();
107 ~ScriptContext_environment();
134 friend class ScriptManager;
135 friend class ScriptContextInterface;
137 agxPython::ScriptContextInterface *getInterface();
139 void setInterface(agxPython::ScriptContextInterface *i);
141 ScriptContext_environment* environment;
144 ScriptContext(
int contextType);
145 virtual ~ScriptContext();
147 void setEnvironment(ScriptContext_environment *e);
150 static bool verify_apply_destroy(ScriptContext *scriptContext, agxPython::ScriptContextInterface *scriptContextInterface);
179 friend class ScriptManager;
180 friend class ScriptContext;
182 ScriptContextInterface() =
delete;
186 void setSceneRoot(osg::Group* group)
const;
187 osg::Group* getSceneRoot()
const;
192 void setFMI2Module(agxFMI2::Export::Module *module)
const;
200 bool verifyAndApply();
202 agxPython::ScriptContext* getContext();
205 ScriptContextInterface(ScriptContext *scriptContext);
206 virtual ~ScriptContextInterface();
Class that encapsulates rendering and simulation using OpenSceneGraph.
AGXCORE_EXPORT Type * getType(const agx::String &name)
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
#define AGX_DECLARE_POINTER_TYPES(type)
Decorates a scene with a specific AGX Rendering Style.
Base class providing referencing counted objects.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
Smart pointer for handling referenced counted objects.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...