vvcomplex::InModelDivisionParam Class Reference

Class used to define the division parameters from within the model class. More...

#include <algorithms/complex.h>


Detailed Description

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Fri May 31 15:38:38 2013 for VVE by  doxygen 1.6.3