AGX Dynamics  2.37.2.0
agxMexDLLInterface.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
36  AGXMEX_EXPORT int AGXMEX_initAgx( const char* debugFile, const char* agxFilePath, const char* agxPluginPath, const char* osgFilePath );
37 
40 
45 
55  AGXMEX_EXPORT int AGXMEX_preloadFileAgx( const char* file, int* initInputSize, int* initOutputSize,
56  int* stepInputSize, int* stepOutputSize );
57 
66  AGXMEX_EXPORT int AGXMEX_loadFileAgx( double* initInput, double* initOutput );
67 
72  AGXMEX_EXPORT int AGXMEX_setTimeStepAgx( double timeStep );
73 
74 
83  AGXMEX_EXPORT int AGXMEX_stepAgx(const double* input, double* output);
84 
85 
97 
100 
103 
106 
109 
116  AGXMEX_EXPORT const char* AGXMEX_getInitInputValueName(unsigned int valueNr);
117 
124  AGXMEX_EXPORT const char* AGXMEX_getInitOutputValueName(unsigned int valueNr);
125 
132  AGXMEX_EXPORT const char* AGXMEX_getStepInputValueName(unsigned int valueNr);
133 
140  AGXMEX_EXPORT const char* AGXMEX_getStepOutputValueName(unsigned int valueNr);
141 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #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 .agxPy 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 "simulation", 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 .agxPy file into to the simulation.
#define AGXMEX_EXPORT
Definition: agxMex/export.h:42
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 "simulation".
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_resetAgx()
Reset the "simulation".
AGXMEX_EXPORT int AGXMEX_getStepInputSize()
Returns the size of the step input array 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 int AGXMEX_getInitOutputSize()
Returns the size of the init output array for AGXMEX_stepAgx.