|
Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|


Go to the source code of this file.
Data Structures | |
| struct | tfSimulatorEngineIntegratorHandle |
| struct | tfSimulatorConfigHandle |
| Handle to a Simulator::Config instance. More... | |
| struct | tfSimulatorHandle |
| Handle to a Simulator instance. More... | |
Functions | |
| HRESULT | tfSimulatorEngineIntegrator_init (struct tfSimulatorEngineIntegratorHandle *handle) |
| Populate engine integrator enums. | |
| HRESULT | tfSimulatorConfig_init (struct tfSimulatorConfigHandle *handle) |
| Initialize a new instance. | |
| HRESULT | tfSimulatorConfig_getTitle (struct tfSimulatorConfigHandle *handle, char **title, unsigned int *numChars) |
| Get the title of a configuration. | |
| HRESULT | tfSimulatorConfig_setTitle (struct tfSimulatorConfigHandle *handle, char *title) |
| Set the title of a configuration. | |
| HRESULT | tfSimulatorConfig_getWindowSize (struct tfSimulatorConfigHandle *handle, unsigned int *x, unsigned int *y) |
| Get the window size. | |
| HRESULT | tfSimulatorConfig_setWindowSize (struct tfSimulatorConfigHandle *handle, unsigned int x, unsigned int y) |
| Set the window size. | |
| HRESULT | tfSimulatorConfig_getSeed (struct tfSimulatorConfigHandle *handle, unsigned int *seed) |
| Get the random number generator seed. If none is set, returns NULL. | |
| HRESULT | tfSimulatorConfig_setSeed (struct tfSimulatorConfigHandle *handle, unsigned int seed) |
| Set the random number generator seed. | |
| HRESULT | tfSimulatorConfig_getWindowless (struct tfSimulatorConfigHandle *handle, bool *windowless) |
| Get the windowless flag. | |
| HRESULT | tfSimulatorConfig_setWindowless (struct tfSimulatorConfigHandle *handle, bool windowless) |
| Set the windowless flag. | |
| HRESULT | tfSimulatorConfig_getImportDataFilePath (struct tfSimulatorConfigHandle *handle, char **filePath, unsigned int *numChars) |
| Get the imported data file path during initialization, if any. | |
| HRESULT | tfSimulatorConfig_setImportDataFilePath (struct tfSimulatorConfigHandle *handle, char *filePath) |
| Set the imported data file path during initialization, if any. | |
| HRESULT | tfSimulatorConfig_getClipPlanes (struct tfSimulatorConfigHandle *handle, float **clipPlanes, unsigned int *numClipPlanes) |
| Get the current clip planes. | |
| HRESULT | tfSimulatorConfig_setClipPlanes (struct tfSimulatorConfigHandle *handle, float *clipPlanes, unsigned int numClipPlanes) |
| Set the clip planes. | |
| HRESULT | tfSimulatorConfig_getUniverseConfig (struct tfSimulatorConfigHandle *handle, struct tfUniverseConfigHandle *confHandle) |
| Get the universe configuration. | |
| HRESULT | tfSimulatorConfig_destroy (struct tfSimulatorConfigHandle *handle) |
| Destroy an instance. | |
| HRESULT | tfSimulator_init (char **argv, unsigned int nargs) |
| Main simulator init method. | |
| HRESULT | tfSimulator_initC (struct tfSimulatorConfigHandle *conf, char **appArgv, unsigned int nargs) |
| Main simulator init method. | |
| HRESULT | tfSimulator_get (struct tfSimulatorHandle *handle) |
| Gets the global simulator object. | |
| HRESULT | tfSimulator_makeCurrent (struct tfSimulatorHandle *handle) |
| Make the instance the global simulator object. | |
| HRESULT | tfSimulator_run (tfFloatP_t et) |
| Runs the event loop until all windows close or simulation time expires. Automatically performs universe time propogation. | |
| HRESULT | tfSimulator_show () |
| Shows any windows that were specified in the config. | |
| HRESULT | tfSimulator_close () |
| Closes the main window, while the application / simulation continues to run. | |
| HRESULT | tfSimulator_destroy () |
| Destroy the simulation. | |
| HRESULT | tfSimulator_redraw () |
| Issue call to rendering update. | |
| HRESULT | tfSimulator_getNumThreads (unsigned int *numThreads) |
| Get the number of threads. | |
| bool | tfIsTerminalInteractiveShell () |
| Test whether running interactively. | |
| HRESULT | tfSetIsTerminalInteractiveShell (bool _interactive) |
| Set whether running interactively. | |
| HRESULT tfSimulator_close | ( | ) |
Closes the main window, while the application / simulation continues to run.
| HRESULT tfSimulator_destroy | ( | ) |
Destroy the simulation.
| HRESULT tfSimulator_get | ( | struct tfSimulatorHandle * | handle | ) |
Gets the global simulator object.
| handle | handle |
| HRESULT tfSimulator_getNumThreads | ( | unsigned int * | numThreads | ) |
Get the number of threads.
| numThreads | number of threads |
| HRESULT tfSimulator_init | ( | char ** | argv, |
| unsigned int | nargs ) |
Main simulator init method.
| argv | initializer arguments |
| nargs | number of arguments |
| HRESULT tfSimulator_initC | ( | struct tfSimulatorConfigHandle * | conf, |
| char ** | appArgv, | ||
| unsigned int | nargs ) |
Main simulator init method.
| conf | configuration |
| appArgv | app arguments |
| nargs | number of app arguments |
| HRESULT tfSimulator_makeCurrent | ( | struct tfSimulatorHandle * | handle | ) |
Make the instance the global simulator object.
| handle | populated handle |
| HRESULT tfSimulator_redraw | ( | ) |
Issue call to rendering update.
| HRESULT tfSimulator_run | ( | tfFloatP_t | et | ) |
Runs the event loop until all windows close or simulation time expires. Automatically performs universe time propogation.
| et | period to execute, in units of simulation time; a negative number runs infinitely |
| HRESULT tfSimulator_show | ( | ) |
Shows any windows that were specified in the config.
Does not start the universe time propagation unlike tfSimulator_run().
| HRESULT tfSimulatorConfig_destroy | ( | struct tfSimulatorConfigHandle * | handle | ) |
Destroy an instance.
| handle | populated handle |
| HRESULT tfSimulatorConfig_getClipPlanes | ( | struct tfSimulatorConfigHandle * | handle, |
| float ** | clipPlanes, | ||
| unsigned int * | numClipPlanes ) |
Get the current clip planes.
| handle | populated handle |
| clipPlanes | clip planes |
| numClipPlanes | number of clip planes |
| HRESULT tfSimulatorConfig_getImportDataFilePath | ( | struct tfSimulatorConfigHandle * | handle, |
| char ** | filePath, | ||
| unsigned int * | numChars ) |
Get the imported data file path during initialization, if any.
| handle | populated handle |
| filePath | file path |
| numChars | number of characters |
| HRESULT tfSimulatorConfig_getSeed | ( | struct tfSimulatorConfigHandle * | handle, |
| unsigned int * | seed ) |
Get the random number generator seed. If none is set, returns NULL.
| handle | populated handle |
| seed | random number generator seed |
| HRESULT tfSimulatorConfig_getTitle | ( | struct tfSimulatorConfigHandle * | handle, |
| char ** | title, | ||
| unsigned int * | numChars ) |
Get the title of a configuration.
| handle | populated handle |
| title | title |
| numChars | number of characters |
| HRESULT tfSimulatorConfig_getUniverseConfig | ( | struct tfSimulatorConfigHandle * | handle, |
| struct tfUniverseConfigHandle * | confHandle ) |
Get the universe configuration.
| handle | populated handle |
| confHandle | handle to populate |
| HRESULT tfSimulatorConfig_getWindowless | ( | struct tfSimulatorConfigHandle * | handle, |
| bool * | windowless ) |
Get the windowless flag.
| handle | populated handle |
| windowless | windowless flag |
| HRESULT tfSimulatorConfig_getWindowSize | ( | struct tfSimulatorConfigHandle * | handle, |
| unsigned int * | x, | ||
| unsigned int * | y ) |
Get the window size.
| handle | populated handle |
| x | width |
| y | height |
| HRESULT tfSimulatorConfig_init | ( | struct tfSimulatorConfigHandle * | handle | ) |
Initialize a new instance.
| handle | handle to populate |
| HRESULT tfSimulatorConfig_setClipPlanes | ( | struct tfSimulatorConfigHandle * | handle, |
| float * | clipPlanes, | ||
| unsigned int | numClipPlanes ) |
Set the clip planes.
| handle | populated handle |
| clipPlanes | clip planes |
| numClipPlanes | number of clip planes |
| HRESULT tfSimulatorConfig_setImportDataFilePath | ( | struct tfSimulatorConfigHandle * | handle, |
| char * | filePath ) |
Set the imported data file path during initialization, if any.
| handle | populated handle |
| filePath | file path |
| HRESULT tfSimulatorConfig_setSeed | ( | struct tfSimulatorConfigHandle * | handle, |
| unsigned int | seed ) |
Set the random number generator seed.
| handle | populated handle |
| seed | random number generator seed |
| HRESULT tfSimulatorConfig_setTitle | ( | struct tfSimulatorConfigHandle * | handle, |
| char * | title ) |
Set the title of a configuration.
| handle | populated handle |
| title | title |
| HRESULT tfSimulatorConfig_setWindowless | ( | struct tfSimulatorConfigHandle * | handle, |
| bool | windowless ) |
Set the windowless flag.
| handle | populated handle |
| windowless | windowless flag |
| HRESULT tfSimulatorConfig_setWindowSize | ( | struct tfSimulatorConfigHandle * | handle, |
| unsigned int | x, | ||
| unsigned int | y ) |
Set the window size.
| handle | populated handle |
| x | width |
| y | height |
| HRESULT tfSimulatorEngineIntegrator_init | ( | struct tfSimulatorEngineIntegratorHandle * | handle | ) |
Populate engine integrator enums.
| handle | handle to populate |