|
CellModules
|
Class for managing spheroid bodies. More...
#include <PluginSpheroidManager.hpp>
Public Member Functions | |
| PluginSpheroidManager ()=default | |
| Default constructor. More... | |
| PluginSpheroidManager (double r) | |
| Constructor with mean radius. More... | |
| MecaCell::Vec | getCentroid () const |
| Gets the centroid. More... | |
| double | getSpheroidRadius () const |
| Gets the spheroid radius. More... | |
| void | setMeanRadius (double r) |
| Sets the mean radius. More... | |
| void | updateSpheroid (std::vector< cell_t * > cells) |
| Computes everything for the spheroid. More... | |
| template<typename world_t > | |
| void | initSpheroid (world_t *w) |
| Init function to be called on scenario init. More... | |
| template<typename world_t > | |
| void | preBehaviorUpdate (world_t *w) |
| Pre-behavior update hook for MecaCell. More... | |
Private Types | |
| typedef std::vector< double > | Data |
Private Member Functions | |
| void | updateDistanceFromCentroid (std::vector< cell_t * > cells) |
| Updates the distance from centroid for each cell. More... | |
| double | getOptimalRadius (const Data &data, double max) |
| Computes the optimal radius. More... | |
| MecaCell::Vec | computeCentroid (std::vector< cell_t * > cells) |
| Computes the centroid position. More... | |
Static Private Member Functions | |
| static double | Kernel (const double x) |
| Gaussian probability density function. More... | |
Private Attributes | |
| MecaCell::Vec | centroid |
| double | optimRad = 0.0 |
| double | meanRadius |
Class for managing spheroid bodies.
| cell_t | Type of the cell. |
Definition at line 55 of file PluginSpheroidManager.hpp.
|
private |
Definition at line 56 of file PluginSpheroidManager.hpp.
|
inlinedefault |
Default constructor.
|
inline |
Constructor with mean radius.
| r | Mean radius in µm. |
Definition at line 176 of file PluginSpheroidManager.hpp.
|
inlineprivate |
Computes the centroid position.
| cells | Vector of cell pointers. |
Definition at line 158 of file PluginSpheroidManager.hpp.
|
inline |
Gets the centroid.
Definition at line 182 of file PluginSpheroidManager.hpp.
|
inlineprivate |
Computes the optimal radius.
| data | Vector of distances from centroids of each cell. |
| max | Maximal distance from centroid. |
Definition at line 132 of file PluginSpheroidManager.hpp.
|
inline |
Gets the spheroid radius.
Definition at line 188 of file PluginSpheroidManager.hpp.
|
inline |
Init function to be called on scenario init.
Computes the spheroid information on the cells to be added.
| world_t | Type of the world. |
| w | Pointer to the world. |
Definition at line 220 of file PluginSpheroidManager.hpp.
|
inlinestaticprivate |
Gaussian probability density function.
µ = 0 and sigma = 1
| x | Input value. |
Definition at line 71 of file PluginSpheroidManager.hpp.
|
inline |
Pre-behavior update hook for MecaCell.
Computes the spheroid information.
| world_t | Type of the world. |
| w | Pointer to the world. |
Definition at line 233 of file PluginSpheroidManager.hpp.
|
inline |
Sets the mean radius.
| r | Mean radius. |
Definition at line 194 of file PluginSpheroidManager.hpp.
|
inlineprivate |
Updates the distance from centroid for each cell.
| cells | Vector of cell pointers. |
Definition at line 78 of file PluginSpheroidManager.hpp.
|
inline |
Computes everything for the spheroid.
Updates centroid position and spheroid radius.
| cells | Vector of cell pointers. |
Definition at line 204 of file PluginSpheroidManager.hpp.
|
private |
Center of gravity
Definition at line 59 of file PluginSpheroidManager.hpp.
|
private |
Mean radius of the cells in µm
Definition at line 61 of file PluginSpheroidManager.hpp.
|
private |
Radius of the spheroid
Definition at line 60 of file PluginSpheroidManager.hpp.