Class used to define the division parameters from within the model class. More...
#include <algorithms/complex.h>
Class used to define the division parameters from within the model class.
Use this class parameters when dividing a cell and the following method will be used in your model:
DivisionData<VertexContent> divisionParameters(const vertex& c, vvgraph& S, const vvcomplex::InModelDivisionParam& param);
A typical use will be to inherit this class to put parameters:
struct MyDivisionParams : public vvcomplex::InModelDivisionParam { int divisionType; }
And use this to divide according to the parameters:
vvcomplex::DivisionData<VertexContent> divisionParameters(const vertex& c, vvgraph& S, const vvcomplex::InModelDivisionParam& p) { DivisionData<VertexContent> result; MyDivisionParams& param = dynamic_cast<const InModelDivisionParam&>(p); if(param.divisionType == 0) { // First type of division } else { // Other type of division } return result; }
Definition at line 1726 of file complex.h.