#include <RandomDirectionVertexBasedDivisionRule.hpp>
Inherits AbstractVertexBasedDivisionRule< SPACE_DIM >.
Public Member Functions | |
RandomDirectionVertexBasedDivisionRule () | |
virtual | ~RandomDirectionVertexBasedDivisionRule () |
virtual c_vector< double, SPACE_DIM > | CalculateCellDivisionVector (CellPtr pParentCell, VertexBasedCellPopulation< SPACE_DIM > &rCellPopulation) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
A class to generate a division vector of unit lengths that points in a random direction.
Definition at line 53 of file RandomDirectionVertexBasedDivisionRule.hpp.
RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::RandomDirectionVertexBasedDivisionRule | ( | ) | [inline] |
Default constructor.
Definition at line 73 of file RandomDirectionVertexBasedDivisionRule.hpp.
virtual RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::~RandomDirectionVertexBasedDivisionRule | ( | ) | [inline, virtual] |
Empty destructor.
Definition at line 80 of file RandomDirectionVertexBasedDivisionRule.hpp.
c_vector< double, SPACE_DIM > RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::CalculateCellDivisionVector | ( | CellPtr | pParentCell, | |
VertexBasedCellPopulation< SPACE_DIM > & | rCellPopulation | |||
) | [inline, virtual] |
Overridden CalculateCellDivisionVector() method.
Return a unit vector in a random direction, i.e the arguments are redundant for this division rule.
pParentCell | The cell to divide | |
rCellPopulation | The vertex-based cell population |
Implements AbstractVertexBasedDivisionRule< SPACE_DIM >.
Definition at line 39 of file RandomDirectionVertexBasedDivisionRule.cpp.
References RandomNumberGenerator::Instance(), and RandomNumberGenerator::ranf().
void RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object and its member variables.
archive | the archive | |
version | the current version of this class |
Reimplemented from AbstractVertexBasedDivisionRule< SPACE_DIM >.
Definition at line 64 of file RandomDirectionVertexBasedDivisionRule.hpp.