AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxMexDLLInterface.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXMEX_DLL_INTERFACE_H
18 #define AGXMEX_DLL_INTERFACE_H
19 
20 #include <agxMex/export.h>
21 
22 #if defined(_WIN32)
23 #include <agx/Windows.h>
24 #endif
25 
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
40  AGXMEX_EXPORT int AGXMEX_initAgx( const char* debugFile, const char* agxFilePath, const char* agxPluginPath, const char* osgFilePath );
41 
44 
50 
60  AGXMEX_EXPORT int AGXMEX_preloadFileAgx( const char* file, int* initInputSize, int* initOutputSize,
61  int* stepInputSize, int* stepOutputSize );
62 
71  AGXMEX_EXPORT int AGXMEX_loadFileAgx( double* initInput, double* initOutput );
72 
77  AGXMEX_EXPORT int AGXMEX_setTimeStepAgx( double timeStep );
78 
79 
88  AGXMEX_EXPORT int AGXMEX_stepAgx(const double* input, double* output);
89 
90 
102 
105 
108 
111 
114 
121  AGXMEX_EXPORT const char* AGXMEX_getInitInputValueName(unsigned int valueNr);
122 
129  AGXMEX_EXPORT const char* AGXMEX_getInitOutputValueName(unsigned int valueNr);
130 
137  AGXMEX_EXPORT const char* AGXMEX_getStepInputValueName(unsigned int valueNr);
138 
145  AGXMEX_EXPORT const char* AGXMEX_getStepOutputValueName(unsigned int valueNr);
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif // AGXMEX_DLL_INTERFACE_H
AGXMEX_EXPORT int AGXMEX_preloadFileAgx(const char *file, int *initInputSize, int *initOutputSize, int *stepInputSize, int *stepOutputSize)
Preloads the scene specified int a .agxLua file into to the simulation.
AGXMEX_EXPORT int AGXMEX_setTimeStepAgx(double timeStep)
AGXMEX_EXPORT const char * AGXMEX_getStepInputValueName(unsigned int valueNr)
Returns the name of a specific step input value for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_initAgx(const char *debugFile, const char *agxFilePath, const char *agxPluginPath, const char *osgFilePath)
Initialize the &quot;simulation&quot;, must be called prior to any of the other functions.
AGXMEX_EXPORT int AGXMEX_loadFileAgx(double *initInput, double *initOutput)
Loads the scene specified int a .agxLua file into to the simulation.
#define AGXMEX_EXPORT
Definition: agxMex/export.h:45
AGXMEX_EXPORT int AGXMEX_setUseCoSimulation(int flag)
Sets if the simulation should use remote debugging.
AGXMEX_EXPORT const char * AGXMEX_getInitOutputValueName(unsigned int valueNr)
Returns the name of a specific init output value for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_getStepOutputSize()
Returns the size of the step output array for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_stepAgx(const double *input, double *output)
Step the &quot;simulation&quot;.
AGXMEX_EXPORT const char * AGXMEX_getStepOutputValueName(unsigned int valueNr)
Returns the name of a specific step output value for AGXMEX_stepAgx.
AGXMEX_EXPORT const char * AGXMEX_getLastErrorMessage()
Returns last error message. Empty if no error.
AGXMEX_EXPORT int AGXMEX_getInitInputSize()
Returns the size of the init input array for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_getStepInputSize()
Returns the size of the step input array for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_terminateAgx()
Terminates the &quot;simulation&quot;.
AGXMEX_EXPORT const char * AGXMEX_getInitInputValueName(unsigned int valueNr)
Returns the name of a specific init input value for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_getInitOutputSize()
Returns the size of the init output array for AGXMEX_stepAgx.