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;
68 class ScriptContextInterface;
82 friend class ScriptContext;
83 friend class ScriptContextInterface;
86 osg::Group* getSceneRoot();
93 agxFMI2::Export::Module* getFMI2Module();
99 ScriptContext_environment();
100 ~ScriptContext_environment();
127 friend class ScriptManager;
128 friend class ScriptContextInterface;
130 agxPython::ScriptContextInterface *getInterface();
132 void setInterface(agxPython::ScriptContextInterface *i);
134 ScriptContext_environment* environment;
137 ScriptContext(
int contextType);
138 virtual ~ScriptContext();
140 void setEnvironment(ScriptContext_environment *e);
143 static bool verify_apply_destroy(ScriptContext *scriptContext, agxPython::ScriptContextInterface *scriptContextInterface);
172 friend class ScriptManager;
173 friend class ScriptContext;
175 ScriptContextInterface() =
delete;
179 void setSceneRoot(osg::Group* group)
const;
180 osg::Group* getSceneRoot()
const;
185 void setFMI2Module(agxFMI2::Export::Module *module)
const;
193 bool verifyAndApply();
195 agxPython::ScriptContext* getContext();
198 ScriptContextInterface(ScriptContext *scriptContext);
199 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.
This namespace contains functionality for using AGX together with version 2 of the Functional Mockup ...
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...