|
CellModules
|
Class for managing Delaunay triangulation and mass-spring-based physics. More...
#include <BodyDelaunayMassSpringDamper.hpp>
Public Member Functions | |
| BodyDelaunayMassSpringDamper (const MecaCell::Vector3D &pos=MecaCell::Vector3D::zero()) | |
| Constructor. More... | |
| double | getBoundingBoxRadius () const |
| Gets the bounding box radius. More... | |
| void | setRadius (double rad) |
| Sets the radius. More... | |
| double | getRadius () |
| Gets the radius. More... | |
| double | getBaseRadius () const |
| Gets the base radius. More... | |
| void | setBaseRadius (double _baseRadius) |
| Sets the base radius. More... | |
| void | growth (double delta) |
| Increases the radius so that the volume is multiplied by 1 + delta. More... | |
| void | setDensity (double d) |
| Sets the density. More... | |
| double | getAdhesion () const |
| Gets the adhesion coefficient. More... | |
| void | setAdhesion (double a) |
| Sets the adhesion coefficient. More... | |
| void | moveTo (const MecaCell::Vec &v) |
| Moves a cell to position v. More... | |
| bool | isMovementEnabled () |
| void | disableMovement () |
| void | enableMovement () |
| Vec | getPosition () const |
| Vec | getPrevposition () const |
| Vec | getVelocity () const |
| Vec | getForce () const |
| double | getMass () const |
| void | setPosition (const Vec &p) |
| void | setPrevposition (const Vec &p) |
| void | setVelocity (const Vec &v) |
| void | setForce (const Vec &f) |
| void | setMass (const double m) |
| void | receiveForce (const double &intensity, const Vec &direction, const bool &compressive) |
| void | receiveForce (const Vec &f) |
| void | resetVelocity () |
| void | resetForce () |
| void | setCellPlugin (plugin_t *_cellPlugin) |
| void | onCellPluginLinking () |
Protected Attributes | |
| Vec | position = Vec::zero() |
| Vec | prevposition = Vec::zero() |
| Vec | velocity = Vec::zero() |
| Vec | force = Vec::zero() |
| bool | movementEnabled = true |
| double | mass = Config::DEFAULT_CELL_MASS |
| double | totalForce = 0 |
| plugin_t * | cellPlugin |
Private Attributes | |
| double | baseRadius |
| double | radius |
| double | density |
| double | adhesion |
Class for managing Delaunay triangulation and mass-spring-based physics.
| cell_t | Type of the cell. |
| plugin_t | Type of the plugin. |
Definition at line 33 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineexplicit |
Constructor.
Initializes the radius to 10 µm and the density to the water density.
| pos | Initial position of the body. |
Definition at line 49 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineinherited |
|
inline |
Gets the adhesion coefficient.
Definition at line 121 of file BodyDelaunayMassSpringDamper.hpp.
|
inline |
Gets the base radius.
Definition at line 87 of file BodyDelaunayMassSpringDamper.hpp.
|
inline |
Gets the bounding box radius.
Definition at line 62 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inline |
Increases the radius so that the volume is multiplied by 1 + delta.
| delta | Volume augmentation ratio. |
Definition at line 101 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineinherited |
|
inline |
Moves a cell to position v.
| v | Position vector. |
Definition at line 133 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineinherited |
Definition at line 15 of file BaseBody.hpp.
|
inlineinherited |
|
inlineinherited |
|
inline |
Sets the adhesion coefficient.
| a | Adhesion coefficient. |
Definition at line 127 of file BodyDelaunayMassSpringDamper.hpp.
|
inline |
Sets the base radius.
| _baseRadius | Base radius. |
Definition at line 94 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineinherited |
Definition at line 14 of file BaseBody.hpp.
|
inline |
Sets the density.
Changes the mass knowing the current radius.
| d | Density. |
Definition at line 112 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Sets the radius.
Changes the mass knowing the current density.
| rad | Radius. |
Definition at line 71 of file BodyDelaunayMassSpringDamper.hpp.
|
inlineinherited |
|
private |
Adhesion coefficient
Definition at line 39 of file BodyDelaunayMassSpringDamper.hpp.
|
private |
Radius in µm
Definition at line 36 of file BodyDelaunayMassSpringDamper.hpp.
|
protectedinherited |
Definition at line 9 of file BaseBody.hpp.
|
private |
Density in ng/µm³
Definition at line 38 of file BodyDelaunayMassSpringDamper.hpp.
|
protectedinherited |
|
protectedinherited |
|
private |
Radius in µm
Definition at line 37 of file BodyDelaunayMassSpringDamper.hpp.
|
protectedinherited |