|
Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|
#include "tf_port_c.h"

Go to the source code of this file.
Functions | |
| HRESULT | tfSystem_imageData (char **imgData, size_t *imgSize) |
| Get the current image data. | |
| HRESULT | tfSystem_screenshot (const char *filePath) |
| Save a screenshot of the current scene. | |
| HRESULT | tfSystem_screenshotS (const char *filePath, bool decorate, float *bgcolor) |
| Save a screenshot of the current scene. | |
| HRESULT | tfSystem_contextHasCurrent (bool *current) |
| Test whether the context is current. | |
| HRESULT | tfSystem_contextMakeCurrent () |
| Make the context current. | |
| HRESULT | tfSystem_contextRelease () |
| Release the current context. | |
| bool | tfSystem_cameraIsLagging () |
| Test whether the camera is lagging. | |
| HRESULT | tfSystem_cameraEnableLagging () |
| Enable camera lagging. | |
| HRESULT | tfSystem_cameraDisableLagging () |
| Disable camera lagging. | |
| HRESULT | tfSystem_cameraToggleLagging () |
| Toggle camera lagging. | |
| float | tfSystem_cameraGetLagging () |
| Get the camera lagging. | |
| HRESULT | tfSystem_cameraSetLagging (float lagging) |
| Set the camera lagging. Value must be in [0, 1) | |
| HRESULT | tfSystem_cameraMoveTo (float *eye, float *center, float *up) |
| Set the camera view parameters. | |
| HRESULT | tfSystem_cameraMoveToR (float *center, float *rotation, float zoom) |
| Set the camera view parameters. | |
| HRESULT | tfSystem_cameraViewBottom () |
| Move the camera to view the domain from the bottm. | |
| HRESULT | tfSystem_cameraViewTop () |
| Move the camera to view the domain from the top. | |
| HRESULT | tfSystem_cameraViewLeft () |
| Move the camera to view the domain from the left. | |
| HRESULT | tfSystem_cameraViewRight () |
| Move the camera to view the domain from the right. | |
| HRESULT | tfSystem_cameraViewBack () |
| Move the camera to view the domain from the back. | |
| HRESULT | tfSystem_cameraViewFront () |
| Move the camera to view the domain from the front. | |
| HRESULT | tfSystem_cameraReset () |
| Reset the camera. | |
| HRESULT | tfSystem_cameraRotateMouse (int x, int y) |
| Rotate the camera from the previous (screen) mouse position to the current (screen) position. | |
| HRESULT | tfSystem_cameraTranslateMouse (int x, int y) |
| Translate the camera from the previous (screen) mouse position to the current (screen) mouse position. | |
| HRESULT | tfSystem_cameraTranslateDown () |
| Translate the camera down. | |
| HRESULT | tfSystem_cameraTranslateUp () |
| Translate the camera up. | |
| HRESULT | tfSystem_cameraTranslateRight () |
| Translate the camera right. | |
| HRESULT | tfSystem_cameraTranslateLeft () |
| Translate the camera left. | |
| HRESULT | tfSystem_cameraTranslateForward () |
| Translate the camera forward. | |
| HRESULT | tfSystem_cameraTranslateBackward () |
| Translate the camera backward. | |
| HRESULT | tfSystem_cameraRotateDown () |
| Rotate the camera down. | |
| HRESULT | tfSystem_cameraRotateUp () |
| Rotate the camera up. | |
| HRESULT | tfSystem_cameraRotateLeft () |
| Rotate the camera left. | |
| HRESULT | tfSystem_cameraRotateRight () |
| Rotate the camera right. | |
| HRESULT | tfSystem_cameraRollLeft () |
| Roll the camera left. | |
| HRESULT | tfSystem_cameraRollRight () |
| Rotate the camera right. | |
| HRESULT | tfSystem_cameraZoomIn () |
| Zoom the camera in. | |
| HRESULT | tfSystem_cameraZoomOut () |
| Zoom the camera out. | |
| HRESULT | tfSystem_cameraInitMouse (int x, int y) |
| Initialize the camera at a mouse position. | |
| HRESULT | tfSystem_cameraTranslateBy (float x, float y) |
| Translate the camera by the delta amount of (NDC) mouse position. | |
| HRESULT | tfSystem_cameraZoomBy (float delta) |
| Zoom the camera by an increment in distance. | |
| HRESULT | tfSystem_cameraZoomTo (float distance) |
| Zoom the camera to a distance. | |
| HRESULT | tfSystem_cameraRotateToAxis (float *axis, float distance) |
| Rotate the camera to a point from the view center a distance along an axis. | |
| HRESULT | tfSystem_cameraRotateToEulerAngle (float *angles) |
| Rotate the camera to a set of Euler angles. | |
| HRESULT | tfSystem_cameraRotateByEulerAngle (float *angles) |
| Rotate the camera by a set of Euler angles. | |
| HRESULT | tfSystem_cameraCenter (float **center) |
| Get the current camera view center position. | |
| HRESULT | tfSystem_cameraRotation (float **rotation) |
| Get the current camera rotation. | |
| HRESULT | tfSystem_cameraZoom (float *zoom) |
| Get the current camera zoom. | |
| HRESULT | tfSystem_getRendering3DBonds (bool *flag) |
| HRESULT | tfSystem_setRendering3DBonds (bool flag) |
| HRESULT | tfSystem_toggleRendering3DBonds () |
| HRESULT | tfSystem_getRendering3DAngles (bool *flag) |
| HRESULT | tfSystem_setRendering3DAngles (bool flag) |
| HRESULT | tfSystem_toggleRendering3DAngles () |
| HRESULT | tfSystem_getRendering3DDihedrals (bool *flag) |
| HRESULT | tfSystem_setRendering3DDihedrals (bool flag) |
| HRESULT | tfSystem_toggleRendering3DDihedrals () |
| HRESULT | tfSystem_setRendering3DAll (bool flag) |
| HRESULT | tfSystem_toggleRendering3DAll () |
| HRESULT | tfSystem_getLineWidth (tfFloatP_t *lineWidth) |
| HRESULT | tfSystem_setLineWidth (tfFloatP_t lineWidth) |
| HRESULT | tfSystem_getLineWidthMin (tfFloatP_t *lineWidth) |
| HRESULT | tfSystem_getLineWidthMax (tfFloatP_t *lineWidth) |
| HRESULT | tfSystem_getAmbientColor (float **color) |
| Get the ambient color. | |
| HRESULT | tfSystem_setAmbientColor (float *color) |
| Set the ambient color. | |
| HRESULT | tfSystem_getDiffuseColor (float **color) |
| Get the diffuse color. | |
| HRESULT | tfSystem_setDiffuseColor (float *color) |
| Set the diffuse color. | |
| HRESULT | tfSystem_getSpecularColor (float **color) |
| Get specular color. | |
| HRESULT | tfSystem_setSpecularColor (float *color) |
| Set the specular color. | |
| HRESULT | tfSystem_getShininess (float *shininess) |
| Get the shininess. | |
| HRESULT | tfSystem_setShininess (float shininess) |
| Set the shininess. | |
| HRESULT | tfSystem_getGridColor (float **color) |
| Get the grid color. | |
| HRESULT | tfSystem_setGridColor (float *color) |
| Set the grid color. | |
| HRESULT | tfSystem_getSceneBoxColor (float **color) |
| Get the scene box color. | |
| HRESULT | tfSystem_setSceneBoxColor (float *color) |
| Set the scene box color. | |
| HRESULT | tfSystem_getLightDirection (float **lightDir) |
| Get the light direction. | |
| HRESULT | tfSystem_setLightDirection (float *lightDir) |
| Set the light direction. | |
| HRESULT | tfSystem_getLightColor (float **color) |
| Get the light color. | |
| HRESULT | tfSystem_setLightColor (float *color) |
| Set the light color. | |
| HRESULT | tfSystem_getBackgroundColor (float **color) |
| Get the background color. | |
| HRESULT | tfSystem_setBackgroundColor (float *color) |
| Set the background color. | |
| HRESULT | tfSystem_decorated (bool *decorated) |
| Test whether the rendered scene is decorated. | |
| HRESULT | tfSystem_decorateScene (bool decorate) |
| Set flag to draw/not draw scene decorators (e.g., grid) | |
| HRESULT | tfSystem_showingDiscretization (bool *showing) |
| Test whether discretization is currently shown. | |
| HRESULT | tfSystem_showDiscretization (bool show) |
| Set flag to draw/not draw discretization. | |
| HRESULT | tfSystem_getDiscretizationColor (float **color) |
| Get the current color of the discretization grid. | |
| HRESULT | tfSystem_setDiscretizationColor (float *color) |
| Set the color of the discretization grid. | |
| HRESULT | tfSystem_viewReshape (int sizex, int sizey) |
| Update screen size after the window has been resized. | |
| HRESULT | tfSystem_getCPUInfo (char ***names, bool **flags, unsigned int *numNames) |
| Get CPU info. | |
| HRESULT | tfSystem_getCompileFlags (char ***flags, unsigned int *numFlags) |
| Get compiler flags of this installation. | |
| HRESULT | tfSystem_getGLInfo (char ***names, char ***values, unsigned int *numNames) |
| Get OpenGL info. | |
| HRESULT | tfSystem_getEGLInfo (char **info, unsigned int *numChars) |
| Get EGL info. | |
| HRESULT tfSystem_cameraCenter | ( | float ** | center | ) |
Get the current camera view center position.
| center | camera center |
| HRESULT tfSystem_cameraDisableLagging | ( | ) |
Disable camera lagging.
| HRESULT tfSystem_cameraEnableLagging | ( | ) |
Enable camera lagging.
| float tfSystem_cameraGetLagging | ( | ) |
Get the camera lagging.
| HRESULT tfSystem_cameraInitMouse | ( | int | x, |
| int | y ) |
Initialize the camera at a mouse position.
| x | horizontal coordinate |
| y | vertical coordinate |
| bool tfSystem_cameraIsLagging | ( | ) |
Test whether the camera is lagging.
| HRESULT tfSystem_cameraMoveTo | ( | float * | eye, |
| float * | center, | ||
| float * | up ) |
Set the camera view parameters.
| eye | camera eye |
| center | view center |
| up | view upward direction |
| HRESULT tfSystem_cameraMoveToR | ( | float * | center, |
| float * | rotation, | ||
| float | zoom ) |
Set the camera view parameters.
| center | target camera view center position |
| rotation | target camera rotation |
| zoom | target camera zoom |
| HRESULT tfSystem_cameraReset | ( | ) |
Reset the camera.
| HRESULT tfSystem_cameraRollLeft | ( | ) |
Roll the camera left.
| HRESULT tfSystem_cameraRollRight | ( | ) |
Rotate the camera right.
| HRESULT tfSystem_cameraRotateByEulerAngle | ( | float * | angles | ) |
Rotate the camera by a set of Euler angles.
Rotations are Z-Y-X.
| angles |
| HRESULT tfSystem_cameraRotateDown | ( | ) |
Rotate the camera down.
| HRESULT tfSystem_cameraRotateLeft | ( | ) |
Rotate the camera left.
| HRESULT tfSystem_cameraRotateMouse | ( | int | x, |
| int | y ) |
Rotate the camera from the previous (screen) mouse position to the current (screen) position.
| x | horizontal coordinate |
| y | vertical coordinate |
| HRESULT tfSystem_cameraRotateRight | ( | ) |
Rotate the camera right.
| HRESULT tfSystem_cameraRotateToAxis | ( | float * | axis, |
| float | distance ) |
Rotate the camera to a point from the view center a distance along an axis.
Only rotates the view to the given eye position.
| axis | axis from the view center |
| distance | distance along the axis |
| HRESULT tfSystem_cameraRotateToEulerAngle | ( | float * | angles | ) |
Rotate the camera to a set of Euler angles.
Rotations are Z-Y-X.
| angles |
| HRESULT tfSystem_cameraRotateUp | ( | ) |
Rotate the camera up.
| HRESULT tfSystem_cameraRotation | ( | float ** | rotation | ) |
Get the current camera rotation.
| rotation | camera rotation |
| HRESULT tfSystem_cameraSetLagging | ( | float | lagging | ) |
Set the camera lagging. Value must be in [0, 1)
| HRESULT tfSystem_cameraToggleLagging | ( | ) |
Toggle camera lagging.
| HRESULT tfSystem_cameraTranslateBackward | ( | ) |
Translate the camera backward.
| HRESULT tfSystem_cameraTranslateBy | ( | float | x, |
| float | y ) |
Translate the camera by the delta amount of (NDC) mouse position.
Note that NDC position must be in [-1, -1] to [1, 1].
| x | horizontal delta |
| y | vertical delta |
| HRESULT tfSystem_cameraTranslateDown | ( | ) |
Translate the camera down.
| HRESULT tfSystem_cameraTranslateForward | ( | ) |
Translate the camera forward.
| HRESULT tfSystem_cameraTranslateLeft | ( | ) |
Translate the camera left.
| HRESULT tfSystem_cameraTranslateMouse | ( | int | x, |
| int | y ) |
Translate the camera from the previous (screen) mouse position to the current (screen) mouse position.
| x | horizontal coordinate |
| y | vertical coordintae |
| HRESULT tfSystem_cameraTranslateRight | ( | ) |
Translate the camera right.
| HRESULT tfSystem_cameraTranslateUp | ( | ) |
Translate the camera up.
| HRESULT tfSystem_cameraViewBack | ( | ) |
Move the camera to view the domain from the back.
| HRESULT tfSystem_cameraViewBottom | ( | ) |
Move the camera to view the domain from the bottm.
| HRESULT tfSystem_cameraViewFront | ( | ) |
Move the camera to view the domain from the front.
| HRESULT tfSystem_cameraViewLeft | ( | ) |
Move the camera to view the domain from the left.
| HRESULT tfSystem_cameraViewRight | ( | ) |
Move the camera to view the domain from the right.
| HRESULT tfSystem_cameraViewTop | ( | ) |
Move the camera to view the domain from the top.
| HRESULT tfSystem_cameraZoom | ( | float * | zoom | ) |
Get the current camera zoom.
| zoom | camera zoom |
| HRESULT tfSystem_cameraZoomBy | ( | float | delta | ) |
Zoom the camera by an increment in distance.
Positive values zoom in.
| delta | zoom increment |
| HRESULT tfSystem_cameraZoomIn | ( | ) |
Zoom the camera in.
| HRESULT tfSystem_cameraZoomOut | ( | ) |
Zoom the camera out.
| HRESULT tfSystem_cameraZoomTo | ( | float | distance | ) |
Zoom the camera to a distance.
| distance | zoom distance |
| HRESULT tfSystem_contextHasCurrent | ( | bool * | current | ) |
Test whether the context is current.
| HRESULT tfSystem_contextMakeCurrent | ( | ) |
Make the context current.
| HRESULT tfSystem_contextRelease | ( | ) |
Release the current context.
| HRESULT tfSystem_decorated | ( | bool * | decorated | ) |
Test whether the rendered scene is decorated.
| decorated |
| HRESULT tfSystem_decorateScene | ( | bool | decorate | ) |
Set flag to draw/not draw scene decorators (e.g., grid)
| decorate | flag; true says to decorate |
| HRESULT tfSystem_getAmbientColor | ( | float ** | color | ) |
Get the ambient color.
| color |
| HRESULT tfSystem_getBackgroundColor | ( | float ** | color | ) |
Get the background color.
| color |
| HRESULT tfSystem_getCompileFlags | ( | char *** | flags, |
| unsigned int * | numFlags ) |
Get compiler flags of this installation.
| flags | compiler flags |
| numFlags | number of flags |
| HRESULT tfSystem_getCPUInfo | ( | char *** | names, |
| bool ** | flags, | ||
| unsigned int * | numNames ) |
Get CPU info.
| names | entry name |
| flags | entry flag |
| numNames | number of entries |
| HRESULT tfSystem_getDiffuseColor | ( | float ** | color | ) |
Get the diffuse color.
| color |
| HRESULT tfSystem_getDiscretizationColor | ( | float ** | color | ) |
Get the current color of the discretization grid.
| color |
| HRESULT tfSystem_getEGLInfo | ( | char ** | info, |
| unsigned int * | numChars ) |
Get EGL info.
| info | |
| numChars |
| HRESULT tfSystem_getGLInfo | ( | char *** | names, |
| char *** | values, | ||
| unsigned int * | numNames ) |
Get OpenGL info.
| names | |
| values | |
| numNames |
| HRESULT tfSystem_getGridColor | ( | float ** | color | ) |
Get the grid color.
| color |
| HRESULT tfSystem_getLightColor | ( | float ** | color | ) |
Get the light color.
| color |
| HRESULT tfSystem_getLightDirection | ( | float ** | lightDir | ) |
Get the light direction.
| lightDir |
| HRESULT tfSystem_getLineWidth | ( | tfFloatP_t * | lineWidth | ) |
Get the line width
| HRESULT tfSystem_getLineWidthMax | ( | tfFloatP_t * | lineWidth | ) |
Get the maximum line width
| HRESULT tfSystem_getLineWidthMin | ( | tfFloatP_t * | lineWidth | ) |
Get the minimum line width
| HRESULT tfSystem_getRendering3DAngles | ( | bool * | flag | ) |
Get whether angles are renderered with 3D objects
| HRESULT tfSystem_getRendering3DBonds | ( | bool * | flag | ) |
Get whether bonds are renderered with 3D objects
| HRESULT tfSystem_getRendering3DDihedrals | ( | bool * | flag | ) |
Get whether dihedrals are renderered with 3D objects
| HRESULT tfSystem_getSceneBoxColor | ( | float ** | color | ) |
Get the scene box color.
| color |
| HRESULT tfSystem_getShininess | ( | float * | shininess | ) |
Get the shininess.
| shininess |
| HRESULT tfSystem_getSpecularColor | ( | float ** | color | ) |
Get specular color.
| color |
| HRESULT tfSystem_imageData | ( | char ** | imgData, |
| size_t * | imgSize ) |
Get the current image data.
| imgData | image data |
| imgSize | image size |
| HRESULT tfSystem_screenshot | ( | const char * | filePath | ) |
Save a screenshot of the current scene.
| filePath | path of file to save |
| HRESULT tfSystem_screenshotS | ( | const char * | filePath, |
| bool | decorate, | ||
| float * | bgcolor ) |
Save a screenshot of the current scene.
| filePath | path of file to save |
| decorate | flag to decorate the scene in the screenshot |
| bgcolor | background color of the scene in the screenshot |
| HRESULT tfSystem_setAmbientColor | ( | float * | color | ) |
Set the ambient color.
| color |
| HRESULT tfSystem_setBackgroundColor | ( | float * | color | ) |
Set the background color.
| color |
| HRESULT tfSystem_setDiffuseColor | ( | float * | color | ) |
Set the diffuse color.
| color |
| HRESULT tfSystem_setDiscretizationColor | ( | float * | color | ) |
Set the color of the discretization grid.
| color |
| HRESULT tfSystem_setGridColor | ( | float * | color | ) |
Set the grid color.
| color |
| HRESULT tfSystem_setLightColor | ( | float * | color | ) |
Set the light color.
| color |
| HRESULT tfSystem_setLightDirection | ( | float * | lightDir | ) |
Set the light direction.
| lightDir |
| HRESULT tfSystem_setLineWidth | ( | tfFloatP_t | lineWidth | ) |
Set the line width
| HRESULT tfSystem_setRendering3DAll | ( | bool | flag | ) |
Set whether bonds, angle and dihedrals are renderered with 3D objects
| HRESULT tfSystem_setRendering3DAngles | ( | bool | flag | ) |
Set whether angles are renderered with 3D objects
| HRESULT tfSystem_setRendering3DBonds | ( | bool | flag | ) |
Set whether bonds are renderered with 3D objects
| HRESULT tfSystem_setRendering3DDihedrals | ( | bool | flag | ) |
Set whether dihedrals are renderered with 3D objects
| HRESULT tfSystem_setSceneBoxColor | ( | float * | color | ) |
Set the scene box color.
| color |
| HRESULT tfSystem_setShininess | ( | float | shininess | ) |
Set the shininess.
| shininess |
| HRESULT tfSystem_setSpecularColor | ( | float * | color | ) |
Set the specular color.
| color |
| HRESULT tfSystem_showDiscretization | ( | bool | show | ) |
Set flag to draw/not draw discretization.
| show | flag; true says to show |
| HRESULT tfSystem_showingDiscretization | ( | bool * | showing | ) |
Test whether discretization is currently shown.
| showing |
| HRESULT tfSystem_toggleRendering3DAll | ( | ) |
Toggle whether bonds, angle and dihedrals are renderered with 3D objects
| HRESULT tfSystem_toggleRendering3DAngles | ( | ) |
Toggle whether angles are renderered with 3D objects
| HRESULT tfSystem_toggleRendering3DBonds | ( | ) |
Toggle whether bonds are renderered with 3D objects
| HRESULT tfSystem_toggleRendering3DDihedrals | ( | ) |
Toggle whether dihedrals are renderered with 3D objects
| HRESULT tfSystem_viewReshape | ( | int | sizex, |
| int | sizey ) |
Update screen size after the window has been resized.
| sizex | horizontal size |
| sizey | vertical size |