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;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_DECLARE_VECTOR_TYPES(type)
Class that encapsulates rendering and simulation using OpenSceneGraph.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Clock class keeps representation of virtual/simulated time.
A component is an object containing other objects, enabling hierarchical structuring.
Representation of a name string.
Base class providing referencing counted objects.
This namespace contains functionality for using AGX together with version 2 of the Functional Mockup ...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
void AGXPHYSICS_EXPORT init()
Initialize agx.