|
CellModules
|
#include <springbody.hpp>
Public Types | |
| using | embedded_plugin_t = GenericConnectionBodyPlugin< Cell, SpringConnection > |
Public Member Functions | |
| SpringBody (Cell *c, Vector3D pos=Vector3D::zero()) | |
| void | setRadius (double r) |
| double | getRadius () |
| double | getBoundingBoxRadius () const |
| double | getStiffness () const |
| void | setStiffness (double k) |
| double | getMomentOfInertia () const |
| template<typename Integrator = Euler> | |
| void | updatePositionsAndOrientations (double dt) |
| std::tuple< Cell *, double > | getConnectedCellAndMembraneDistance (const Vec &d) const |
| Cell * | getConnectedCell (const Vec &d) const |
| double | getPreciseMembraneDistance (const Vec &d) const |
| void | moveTo (Vector3D newpos) |
| void | updateInternals (double) |
| EXPORTABLE (SpringBody, KV(radius), KV(position)) | |
| 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 () |
| Vec | getAngularVelocity () const |
| Vec | getTorque () const |
| Basis< Vec > | getOrientation () const |
| Rotation< Vec > | getOrientationRotation () const |
| void | setAngularVelocity (const Vec &v) |
| void | setTorque (const Vec &t) |
| void | setOrientationRotation (const Rotation< Vec > &r) |
| void | receiveTorque (const Vec &t) |
| void | updateCurrentOrientation () |
| void | resetTorque () |
| void | resetAngularVelocity () |
Public Attributes | |
| double | radius = Config::DEFAULT_CELL_RADIUS |
| double | stiffness = Config::DEFAULT_CELL_STIFFNESS |
| std::vector< SpringConnection< Cell > * > | cellConnections |
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 |
| Vec | angularVelocity = Vec::zero() |
| Vec | torque = Vec::zero() |
| Basis< Vec > | orientation |
| Rotation< Vec > | orientationRotation |
Private Attributes | |
| Cell * | cell = nullptr |
Friends | |
| struct | GenericConnectionBodyPlugin< Cell, SpringConnection > |
Definition at line 15 of file springbody.hpp.
| using MecaCell::SpringBody< Cell >::embedded_plugin_t = GenericConnectionBodyPlugin<Cell, SpringConnection> |
Definition at line 25 of file springbody.hpp.
|
inline |
Definition at line 26 of file springbody.hpp.
|
inlineinherited |
| MecaCell::SpringBody< Cell >::EXPORTABLE | ( | SpringBody< Cell > | , |
| KV(radius) | , | ||
| KV(position) | |||
| ) |
|
inlineinherited |
Definition at line 21 of file orientable.h.
|
inline |
Definition at line 29 of file springbody.hpp.
|
inline |
Definition at line 58 of file springbody.hpp.
|
inline |
Definition at line 38 of file springbody.hpp.
|
inlineinherited |
|
inline |
Definition at line 32 of file springbody.hpp.
Definition at line 23 of file orientable.h.
Definition at line 24 of file orientable.h.
|
inlineinherited |
|
inline |
Definition at line 63 of file springbody.hpp.
|
inlineinherited |
|
inline |
Definition at line 28 of file springbody.hpp.
|
inline |
Definition at line 30 of file springbody.hpp.
|
inlineinherited |
Definition at line 22 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 67 of file springbody.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 32 of file orientable.h.
|
inlineinherited |
Definition at line 35 of file orientable.h.
|
inlineinherited |
Definition at line 34 of file orientable.h.
|
inlineinherited |
Definition at line 25 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 27 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 27 of file springbody.hpp.
|
inline |
Definition at line 31 of file springbody.hpp.
|
inlineinherited |
Definition at line 26 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 33 of file orientable.h.
|
inline |
Definition at line 68 of file springbody.hpp.
|
inline |
Definition at line 33 of file springbody.hpp.
|
friend |
Definition at line 1 of file springbody.hpp.
Definition at line 7 of file orientable.h.
|
private |
Definition at line 18 of file springbody.hpp.
| std::vector<SpringConnection<Cell> *> MecaCell::SpringBody< Cell >::cellConnections |
Definition at line 24 of file springbody.hpp.
|
protectedinherited |
|
protectedinherited |
Definition at line 9 of file orientable.h.
Definition at line 10 of file orientable.h.
| double MecaCell::SpringBody< Cell >::radius = Config::DEFAULT_CELL_RADIUS |
Definition at line 21 of file springbody.hpp.
| double MecaCell::SpringBody< Cell >::stiffness = Config::DEFAULT_CELL_STIFFNESS |
Definition at line 22 of file springbody.hpp.
Definition at line 8 of file orientable.h.
|
protectedinherited |