AGX Dynamics  2.35.0.1
agxMexDLLInterface.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 
49 
59  AGXMEX_EXPORT int AGXMEX_preloadFileAgx( const char* file, int* initInputSize, int* initOutputSize,
60  int* stepInputSize, int* stepOutputSize );
61 
70  AGXMEX_EXPORT int AGXMEX_loadFileAgx( double* initInput, double* initOutput );
71 
76  AGXMEX_EXPORT int AGXMEX_setTimeStepAgx( double timeStep );
77 
78 
87  AGXMEX_EXPORT int AGXMEX_stepAgx(const double* input, double* output);
88 
89 
101 
104 
107 
110 
113 
120  AGXMEX_EXPORT const char* AGXMEX_getInitInputValueName(unsigned int valueNr);
121 
128  AGXMEX_EXPORT const char* AGXMEX_getInitOutputValueName(unsigned int valueNr);
129 
136  AGXMEX_EXPORT const char* AGXMEX_getStepInputValueName(unsigned int valueNr);
137 
144  AGXMEX_EXPORT const char* AGXMEX_getStepOutputValueName(unsigned int valueNr);
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif // AGXMEX_DLL_INTERFACE_H
AGXMEX_EXPORT int AGXMEX_getInitInputSize()
Returns the size of the init input array for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_setTimeStepAgx(double timeStep)
AGXMEX_EXPORT int AGXMEX_getStepInputSize()
Returns the size of the step input array for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_setUseCoSimulation(int flag)
Sets if the simulation should use remote debugging.
AGXMEX_EXPORT int AGXMEX_stepAgx(const double *input, double *output)
Step the "simulation".
AGXMEX_EXPORT int AGXMEX_initAgx(const char *debugFile, const char *agxFilePath, const char *agxPluginPath, const char *osgFilePath)
Initialize the "simulation", must be called prior to any of the other functions.
AGXMEX_EXPORT int AGXMEX_getInitOutputSize()
Returns the size of the init output array for AGXMEX_stepAgx.
AGXMEX_EXPORT const char * AGXMEX_getInitOutputValueName(unsigned int valueNr)
Returns the name of a specific init output value for AGXMEX_stepAgx.
AGXMEX_EXPORT const char * AGXMEX_getInitInputValueName(unsigned int valueNr)
Returns the name of a specific init input value for AGXMEX_stepAgx.
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_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 const char * AGXMEX_getLastErrorMessage()
Returns last error message. Empty if no error.
AGXMEX_EXPORT int AGXMEX_loadFileAgx(double *initInput, double *initOutput)
Loads the scene specified int a .agxLua file into to the simulation.
AGXMEX_EXPORT int AGXMEX_resetAgx()
Reset the "simulation".
AGXMEX_EXPORT const char * AGXMEX_getStepOutputValueName(unsigned int valueNr)
Returns the name of a specific step output value for AGXMEX_stepAgx.
AGXMEX_EXPORT int AGXMEX_getStepOutputSize()
Returns the size of the step output array for AGXMEX_stepAgx.
#define AGXMEX_EXPORT
Definition: agxMex/export.h:45