|
Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|
#include "TissueForge_private.h"#include "tf_util.h"#include "tfLogger.h"#include "rendering/tfGlInfo.h"#include "rendering/tfEglInfo.h"#include "rendering/tfUniverseRenderer.h"#include "rendering/tfArrowRenderer.h"
Go to the source code of this file.
Namespaces | |
| namespace | TissueForge |
| Include Python header, disable linking to pythonX_d.lib on Windows in debug mode. | |
Functions | |
| void | TissueForge::system::printPerformanceCounters () |
| HRESULT | TissueForge::system::LoggerCallbackImpl (LogEvent, std::ostream *) |
| std::tuple< char *size_t > | TissueForge::system::imageData () |
| HRESULT | TissueForge::system::screenshot (const std::string &filePath) |
| Save a screenshot of the current scene. | |
| HRESULT | TissueForge::system::screenshot (const std::string &filePath, const bool &decorate, const FVector3 &bgcolor) |
| Save a screenshot of the current scene. | |
| bool | TissueForge::system::contextHasCurrent () |
| HRESULT | TissueForge::system::contextMakeCurrent () |
| HRESULT | TissueForge::system::contextRelease () |
| bool | TissueForge::system::cameraIsLagging () |
| HRESULT | TissueForge::system::cameraEnableLagging () |
| HRESULT | TissueForge::system::cameraDisableLagging () |
| HRESULT | TissueForge::system::cameraToggleLagging () |
| float | TissueForge::system::cameraGetLagging () |
| HRESULT | TissueForge::system::cameraSetLagging (const float &lagging) |
| HRESULT | TissueForge::system::cameraMoveTo (const FVector3 &eye, const FVector3 ¢er, const FVector3 &up) |
| Set the camera view parameters. | |
| HRESULT | TissueForge::system::cameraMoveTo (const FVector3 ¢er, const FQuaternion &rotation, const float &zoom) |
| Set the camera view parameters. | |
| HRESULT | TissueForge::system::cameraViewBottom () |
| Move the camera to view the domain from the bottm. | |
| HRESULT | TissueForge::system::cameraViewTop () |
| Move the camera to view the domain from the top. | |
| HRESULT | TissueForge::system::cameraViewLeft () |
| Move the camera to view the domain from the left. | |
| HRESULT | TissueForge::system::cameraViewRight () |
| Move the camera to view the domain from the right. | |
| HRESULT | TissueForge::system::cameraViewBack () |
| Move the camera to view the domain from the back. | |
| HRESULT | TissueForge::system::cameraViewFront () |
| Move the camera to view the domain from the front. | |
| HRESULT | TissueForge::system::cameraReset () |
| Reset the camera. | |
| HRESULT | TissueForge::system::cameraRotateMouse (const iVector2 &mousePos) |
| HRESULT | TissueForge::system::cameraTranslateMouse (const iVector2 &mousePos) |
| HRESULT | TissueForge::system::cameraTranslateDown () |
| Translate the camera down. | |
| HRESULT | TissueForge::system::cameraTranslateUp () |
| Translate the camera up. | |
| HRESULT | TissueForge::system::cameraTranslateRight () |
| Translate the camera right. | |
| HRESULT | TissueForge::system::cameraTranslateLeft () |
| Translate the camera left. | |
| HRESULT | TissueForge::system::cameraTranslateForward () |
| Translate the camera forward. | |
| HRESULT | TissueForge::system::cameraTranslateBackward () |
| Translate the camera backward. | |
| HRESULT | TissueForge::system::cameraRotateDown () |
| Rotate the camera down. | |
| HRESULT | TissueForge::system::cameraRotateUp () |
| Rotate the camera up. | |
| HRESULT | TissueForge::system::cameraRotateLeft () |
| Rotate the camera left. | |
| HRESULT | TissueForge::system::cameraRotateRight () |
| Rotate the camera right. | |
| HRESULT | TissueForge::system::cameraRollLeft () |
| Roll the camera left. | |
| HRESULT | TissueForge::system::cameraRollRight () |
| Rotate the camera right. | |
| HRESULT | TissueForge::system::cameraZoomIn () |
| Zoom the camera in. | |
| HRESULT | TissueForge::system::cameraZoomOut () |
| Zoom the camera out. | |
| HRESULT | TissueForge::system::cameraInitMouse (const iVector2 &mousePos) |
| HRESULT | TissueForge::system::cameraTranslateBy (const FVector2 &trans) |
| HRESULT | TissueForge::system::cameraZoomBy (const float &delta) |
| Zoom the camera by an increment in distance. | |
| HRESULT | TissueForge::system::cameraZoomTo (const float &distance) |
| Zoom the camera to a distance. | |
| HRESULT | TissueForge::system::cameraRotateToAxis (const FVector3 &axis, const float &distance) |
| Rotate the camera to a point from the view center a distance along an axis. | |
| HRESULT | TissueForge::system::cameraRotateToEulerAngle (const FVector3 &angles) |
| Rotate the camera to a set of Euler angles. | |
| HRESULT | TissueForge::system::cameraRotateByEulerAngle (const FVector3 &angles) |
| Rotate the camera by a set of Euler angles. | |
| FVector3 | TissueForge::system::cameraCenter () |
| Get the current camera view center position. | |
| FQuaternion | TissueForge::system::cameraRotation () |
| Get the current camera rotation. | |
| float | TissueForge::system::cameraZoom () |
| Get the current camera zoom. | |
| struct rendering::UniverseRenderer * | TissueForge::system::getRenderer () |
| Get the universe renderer. | |
| const bool | TissueForge::system::getRendering3DBonds () |
| void | TissueForge::system::setRendering3DBonds (const bool &_flag) |
| void | TissueForge::system::toggleRendering3DBonds () |
| const bool | TissueForge::system::getRendering3DAngles () |
| void | TissueForge::system::setRendering3DAngles (const bool &_flag) |
| void | TissueForge::system::toggleRendering3DAngles () |
| const bool | TissueForge::system::getRendering3DDihedrals () |
| void | TissueForge::system::setRendering3DDihedrals (const bool &_flag) |
| void | TissueForge::system::toggleRendering3DDihedrals () |
| void | TissueForge::system::setRendering3DAll (const bool &_flag) |
| void | TissueForge::system::toggleRendering3DAll () |
| const FloatP_t | TissueForge::system::getLineWidth () |
| HRESULT | TissueForge::system::setLineWidth (const FloatP_t &lineWidth) |
| const FloatP_t | TissueForge::system::getLineWidthMin () |
| const FloatP_t | TissueForge::system::getLineWidthMax () |
| FVector3 | TissueForge::system::getAmbientColor () |
| Get the ambient color. | |
| HRESULT | TissueForge::system::setAmbientColor (const FVector3 &color) |
| Set the ambient color. | |
| HRESULT | TissueForge::system::setAmbientColor (const FVector3 &color, const unsigned int &srFlag) |
| Set the ambient color of a subrenderer. | |
| FVector3 | TissueForge::system::getDiffuseColor () |
| Get the diffuse color. | |
| HRESULT | TissueForge::system::setDiffuseColor (const FVector3 &color) |
| Set the diffuse color. | |
| HRESULT | TissueForge::system::setDiffuseColor (const FVector3 &color, const unsigned int &srFlag) |
| Set the diffuse color of a subrenderer. | |
| FVector3 | TissueForge::system::getSpecularColor () |
| Get specular color. | |
| HRESULT | TissueForge::system::setSpecularColor (const FVector3 &color) |
| Set the specular color. | |
| HRESULT | TissueForge::system::setSpecularColor (const FVector3 &color, const unsigned int &srFlag) |
| Set the specular color of a subrenderer. | |
| float | TissueForge::system::getShininess () |
| Get the shininess. | |
| HRESULT | TissueForge::system::setShininess (const float &shininess) |
| Set the shininess. | |
| HRESULT | TissueForge::system::setShininess (const float &shininess, const unsigned int &srFlag) |
| Set the shininess of a subrenderer. | |
| FVector3 | TissueForge::system::getGridColor () |
| Get the grid color. | |
| HRESULT | TissueForge::system::setGridColor (const FVector3 &color) |
| Set the grid color. | |
| FVector3 | TissueForge::system::getSceneBoxColor () |
| Get the scene box color. | |
| HRESULT | TissueForge::system::setSceneBoxColor (const FVector3 &color) |
| Set the scene box color. | |
| FVector3 | TissueForge::system::getLightDirection () |
| Get the light direction. | |
| HRESULT | TissueForge::system::setLightDirection (const FVector3 &lightDir) |
| Set the light direction. | |
| HRESULT | TissueForge::system::setLightDirection (const FVector3 &lightDir, const unsigned int &srFlag) |
| Set the light direction of a subrenderer. | |
| FVector3 | TissueForge::system::getLightColor () |
| Get the light color. | |
| HRESULT | TissueForge::system::setLightColor (const FVector3 &color) |
| Set the light color. | |
| HRESULT | TissueForge::system::setLightColor (const FVector3 &color, const unsigned int &srFlag) |
| Set the light color of a subrenderer. | |
| FVector3 | TissueForge::system::getBackgroundColor () |
| Get the background color. | |
| HRESULT | TissueForge::system::setBackgroundColor (const FVector3 &color) |
| Set the background color. | |
| bool | TissueForge::system::decorated () |
| Test whether the rendered scene is decorated. | |
| HRESULT | TissueForge::system::decorateScene (const bool &decorate) |
| Set flag to draw/not draw scene decorators (e.g., grid) | |
| bool | TissueForge::system::showingDiscretization () |
| Test whether discretization is current shown. | |
| HRESULT | TissueForge::system::showDiscretization (const bool &show) |
| Set flag to draw/not draw discretization. | |
| FVector3 | TissueForge::system::getDiscretizationColor () |
| Get the current color of the discretization grid. | |
| HRESULT | TissueForge::system::setDiscretizationColor (const FVector3 &color) |
| Set the color of the discretization grid. | |
| HRESULT | TissueForge::system::viewReshape (const iVector2 &windowSize) |
| std::string | TissueForge::system::performanceCounters () |
| std::unordered_map< std::string bool > | TissueForge::system::cpu_info () |
| Get CPU info. | |
| std::list< std::string > | TissueForge::system::compile_flags () |
| Get compiler flags of this installation. | |
| std::unordered_map< std::string std::string > | TissueForge::system::gl_info () |
| Get OpenGL info. | |
| std::string | TissueForge::system::egl_info () |
| Get EGL info. | |
| std::vector< std::string > | TissueForge::system::colorMapperNames () |
| Get all available color mapper names. | |
| int | TissueForge::system::addRenderArrow (rendering::ArrowData *arrow) |
| Adds a vector visualization specification. | |
| std::pair< int rendering::ArrowData * > | TissueForge::system::addRenderArrow (const FVector3 &position, const FVector3 &components, const rendering::Style &style, const float &scale=1.0) |
| Adds a vector visualization specification. | |
| HRESULT | TissueForge::system::removeRenderArrow (const int &arrowId) |
| Removes a vector visualization specification. | |
| rendering::ArrowData * | TissueForge::system::getRenderArrow (const int &arrowId) |
| Gets a vector visualization specification. | |
| std::pair< int rendering::ArrowData * > TissueForge::system::addRenderArrow | ( | const FVector3 & | position, |
| const FVector3 & | components, | ||
| const rendering::Style & | style, | ||
| const float & | scale = 1.0 ) |
Adds a vector visualization specification.
The passed pointer is borrowed. The client is responsible for maintaining the underlying data. The returned integer can be used to reference the arrow when doing subsequent operations with the renderer (e.g., removing an arrow from the scene).
| position | position of vector |
| components | components of vector |
| style | style of vector |
| scale | scale of vector; defaults to 1.0 |
| int TissueForge::system::addRenderArrow | ( | rendering::ArrowData * | arrow | ) |
Adds a vector visualization specification.
The passed pointer is borrowed. The client is responsible for maintaining the underlying data. The returned integer can be used to reference the arrow when doing subsequent operations with the renderer (e.g., removing an arrow from the scene).
| arrow | pointer to visualization specs |
| FVector3 TissueForge::system::cameraCenter | ( | ) |
Get the current camera view center position.
| HRESULT TissueForge::system::cameraDisableLagging | ( | ) |
Disable camera lagging
| HRESULT TissueForge::system::cameraEnableLagging | ( | ) |
Enable camera lagging
| float TissueForge::system::cameraGetLagging | ( | ) |
Get the camera lagging
| bool TissueForge::system::cameraIsLagging | ( | ) |
Test whether the camera is lagging
| HRESULT TissueForge::system::cameraMoveTo | ( | const FVector3 & | center, |
| const FQuaternion & | rotation, | ||
| const float & | zoom ) |
Set the camera view parameters.
| center | target camera view center position |
| rotation | target camera rotation |
| zoom | target camera zoom |
| HRESULT TissueForge::system::cameraMoveTo | ( | const FVector3 & | eye, |
| const FVector3 & | center, | ||
| const FVector3 & | up ) |
Set the camera view parameters.
| eye | camera eye |
| center | view center |
| up | view upward direction |
| HRESULT TissueForge::system::cameraReset | ( | ) |
Reset the camera.
| HRESULT TissueForge::system::cameraRollLeft | ( | ) |
Roll the camera left.
| HRESULT TissueForge::system::cameraRollRight | ( | ) |
Rotate the camera right.
Rotate the camera by a set of Euler angles.
Rotations are Z-Y-X.
| angles |
| HRESULT TissueForge::system::cameraRotateDown | ( | ) |
Rotate the camera down.
| HRESULT TissueForge::system::cameraRotateLeft | ( | ) |
Rotate the camera left.
| HRESULT TissueForge::system::cameraRotateRight | ( | ) |
Rotate the camera right.
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 |
Rotate the camera to a set of Euler angles.
Rotations are Z-Y-X.
| angles |
| HRESULT TissueForge::system::cameraRotateUp | ( | ) |
Rotate the camera up.
| FQuaternion TissueForge::system::cameraRotation | ( | ) |
Get the current camera rotation.
| HRESULT TissueForge::system::cameraSetLagging | ( | const float & | lagging | ) |
Set the camera lagging. Value must be in [0, 1)
| HRESULT TissueForge::system::cameraToggleLagging | ( | ) |
Toggle camera lagging
| HRESULT TissueForge::system::cameraTranslateBackward | ( | ) |
Translate the camera backward.
| HRESULT TissueForge::system::cameraTranslateDown | ( | ) |
Translate the camera down.
| HRESULT TissueForge::system::cameraTranslateForward | ( | ) |
Translate the camera forward.
| HRESULT TissueForge::system::cameraTranslateLeft | ( | ) |
Translate the camera left.
| HRESULT TissueForge::system::cameraTranslateRight | ( | ) |
Translate the camera right.
| HRESULT TissueForge::system::cameraTranslateUp | ( | ) |
Translate the camera up.
| HRESULT TissueForge::system::cameraViewBack | ( | ) |
Move the camera to view the domain from the back.
| HRESULT TissueForge::system::cameraViewBottom | ( | ) |
Move the camera to view the domain from the bottm.
| HRESULT TissueForge::system::cameraViewFront | ( | ) |
Move the camera to view the domain from the front.
| HRESULT TissueForge::system::cameraViewLeft | ( | ) |
Move the camera to view the domain from the left.
| HRESULT TissueForge::system::cameraViewRight | ( | ) |
Move the camera to view the domain from the right.
| HRESULT TissueForge::system::cameraViewTop | ( | ) |
Move the camera to view the domain from the top.
| float TissueForge::system::cameraZoom | ( | ) |
Get the current camera zoom.
| HRESULT TissueForge::system::cameraZoomBy | ( | const float & | delta | ) |
Zoom the camera by an increment in distance.
Positive values zoom in.
| delta | zoom increment |
| HRESULT TissueForge::system::cameraZoomIn | ( | ) |
Zoom the camera in.
| HRESULT TissueForge::system::cameraZoomOut | ( | ) |
Zoom the camera out.
| HRESULT TissueForge::system::cameraZoomTo | ( | const float & | distance | ) |
Zoom the camera to a distance.
| distance | zoom distance |
| std::list< std::string > TissueForge::system::compile_flags | ( | ) |
Get compiler flags of this installation.
| std::unordered_map< std::string bool > TissueForge::system::cpu_info | ( | ) |
Get CPU info.
| bool TissueForge::system::decorated | ( | ) |
Test whether the rendered scene is decorated.
| HRESULT TissueForge::system::decorateScene | ( | const bool & | decorate | ) |
Set flag to draw/not draw scene decorators (e.g., grid)
| decorate | flag; true says to decorate |
| std::string TissueForge::system::egl_info | ( | ) |
Get EGL info.
| FVector3 TissueForge::system::getAmbientColor | ( | ) |
Get the ambient color.
| FVector3 TissueForge::system::getBackgroundColor | ( | ) |
Get the background color.
| FVector3 TissueForge::system::getDiffuseColor | ( | ) |
Get the diffuse color.
| FVector3 TissueForge::system::getDiscretizationColor | ( | ) |
Get the current color of the discretization grid.
| FVector3 TissueForge::system::getGridColor | ( | ) |
Get the grid color.
| FVector3 TissueForge::system::getLightColor | ( | ) |
Get the light color.
| FVector3 TissueForge::system::getLightDirection | ( | ) |
Get the light direction.
| const FloatP_t TissueForge::system::getLineWidth | ( | ) |
Get the line width
| const FloatP_t TissueForge::system::getLineWidthMax | ( | ) |
Get the maximum line width
| const FloatP_t TissueForge::system::getLineWidthMin | ( | ) |
Get the minimum line width
| rendering::ArrowData * TissueForge::system::getRenderArrow | ( | const int & | arrowId | ) |
Gets a vector visualization specification.
| arrowId | id of arrow according to the renderer |
| struct rendering::UniverseRenderer * TissueForge::system::getRenderer | ( | ) |
Get the universe renderer.
| const bool TissueForge::system::getRendering3DAngles | ( | ) |
Get whether angles are renderered with 3D objects
| const bool TissueForge::system::getRendering3DBonds | ( | ) |
Get whether bonds are renderered with 3D objects
| const bool TissueForge::system::getRendering3DDihedrals | ( | ) |
Get whether dihedrals are renderered with 3D objects
| FVector3 TissueForge::system::getSceneBoxColor | ( | ) |
Get the scene box color.
| float TissueForge::system::getShininess | ( | ) |
Get the shininess.
| FVector3 TissueForge::system::getSpecularColor | ( | ) |
Get specular color.
| std::unordered_map< std::string std::string > TissueForge::system::gl_info | ( | ) |
Get OpenGL info.
| HRESULT TissueForge::system::removeRenderArrow | ( | const int & | arrowId | ) |
Removes a vector visualization specification.
The removed pointer is only forgotten. The client is responsible for clearing the underlying data.
| arrowId | id of arrow according to the renderer |
| HRESULT TissueForge::system::screenshot | ( | const std::string & | filePath | ) |
Save a screenshot of the current scene.
File formats currently supported are
| filePath | path of file to save |
| HRESULT TissueForge::system::screenshot | ( | const std::string & | filePath, |
| const bool & | decorate, | ||
| const FVector3 & | bgcolor ) |
Save a screenshot of the current scene.
File formats currently supported are
| filePath | path of file to save |
| decorate | flag to decorate the scene in the screenshot |
| bgcolor | background color of the scene in the screenshot |
Set the ambient color.
| color |
| HRESULT TissueForge::system::setAmbientColor | ( | const FVector3 & | color, |
| const unsigned int & | srFlag ) |
Set the ambient color of a subrenderer.
| color | |
| srFlag |
Set the background color.
| color |
Set the diffuse color.
| color |
| HRESULT TissueForge::system::setDiffuseColor | ( | const FVector3 & | color, |
| const unsigned int & | srFlag ) |
Set the diffuse color of a subrenderer.
| color | |
| srFlag |
Set the color of the discretization grid.
| color |
Set the grid color.
| color |
Set the light color.
| color |
Set the light color of a subrenderer.
| color | |
| srFlag |
Set the light direction.
| lightDir |
| HRESULT TissueForge::system::setLightDirection | ( | const FVector3 & | lightDir, |
| const unsigned int & | srFlag ) |
Set the light direction of a subrenderer.
| lightDir | |
| srFlag |
| HRESULT TissueForge::system::setLineWidth | ( | const FloatP_t & | lineWidth | ) |
Set the line width
| void TissueForge::system::setRendering3DAll | ( | const bool & | _flag | ) |
Set whether bonds, angle and dihedrals are renderered with 3D objects
| void TissueForge::system::setRendering3DAngles | ( | const bool & | _flag | ) |
Set whether angles are renderered with 3D objects
| void TissueForge::system::setRendering3DBonds | ( | const bool & | _flag | ) |
Set whether bonds are renderered with 3D objects
| void TissueForge::system::setRendering3DDihedrals | ( | const bool & | _flag | ) |
Set whether dihedrals are renderered with 3D objects
Set the scene box color.
| color |
| HRESULT TissueForge::system::setShininess | ( | const float & | shininess | ) |
Set the shininess.
| shininess |
| HRESULT TissueForge::system::setShininess | ( | const float & | shininess, |
| const unsigned int & | srFlag ) |
Set the shininess of a subrenderer.
| shininess | |
| srFlag |
Set the specular color.
| color |
| HRESULT TissueForge::system::setSpecularColor | ( | const FVector3 & | color, |
| const unsigned int & | srFlag ) |
Set the specular color of a subrenderer.
| color | |
| srFlag |
| HRESULT TissueForge::system::showDiscretization | ( | const bool & | show | ) |
Set flag to draw/not draw discretization.
| show | flag; true says to show |
| bool TissueForge::system::showingDiscretization | ( | ) |
Test whether discretization is current shown.
| void TissueForge::system::toggleRendering3DAll | ( | ) |
Toggle whether bonds, angle and dihedrals are renderered with 3D objects
| void TissueForge::system::toggleRendering3DAngles | ( | ) |
Toggle whether angles are renderered with 3D objects
| void TissueForge::system::toggleRendering3DBonds | ( | ) |
Toggle whether bonds are renderered with 3D objects
| void TissueForge::system::toggleRendering3DDihedrals | ( | ) |
Toggle whether dihedrals are renderered with 3D objects