17 #ifndef AGXFMI2_IMPORT_MASTER_H 18 #define AGXFMI2_IMPORT_MASTER_H 20 #include <agx/config/AGX_USE_FMI.h> 21 #include <agx/config/AGX_USE_WEBPLOT.h> 31 #if AGX_USE_WEBSOCKETS() 39 #include <JM/jm_callbacks.h> 46 class ExampleApplication;
62 Master(Module::LogLevel logLevel = Module::LOG_LEVEL_INFO);
63 Master(
agxSDK::Simulation *simulation, Module::LogLevel logLevel = Module::LOG_LEVEL_INFO);
81 void bind(Variable *input, Variable *output);
91 void setControlChannelFrequency(
agx::Real frequency);
93 void setDebug(
bool flag);
94 bool getDebug()
const;
108 #if AGX_USE_WEBSOCKETS() 110 void ccGetModuleDescription(agxNet::WebSocket::ControlChannel *, agxNet::WebSocket *socket,
agxNet::StructuredMessage *message);
111 void ccGetInitialState(agxNet::WebSocket::ControlChannel *, agxNet::WebSocket *socket,
agxNet::StructuredMessage *message);
121 jm_callbacks m_jmCallbacks;
123 ModuleRefVector m_modules;
124 BindingRefVector m_bindings;
131 Module::LogLevel m_logLevel;
132 #if AGX_USE_WEBSOCKETS() 133 agxNet::WebSocket::ControlChannelRef m_controlChannel;
146 Binding(Variable *input, Variable *output);
148 Variable *getInput();
149 Variable *getOutput();
158 VariableRef m_output;
Class that encapsulates rendering and simulation using OpenSceneGraph.
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
A component is an object containing other objects, enabling hierarchical structuring.
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
Base class providing referencing counted objects.
Templated callback with one argument.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
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...
Clock class keeps representation of virtual/simulated time.
#define AGX_DECLARE_VECTOR_TYPES(type)