|
Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|
Tissue Forge Python language support. More...
Classes | |
| struct | BoundaryConditionsArgsContainerPy |
| struct | CustomForcePy |
| struct | EventPy |
| struct | EventPyExecutor |
| struct | EventPyInvokePyExecutor |
| struct | EventPyPredicatePyExecutor |
| struct | KeyEventPyExecutor |
| struct | ParticleEventPy |
| struct | ParticleEventPyInvokePyExecutor |
| struct | ParticleEventPyPredicatePyExecutor |
| struct | ParticleEventSinglePy |
| struct | ParticleTimeEventPy |
| struct | ParticleTimeEventPyInvokePyExecutor |
| struct | ParticleTimeEventPyPredicatePyExecutor |
| struct | PotentialPy |
| struct | SimulatorPy |
| struct | TimeEventPy |
| struct | TimeEventPyInvokePyExecutor |
| struct | TimeEventPyPredicatePyExecutor |
Typedefs | |
| using | TimeEventPyList = event::EventListT<TimeEventPy> |
Functions | |
| HRESULT | particles (Potential *p, Particle *a, Particle *b) |
| Bind a potential to a pair of particles. | |
| HRESULT | types (Potential *p, ParticleType *a, ParticleType *b, bool bound=0) |
| Bind a potential to a pair of particle types. | |
| HRESULT | boundary_conditions (Potential *p, ParticleType *t) |
| Bind a potential to a pair of particle type and all boundary conditions. | |
| HRESULT | boundary_condition (Potential *p, BoundaryCondition *bc, ParticleType *t) |
| Bind a potential to a pair of particle type and a boundary conditions. | |
| HRESULT | force (Force *force, ParticleType *a_type) |
| Bind a force to a particle type. | |
| HRESULT | force (Force *force, ParticleType *a_type, const std::string &coupling_symbol) |
| Bind a force to a particle type with magnitude proportional to a species amount. | |
| std::vector< BondHandle > | _bondsPy (Potential *potential, ParticleList *particles, const FloatP_t &cutoff, std::vector< std::pair< ParticleType *, ParticleType * > * > *pairs=NULL, FloatP_t *half_life=NULL, FloatP_t *bond_energy=NULL, uint32_t flags=0) |
| Create bonds for a set of pairs of particles. | |
| std::vector< BondHandle > | _spherePy (ParticleList *particles, Potential *potential, const int &n, FVector3 *center=NULL, const FloatP_t &radius=1.0, FloatP_t *phi0=NULL, FloatP_t *phi1=NULL, ParticleType *type=NULL) |
| PyObject * | Import_ImportString (const std::string &name) |
| PyObject * | iPython_Get () |
| bool | terminalInteractiveShell () |
| bool | ZMQInteractiveShell () |
| template<typename T> | |
| bool | check (PyObject *o) |
| PyObject * | py_arg (const char *name, int index, PyObject *_args, PyObject *_kwargs) |
| std::string | repr (PyObject *o) |
| std::string | str (PyObject *o) |
| std::string | pyerror_str () |
| template<typename T> | |
| T | arg (const char *name, int index, PyObject *args, PyObject *kwargs) |
| template<typename T> | |
| T | arg (const char *name, int index, PyObject *args, PyObject *kwargs, T deflt) |
| void | print_performance_counters () |
| HRESULT | screenshot (const std::string &filePath) |
| Save a screenshot of the current scene. | |
| HRESULT | screenshot (const std::string &filePath, const bool &decorate, const FVector3 &bgcolor) |
| Save a screenshot of the current scene. | |
| bool | camera_is_lagging () |
| HRESULT | camera_enable_lagging () |
| HRESULT | camera_disable_lagging () |
| HRESULT | camera_toggle_lagging () |
| float | camera_get_lagging () |
| HRESULT | camera_set_lagging (const float &lagging) |
| bool | context_has_current () |
| HRESULT | context_make_current () |
| HRESULT | context_release () |
| HRESULT | camera_move_to (const FVector3 &eye, const FVector3 ¢er, const FVector3 &up) |
| Set the camera view parameters. | |
| HRESULT | camera_move_to (const FVector3 ¢er, const FQuaternion &rotation, const float &zoom) |
| Set the camera view parameters. | |
| HRESULT | camera_view_bottom () |
| Move the camera to view the domain from the bottm. | |
| HRESULT | camera_view_top () |
| Move the camera to view the domain from the top. | |
| HRESULT | camera_view_left () |
| Move the camera to view the domain from the left. | |
| HRESULT | camera_view_right () |
| Move the camera to view the domain from the right. | |
| HRESULT | camera_view_back () |
| Move the camera to view the domain from the back. | |
| HRESULT | camera_view_front () |
| Move the camera to view the domain from the front. | |
| HRESULT | camera_reset () |
| Reset the camera. | |
| HRESULT | camera_rotate_mouse (const iVector2 &mousePos) |
| HRESULT | camera_translate_mouse (const iVector2 &mousePos) |
| HRESULT | camera_translate_down () |
| Translate the camera down. | |
| HRESULT | camera_translate_up () |
| Translate the camera up. | |
| HRESULT | camera_translate_right () |
| Translate the camera right. | |
| HRESULT | camera_translate_left () |
| Translate the camera left. | |
| HRESULT | camera_translate_forward () |
| Translate the camera forward. | |
| HRESULT | camera_translate_backward () |
| Translate the camera backward. | |
| HRESULT | camera_rotate_down () |
| Rotate the camera down. | |
| HRESULT | camera_rotate_up () |
| Rotate the camera up. | |
| HRESULT | camera_rotate_left () |
| Rotate the camera left. | |
| HRESULT | camera_rotate_right () |
| Rotate the camera right. | |
| HRESULT | camera_roll_left () |
| Roll the camera left. | |
| HRESULT | camera_roll_right () |
| Rotate the camera right. | |
| HRESULT | camera_zoom_in () |
| Zoom the camera in. | |
| HRESULT | camera_zoom_out () |
| Zoom the camera out. | |
| HRESULT | camera_init_mouse (const iVector2 &mousePos) |
| HRESULT | camera_translate_by (const FVector2 &trans) |
| HRESULT | camera_zoom_by (const float &delta) |
| Zoom the camera by an increment in distance. | |
| HRESULT | camera_zoom_to (const float &distance) |
| Zoom the camera to a distance. | |
| HRESULT | camera_rotate_to_axis (const FVector3 &axis, const float &distance) |
| Rotate the camera to a point from the view center a distance along an axis. | |
| HRESULT | camera_rotate_to_euler_angle (const FVector3 &angles) |
| Rotate the camera to a set of Euler angles. | |
| HRESULT | camera_rotate_by_euler_angle (const FVector3 &angles) |
| Rotate the camera by a set of Euler angles. | |
| FVector3 | camera_center () |
| Get the current camera view center position. | |
| FQuaternion | camera_rotation () |
| Get the current camera rotation. | |
| float | camera_zoom () |
| Get the current camera zoom. | |
| struct rendering::UniverseRenderer * | get_renderer () |
| Get the universe renderer. | |
| const bool | get_rendering_3d_bonds () |
| void | set_rendering_3d_bonds (const bool &_flag) |
| void | toggle_rendering_3d_bonds () |
| const bool | get_rendering_3d_angles () |
| void | set_rendering_3d_angles (const bool &_flag) |
| void | toggle_rendering_3d_angles () |
| const bool | get_rendering_3d_dihedrals () |
| void | set_rendering_3d_dihedrals (const bool &_flag) |
| void | toggle_rendering_3d_dihedrals () |
| void | set_rendering_3d_all (const bool &_flag) |
| void | toggle_rendering_3d_all () |
| FloatP_t | get_line_width () |
| HRESULT | set_line_width (const FloatP_t &lineWidth) |
| FloatP_t | get_line_width_min () |
| FloatP_t | get_line_width_max () |
| FVector3 | get_ambient_color () |
| Get the ambient color. | |
| HRESULT | set_ambient_color (const FVector3 &color) |
| Set the ambient color. | |
| HRESULT | set_ambient_color (const FVector3 &color, const unsigned int &srFlag) |
| Set the ambient color of a subrenderer. | |
| FVector3 | get_diffuse_color () |
| Get the diffuse color. | |
| HRESULT | set_diffuse_color (const FVector3 &color) |
| Set the diffuse color. | |
| HRESULT | set_diffuse_color (const FVector3 &color, const unsigned int &srFlag) |
| Set the diffuse color of a subrenderer. | |
| FVector3 | get_specular_color () |
| Get specular color. | |
| HRESULT | set_specular_color (const FVector3 &color) |
| Set the specular color. | |
| HRESULT | set_specular_color (const FVector3 &color, const unsigned int &srFlag) |
| Set the specular color of a subrenderer. | |
| float | get_shininess () |
| Get the shininess. | |
| HRESULT | set_shininess (const float &shininess) |
| Set the shininess. | |
| HRESULT | set_shininess (const float &shininess, const unsigned int &srFlag) |
| Set the shininess of a subrenderer. | |
| FVector3 | get_grid_color () |
| Get the grid color. | |
| HRESULT | set_grid_color (const FVector3 &color) |
| Set the grid color. | |
| FVector3 | get_scene_box_color () |
| Get the scene box color. | |
| HRESULT | set_scene_box_color (const FVector3 &color) |
| Set the scene box color. | |
| FVector3 | get_light_direction () |
| Get the light direction. | |
| HRESULT | set_light_direction (const FVector3 &lightDir) |
| Set the light direction. | |
| HRESULT | set_light_direction (const FVector3 &lightDir, const unsigned int &srFlag) |
| Set the light direction of a subrenderer. | |
| FVector3 | get_light_color () |
| Get the light color. | |
| HRESULT | set_light_color (const FVector3 &color) |
| Set the light color. | |
| HRESULT | set_light_color (const FVector3 &color, const unsigned int &srFlag) |
| Set the light color of a subrenderer. | |
| FVector3 | get_background_color () |
| Get the background color. | |
| HRESULT | set_background_color (const FVector3 &color) |
| Set the background color. | |
| bool | decorated () |
| Test whether the rendered scene is decorated. | |
| HRESULT | decorate_scene (const bool &decorate) |
| Set flag to draw/not draw scene decorators (e.g., grid) | |
| bool | showing_discretization () |
| Test whether discretization is current shown. | |
| HRESULT | show_discretization (const bool &show) |
| Set flag to draw/not draw discretization. | |
| FVector3 | get_discretizationColor () |
| Get the current color of the discretization grid. | |
| HRESULT | set_discretizationColor (const FVector3 &color) |
| Set the color of the discretization grid. | |
| HRESULT | view_reshape (const iVector2 &windowSize) |
| std::string | performance_counters () |
| std::unordered_map< std::string bool > | cpu_info () |
| Get CPU info. | |
| std::unordered_map< std::string bool > | compile_flags () |
| Get compiler flags of this installation. | |
| std::unordered_map< std::string std::string > | gl_info () |
| Get OpenGL info. | |
| std::string | egl_info () |
| Get EGL info. | |
| PyObject * | image_data () |
| bool | is_terminal_interactive () |
| Test whether Tissue Forge is running in an interactive terminal. | |
| bool | is_jupyter_notebook () |
| Test whether Tissue Forge is running in a Jupyter notebook. | |
| PyObject * | jwidget_init (PyObject *args, PyObject *kwargs) |
| PyObject * | jwidget_run (PyObject *args, PyObject *kwargs) |
| std::vector< std::string > | color_mapper_names () |
| Get all available color mapper names. | |
| int | add_render_arrow (rendering::ArrowData *arrow) |
| Adds a vector visualization specification. | |
| std::pair< int rendering::ArrowData * > | add_render_arrow (const FVector3 &position, const FVector3 &components, const rendering::Style &style, const float &scale=1.0) |
| Adds a vector visualization specification. | |
| HRESULT | remove_render_arrow (const int &arrowId) |
| Removes a vector visualization specification. | |
| rendering::ArrowData * | get_render_arrow (const int &arrowId) |
| Gets a vector visualization specification. | |
| EventPy * | onEvent (EventPyInvokePyExecutor *invokeExecutor, EventPyPredicatePyExecutor *predicateExecutor=NULL) |
| Creates an event using prescribed invoke and predicate python function executors. | |
| ParticleEventPy * | onParticleEvent (ParticleType *targetType, ParticleEventPyInvokePyExecutor *invokeExecutor, ParticleEventPyPredicatePyExecutor *predicateExecutor, const std::string &selector="default") |
| Creates a particle event using prescribed invoke and predicate python function executors. | |
| ParticleEventSinglePy * | onParticleEventSingle (ParticleType *targetType, ParticleEventPyInvokePyExecutor *invokeExecutor, ParticleEventPyPredicatePyExecutor *predicateExecutor) |
| Creates a single particle event using prescribed invoke and predicate python function executors. | |
| ParticleTimeEventPy * | onParticleTimeEvent (ParticleType *targetType, const FloatP_t &period, ParticleTimeEventPyInvokePyExecutor *invokeExecutor, ParticleTimeEventPyPredicatePyExecutor *predicateExecutor=NULL, const std::string &distribution="default", const FloatP_t &start_time=0.0, const FloatP_t &end_time=-1.0, const std::string &selector="default") |
| Creates a time-dependent particle event using prescribed invoke and predicate python function executors. | |
| HRESULT | _setIPythonInputHook (PyObject *_ih) |
| HRESULT | _onIPythonNotReady () |
| PyObject * | SimulatorPy_init (PyObject *args, PyObject *kwargs) |
| Initialize a simulation in Python. | |
| TimeEventPy * | onTimeEvent (const FloatP_t &period, TimeEventPyInvokePyExecutor *invokeExecutor, TimeEventPyPredicatePyExecutor *predicateExecutor=NULL, const std::string &distribution="default", const FloatP_t &start_time=0, const FloatP_t &end_time=-1) |
| Creates a time-dependent event using prescribed invoke and predicate python function executors. | |
Tissue Forge Python language support.
| std::vector< BondHandle > TissueForge::py::_bondsPy | ( | Potential * | potential, |
| ParticleList * | particles, | ||
| const FloatP_t & | cutoff, | ||
| std::vector< std::pair< ParticleType *, ParticleType * > * > * | pairs = NULL, | ||
| FloatP_t * | half_life = NULL, | ||
| FloatP_t * | bond_energy = NULL, | ||
| uint32_t | flags = 0 ) |
| std::pair< int rendering::ArrowData * > TissueForge::py::add_render_arrow | ( | 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::py::add_render_arrow | ( | 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 |
| HRESULT TissueForge::py::boundary_condition | ( | Potential * | p, |
| BoundaryCondition * | bc, | ||
| ParticleType * | t ) |
Bind a potential to a pair of particle type and a boundary conditions.
Automatically updates when running on a CUDA device.
| p | The potential |
| bc | The boundary condition |
| t | The particle type |
| HRESULT TissueForge::py::boundary_conditions | ( | Potential * | p, |
| ParticleType * | t ) |
Bind a potential to a pair of particle type and all boundary conditions.
Automatically updates when running on a CUDA device.
| p | The potential |
| t | The particle type |
| FVector3 TissueForge::py::camera_center | ( | ) |
Get the current camera view center position.
| HRESULT TissueForge::py::camera_disable_lagging | ( | ) |
Disable camera lagging
| HRESULT TissueForge::py::camera_enable_lagging | ( | ) |
Enable camera lagging
| float TissueForge::py::camera_get_lagging | ( | ) |
Get the camera lagging
| bool TissueForge::py::camera_is_lagging | ( | ) |
Test whether the camera is lagging
| HRESULT TissueForge::py::camera_move_to | ( | 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::py::camera_move_to | ( | const FVector3 & | eye, |
| const FVector3 & | center, | ||
| const FVector3 & | up ) |
Set the camera view parameters.
| eye | camera eye |
| center | view center |
| up | view upward direction |
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 |
| FQuaternion TissueForge::py::camera_rotation | ( | ) |
Get the current camera rotation.
| HRESULT TissueForge::py::camera_set_lagging | ( | const float & | lagging | ) |
Set the camera lagging. Value must be in [0, 1)
| HRESULT TissueForge::py::camera_toggle_lagging | ( | ) |
Toggle camera lagging
| HRESULT TissueForge::py::camera_translate_backward | ( | ) |
Translate the camera backward.
| HRESULT TissueForge::py::camera_view_back | ( | ) |
Move the camera to view the domain from the back.
| HRESULT TissueForge::py::camera_view_bottom | ( | ) |
Move the camera to view the domain from the bottm.
| HRESULT TissueForge::py::camera_view_front | ( | ) |
Move the camera to view the domain from the front.
| HRESULT TissueForge::py::camera_view_left | ( | ) |
Move the camera to view the domain from the left.
| HRESULT TissueForge::py::camera_view_right | ( | ) |
Move the camera to view the domain from the right.
| HRESULT TissueForge::py::camera_view_top | ( | ) |
Move the camera to view the domain from the top.
| float TissueForge::py::camera_zoom | ( | ) |
Get the current camera zoom.
| HRESULT TissueForge::py::camera_zoom_by | ( | const float & | delta | ) |
Zoom the camera by an increment in distance.
Positive values zoom in.
| delta | zoom increment |
| HRESULT TissueForge::py::camera_zoom_to | ( | const float & | distance | ) |
| bool TissueForge::py::check | ( | PyObject * | o | ) |
check if type can be converted
| std::unordered_map< std::string bool > TissueForge::py::compile_flags | ( | ) |
Get compiler flags of this installation.
| std::unordered_map< std::string bool > TissueForge::py::cpu_info | ( | ) |
Get CPU info.
| HRESULT TissueForge::py::decorate_scene | ( | const bool & | decorate | ) |
Set flag to draw/not draw scene decorators (e.g., grid)
| decorate | flag; true says to decorate |
| bool TissueForge::py::decorated | ( | ) |
Test whether the rendered scene is decorated.
| std::string TissueForge::py::egl_info | ( | ) |
Get EGL info.
| HRESULT TissueForge::py::force | ( | Force * | force, |
| ParticleType * | a_type ) |
| HRESULT TissueForge::py::force | ( | Force * | force, |
| ParticleType * | a_type, | ||
| const std::string & | coupling_symbol ) |
Bind a force to a particle type with magnitude proportional to a species amount.
| force | The force |
| a_type | The particle type |
| coupling_symbol | The symbol of the species |
| FVector3 TissueForge::py::get_ambient_color | ( | ) |
Get the ambient color.
| FVector3 TissueForge::py::get_background_color | ( | ) |
Get the background color.
| FVector3 TissueForge::py::get_diffuse_color | ( | ) |
Get the diffuse color.
| FVector3 TissueForge::py::get_discretizationColor | ( | ) |
Get the current color of the discretization grid.
| FVector3 TissueForge::py::get_grid_color | ( | ) |
Get the grid color.
| FVector3 TissueForge::py::get_light_color | ( | ) |
Get the light color.
| FVector3 TissueForge::py::get_light_direction | ( | ) |
Get the light direction.
| FloatP_t TissueForge::py::get_line_width | ( | ) |
Get the line width
| FloatP_t TissueForge::py::get_line_width_max | ( | ) |
Get the maximum line width
| FloatP_t TissueForge::py::get_line_width_min | ( | ) |
Get the minimum line width
| rendering::ArrowData * TissueForge::py::get_render_arrow | ( | const int & | arrowId | ) |
Gets a vector visualization specification.
| arrowId | id of arrow according to the renderer |
| struct rendering::UniverseRenderer * TissueForge::py::get_renderer | ( | ) |
Get the universe renderer.
| const bool TissueForge::py::get_rendering_3d_angles | ( | ) |
Get whether angles are renderered with 3D objects
| const bool TissueForge::py::get_rendering_3d_bonds | ( | ) |
Get whether bonds are renderered with 3D objects
| const bool TissueForge::py::get_rendering_3d_dihedrals | ( | ) |
Get whether dihedrals are renderered with 3D objects
| FVector3 TissueForge::py::get_scene_box_color | ( | ) |
Get the scene box color.
| float TissueForge::py::get_shininess | ( | ) |
Get the shininess.
| FVector3 TissueForge::py::get_specular_color | ( | ) |
Get specular color.
| std::unordered_map< std::string std::string > TissueForge::py::gl_info | ( | ) |
Get OpenGL info.
| bool TissueForge::py::is_jupyter_notebook | ( | ) |
Test whether Tissue Forge is running in a Jupyter notebook.
| bool TissueForge::py::is_terminal_interactive | ( | ) |
Test whether Tissue Forge is running in an interactive terminal.
| EventPy * TissueForge::py::onEvent | ( | EventPyInvokePyExecutor * | invokeExecutor, |
| EventPyPredicatePyExecutor * | predicateExecutor = NULL ) |
Creates an event using prescribed invoke and predicate python function executors.
| invokeExecutor | an invoke python function executor; evaluated when an event occurs |
| predicateExecutor | a predicate python function executor; evaluated to determine if an event occurs |
| ParticleEventPy * TissueForge::py::onParticleEvent | ( | ParticleType * | targetType, |
| ParticleEventPyInvokePyExecutor * | invokeExecutor, | ||
| ParticleEventPyPredicatePyExecutor * | predicateExecutor, | ||
| const std::string & | selector = "default" ) |
Creates a particle event using prescribed invoke and predicate python function executors.
| targetType | target particle type |
| invokeExecutor | an invoke python function executor; evaluated when an event occurs |
| predicateExecutor | a predicate python function executor; evaluated to determine if an event occurs |
| selector | name of the function that selects the next particle |
| ParticleEventSinglePy * TissueForge::py::onParticleEventSingle | ( | ParticleType * | targetType, |
| ParticleEventPyInvokePyExecutor * | invokeExecutor, | ||
| ParticleEventPyPredicatePyExecutor * | predicateExecutor ) |
Creates a single particle event using prescribed invoke and predicate python function executors.
| targetType | target particle type |
| invokeExecutor | an invoke python function executor; evaluated when an event occurs |
| predicateExecutor | a predicate python function executor; evaluated to determine if an event occurs |
| ParticleTimeEventPy * TissueForge::py::onParticleTimeEvent | ( | ParticleType * | targetType, |
| const FloatP_t & | period, | ||
| ParticleTimeEventPyInvokePyExecutor * | invokeExecutor, | ||
| ParticleTimeEventPyPredicatePyExecutor * | predicateExecutor = NULL, | ||
| const std::string & | distribution = "default", | ||
| const FloatP_t & | start_time = 0.0, | ||
| const FloatP_t & | end_time = -1.0, | ||
| const std::string & | selector = "default" ) |
Creates a time-dependent particle event using prescribed invoke and predicate python function executors.
| targetType | target particle type |
| period | period of evaluations |
| invokeExecutor | an invoke python function executor; evaluated when an event occurs |
| predicateExecutor | a predicate python function executor; evaluated to determine if an event occurs |
| distribution | name of the function that sets the next evaulation time |
| start_time | time at which evaluations begin |
| end_time | time at which evaluations end |
| selector | name of the function that selects the next particle |
| TimeEventPy * TissueForge::py::onTimeEvent | ( | const FloatP_t & | period, |
| TimeEventPyInvokePyExecutor * | invokeExecutor, | ||
| TimeEventPyPredicatePyExecutor * | predicateExecutor = NULL, | ||
| const std::string & | distribution = "default", | ||
| const FloatP_t & | start_time = 0, | ||
| const FloatP_t & | end_time = -1 ) |
Creates a time-dependent event using prescribed invoke and predicate python function executors.
| period | period of evaluations |
| invokeExecutor | an invoke python function executor; evaluated when an event occurs |
| predicateExecutor | a predicate python function executor; evaluated to determine if an event occurs |
| distribution | name of the function that sets the next evaulation time |
| start_time | time at which evaluations begin |
| end_time | time at which evaluations end |
Bind a potential to a pair of particles.
| p | The potential |
| a | The first particle |
| b | The second particle |
| PyObject * TissueForge::py::py_arg | ( | const char * | name, |
| int | index, | ||
| PyObject * | _args, | ||
| PyObject * | _kwargs ) |
grab either the i'th arg from the args, or keywords.
gets a reference to the object, NULL if not exist.
| std::string TissueForge::py::pyerror_str | ( | ) |
get the python error string, empty string if no error.
| HRESULT TissueForge::py::remove_render_arrow | ( | 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 |
| std::string TissueForge::py::repr | ( | PyObject * | o | ) |
gets the repr / str representations of python objects
| HRESULT TissueForge::py::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::py::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 |
| HRESULT TissueForge::py::set_line_width | ( | const FloatP_t & | lineWidth | ) |
Set the line width
| void TissueForge::py::set_rendering_3d_all | ( | const bool & | _flag | ) |
Set whether bonds, angle and dihedrals are renderered with 3D objects
| void TissueForge::py::set_rendering_3d_angles | ( | const bool & | _flag | ) |
Set whether angles are renderered with 3D objects
| void TissueForge::py::set_rendering_3d_bonds | ( | const bool & | _flag | ) |
Set whether bonds are renderered with 3D objects
| void TissueForge::py::set_rendering_3d_dihedrals | ( | const bool & | _flag | ) |
Set whether dihedrals are renderered with 3D objects
| HRESULT TissueForge::py::set_shininess | ( | const float & | shininess | ) |
| HRESULT TissueForge::py::set_shininess | ( | const float & | shininess, |
| const unsigned int & | srFlag ) |
| HRESULT TissueForge::py::show_discretization | ( | const bool & | show | ) |
| bool TissueForge::py::showing_discretization | ( | ) |
Test whether discretization is current shown.
| PyObject * TissueForge::py::SimulatorPy_init | ( | PyObject * | args, |
| PyObject * | kwargs ) |
Initialize a simulation in Python.
| args | positional arguments; first argument is name of simulation (if any) |
| kwargs | keyword arguments; currently supported are dim: (3-component list of floats) the dimensions of the spatial domain; default is [10., 10., 10.] cutoff: (float) simulation cutoff distance; default is 1. cells: (3-component list of ints) the discretization of the spatial domain; default is [4, 4, 4] threads: (int) number of threads; default is hardware maximum integrator: (int) simulation integrator; default is FORWARD_EULER dt: (float) time discretization; default is 0.01 bc: (int or dict) boundary conditions; default is everywhere periodic window_size: (2-component list of ints) size of application window; default is [800, 600] seed: (int) seed for pseudo-random number generator load_file: (str) path to saved simulation state to initialize logger_level: (int) logger level; default is no logging clip_planes: (list of tuple of (Vector3f, Vector3f)) list of point-normal pairs of clip planes; default is no planes |
| void TissueForge::py::toggle_rendering_3d_all | ( | ) |
Toggle whether bonds, angle and dihedrals are renderered with 3D objects
| void TissueForge::py::toggle_rendering_3d_angles | ( | ) |
Toggle whether angles are renderered with 3D objects
| void TissueForge::py::toggle_rendering_3d_bonds | ( | ) |
Toggle whether bonds are renderered with 3D objects
| void TissueForge::py::toggle_rendering_3d_dihedrals | ( | ) |
Toggle whether dihedrals are renderered with 3D objects
| HRESULT TissueForge::py::types | ( | Potential * | p, |
| ParticleType * | a, | ||
| ParticleType * | b, | ||
| bool | bound = 0 ) |
Bind a potential to a pair of particle types.
Automatically updates when running on a CUDA device.
| p | The potential |
| a | The first type |
| b | The second type |
| bound | Flag signifying whether this potential exclusively operates on particles of different clusters, optional |