#include <AbstractCellCentreBasedTissue.hpp>
Public Member Functions | |
AbstractCellCentreBasedTissue (const std::vector< TissueCell > &rCells, const std::vector< unsigned > locationIndices=std::vector< unsigned >()) | |
AbstractCellCentreBasedTissue () | |
c_vector< double, DIM > | GetLocationOfCellCentre (TissueCell *pCell) |
Node< DIM > * | GetNodeCorrespondingToCell (TissueCell *pCell) |
TissueCell * | AddCell (TissueCell &rNewCell, c_vector< double, DIM > newLocation, TissueCell *pParentCell=NULL) |
bool | IsCellAssociatedWithADeletedNode (TissueCell &rCell) |
virtual void | UpdateNodeLocations (const std::vector< c_vector< double, DIM > > &rNodeForces, double dt) |
virtual double | GetDampingConstant (unsigned nodeIndex) |
virtual void | WriteResultsToFiles (bool outputCellMutationStates, bool outputCellTypes, bool outputCellVariables, bool outputCellCyclePhases, bool outputCellAncestors) |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Definition at line 38 of file AbstractCellCentreBasedTissue.hpp.
AbstractCellCentreBasedTissue< DIM >::AbstractCellCentreBasedTissue | ( | const std::vector< TissueCell > & | rCells, | |
const std::vector< unsigned > | locationIndices = std::vector<unsigned>() | |||
) | [inline] |
Default constructor.
rCells | a vector of cells | |
locationIndices | an optional vector of location indices that correspond to real cells |
Definition at line 33 of file AbstractCellCentreBasedTissue.cpp.
AbstractCellCentreBasedTissue< DIM >::AbstractCellCentreBasedTissue | ( | ) | [inline] |
Constructor for use by archiving - doesn't take in cells, since these are dealt with by the serialize method.
Definition at line 41 of file AbstractCellCentreBasedTissue.cpp.
void AbstractCellCentreBasedTissue< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the facade.
archive | ||
version |
Reimplemented from AbstractTissue< DIM >.
Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.
Definition at line 51 of file AbstractCellCentreBasedTissue.hpp.
c_vector< double, DIM > AbstractCellCentreBasedTissue< DIM >::GetLocationOfCellCentre | ( | TissueCell * | pCell | ) | [inline, virtual] |
Overridden GetLocationOfCellCentre() method. Find where a given cell is in space.
pCell | pointer to the cell |
Implements AbstractTissue< DIM >.
Definition at line 48 of file AbstractCellCentreBasedTissue.cpp.
References AbstractCellCentreBasedTissue< DIM >::GetNodeCorrespondingToCell().
Referenced by CryptSimulation2d::CalculateDividingCellCentreLocations(), CryptStatistics::GetCryptSection(), CryptSimulation2d::WriteBetaCatenin(), and MeshBasedTissue< DIM >::WriteVoronoiResultsToFile().
Node< DIM > * AbstractCellCentreBasedTissue< DIM >::GetNodeCorrespondingToCell | ( | TissueCell * | pCell | ) | [inline] |
Get a pointer to the node corresponding to a given cell.
pCell | pointer to the cell |
Definition at line 55 of file AbstractCellCentreBasedTissue.cpp.
References AbstractTissue< DIM >::GetNode(), and AbstractTissue< DIM >::mCellLocationMap.
Referenced by CryptSimulation2d::ApplyTissueBoundaryConditions(), AbstractCellCentreBasedTissue< DIM >::GetLocationOfCellCentre(), NodeBasedTissue< DIM >::RemoveDeadCells(), MeshBasedTissue< DIM >::SetBottomCellAncestors(), and MeshBasedTissue< DIM >::Update().
TissueCell * AbstractCellCentreBasedTissue< DIM >::AddCell | ( | TissueCell & | rNewCell, | |
c_vector< double, DIM > | newLocation, | |||
TissueCell * | pParentCell = NULL | |||
) | [inline, virtual] |
Add a new cell to the tissue.
rNewCell | the cell to add | |
newLocation | the position in space at which to put it | |
pParentCell | pointer to a parent cell (if required) |
Implements AbstractTissue< DIM >.
Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.
Definition at line 62 of file AbstractCellCentreBasedTissue.cpp.
References AbstractTissue< DIM >::AddNode(), AbstractTissue< DIM >::GetNumNodes(), AbstractTissue< DIM >::mCellLocationMap, AbstractTissue< DIM >::mCells, and AbstractTissue< DIM >::mLocationCellMap.
Referenced by MeshBasedTissue< DIM >::AddCell().
bool AbstractCellCentreBasedTissue< DIM >::IsCellAssociatedWithADeletedNode | ( | TissueCell & | rCell | ) | [inline, virtual] |
Overridden IsCellAssociatedWithADeletedNode() method.
rCell | the cell |
Implements AbstractTissue< DIM >.
Definition at line 81 of file AbstractCellCentreBasedTissue.cpp.
References AbstractTissue< DIM >::GetNode(), and AbstractTissue< DIM >::mCellLocationMap.
void AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations | ( | const std::vector< c_vector< double, DIM > > & | rNodeForces, | |
double | dt | |||
) | [inline, virtual] |
Overridden UpdateNodeLocations() method.
rNodeForces | a vector containing the force on each node in the tissue | |
dt | the time step |
Implements AbstractTissue< DIM >.
Reimplemented in MeshBasedTissueWithGhostNodes< DIM >, and MeshBasedTissueWithGhostNodes< 2 >.
Definition at line 88 of file AbstractCellCentreBasedTissue.cpp.
References AbstractTissue< DIM >::Begin(), AbstractTissue< DIM >::End(), AbstractCellCentreBasedTissue< DIM >::GetDampingConstant(), AbstractTissue< DIM >::GetNode(), AbstractTissue< DIM >::mCellLocationMap, and AbstractTissue< DIM >::SetNode().
Referenced by MeshBasedTissueWithGhostNodes< DIM >::UpdateNodeLocations().
double AbstractCellCentreBasedTissue< DIM >::GetDampingConstant | ( | unsigned | nodeIndex | ) | [inline, virtual] |
Overridden GetDampingConstant() method.
Get the damping constant for the cell associated with this node, i.e. d in drdt = F/d. This depends on whether using area-based viscosity has been switched on, and on whether the cell is a mutant or not.
nodeIndex | the global index of this node |
Implements AbstractTissue< DIM >.
Reimplemented in MeshBasedTissue< DIM >, and MeshBasedTissue< 2 >.
Definition at line 114 of file AbstractCellCentreBasedTissue.cpp.
References CancerParameters::GetDampingConstantMutant(), CancerParameters::GetDampingConstantNormal(), CancerParameters::Instance(), and AbstractTissue< DIM >::rGetCellUsingLocationIndex().
Referenced by MeshBasedTissue< DIM >::GetDampingConstant(), and AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations().
void AbstractCellCentreBasedTissue< DIM >::WriteResultsToFiles | ( | bool | outputCellMutationStates, | |
bool | outputCellTypes, | |||
bool | outputCellVariables, | |||
bool | outputCellCyclePhases, | |||
bool | outputCellAncestors | |||
) | [inline, virtual] |
Write results from the current tissue state to output files.
outputCellMutationStates | whether to output cell mutation state results | |
outputCellTypes | whether to output cell type results | |
outputCellVariables | whether to output cell-cycle variable results | |
outputCellCyclePhases | whether to output cell-cycle phase results | |
outputCellAncestors | whether to output cell ancestor results |
Implements AbstractTissue< DIM >.
Reimplemented in MeshBasedTissue< DIM >, and MeshBasedTissue< 2 >.
Definition at line 131 of file AbstractCellCentreBasedTissue.cpp.
References AbstractTissue< DIM >::GenerateCellResults(), AbstractTissue< DIM >::GetNode(), AbstractTissue< DIM >::GetNumNodes(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles().
Referenced by MeshBasedTissue< DIM >::WriteResultsToFiles().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractTissue< DIM >.
Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.
Definition at line 43 of file AbstractCellCentreBasedTissue.hpp.