CellModules
|
#include <genericconnectionplugin.hpp>
Public Member Functions | |
void | setNewConnectionCallback (std::function< void(GenericConnection< Cell > *)> f) |
Sets a callback function to be called at each connection creation. Can be used to override the default connection parameters. More... | |
template<typename W > | |
void | preBehaviorUpdate (W *w) |
template<typename W > | |
void | endUpdate (W *w) |
void | createConnection (const ordered_pair< Cell * > &cells) |
create and register a contact surface connection between twoe cells More... | |
void | disconnect (const ordered_pair< Cell * > &cells, GenericConnection< Cell > *conn) |
Disconnect two cells. More... | |
void | deleteImpossibleConnections () |
template<typename W > | |
void | checkForCellCellConnections (W &world) |
we check for any cell cell collision or adhesion More... | |
template<typename W > | |
void | updateCellCellConnections (W &) |
updates (compute forces) the connections and delete the resolved ones (when cells are not in contact anymore) More... | |
template<typename W > | |
void | preDeleteDeadCellsUpdate (W *w) |
Public Attributes | |
const size_t | MIN_CHUNK_SIZE = 5 |
const size_t | AVG_TASKS_PER_THREAD = 3 |
ordered_hash_map< ordered_pair< Cell * >, std::unique_ptr< GenericConnection< Cell > > > | connections |
std::mutex | connectionMutex |
connections. The ordered_hash_map is to enforce determinism. More... | |
bool | collisionCheck = true |
std::function< void(GenericConnection< Cell > *)> | newConnectionCallback |
Definition at line 19 of file genericconnectionplugin.hpp.
|
inline |
we check for any cell cell collision or adhesion
W | world type |
world | world instance |
Definition at line 132 of file genericconnectionplugin.hpp.
|
inline |
create and register a contact surface connection between twoe cells
cells | the cells that are in contact |
Definition at line 98 of file genericconnectionplugin.hpp.
|
inline |
Definition at line 122 of file genericconnectionplugin.hpp.
|
inline |
Disconnect two cells.
cells | the pair of cell to disconnect |
conn | the connection ptr |
Definition at line 114 of file genericconnectionplugin.hpp.
|
inline |
Definition at line 57 of file genericconnectionplugin.hpp.
|
inline |
Definition at line 51 of file genericconnectionplugin.hpp.
|
inline |
Definition at line 223 of file genericconnectionplugin.hpp.
|
inline |
Sets a callback function to be called at each connection creation. Can be used to override the default connection parameters.
f | a function taking a pointer to the newly created GenericConnection. Void return type. |
Definition at line 44 of file genericconnectionplugin.hpp.
|
inline |
updates (compute forces) the connections and delete the resolved ones (when cells are not in contact anymore)
the | world |
W | world type |
Definition at line 206 of file genericconnectionplugin.hpp.
const size_t MecaCell::GenericConnectionBodyPlugin< Cell, GenericConnection >::AVG_TASKS_PER_THREAD = 3 |
Definition at line 21 of file genericconnectionplugin.hpp.
bool MecaCell::GenericConnectionBodyPlugin< Cell, GenericConnection >::collisionCheck = true |
Definition at line 31 of file genericconnectionplugin.hpp.
std::mutex MecaCell::GenericConnectionBodyPlugin< Cell, GenericConnection >::connectionMutex |
connections. The ordered_hash_map is to enforce determinism.
where we keep track of all the
Definition at line 29 of file genericconnectionplugin.hpp.
ordered_hash_map<ordered_pair<Cell *>, std::unique_ptr<GenericConnection<Cell> > > MecaCell::GenericConnectionBodyPlugin< Cell, GenericConnection >::connections |
Definition at line 26 of file genericconnectionplugin.hpp.
const size_t MecaCell::GenericConnectionBodyPlugin< Cell, GenericConnection >::MIN_CHUNK_SIZE = 5 |
Definition at line 20 of file genericconnectionplugin.hpp.
std::function<void(GenericConnection<Cell> *)> MecaCell::GenericConnectionBodyPlugin< Cell, GenericConnection >::newConnectionCallback |
Definition at line 34 of file genericconnectionplugin.hpp.