#include <AbstractTissue.hpp>
Inherited by AbstractCellCentreBasedTissue< DIM >.
Classes | |
class | Iterator |
Public Member Functions | |
AbstractTissue (std::vector< TissueCell > &rCells, const std::vector< unsigned > locationIndices=std::vector< unsigned >()) | |
virtual | ~AbstractTissue () |
void | InitialiseCells () |
std::list< TissueCell > & | rGetCells () |
bool | HasMesh () |
virtual unsigned | GetNumNodes ()=0 |
virtual c_vector< double, DIM > | GetLocationOfCellCentre (TissueCell &rCell)=0 |
virtual Node< DIM > * | GetNode (unsigned index)=0 |
virtual unsigned | AddNode (Node< DIM > *pNewNode)=0 |
virtual void | SetNode (unsigned nodeIndex, ChastePoint< DIM > &rNewLocation)=0 |
virtual bool | IsCellAssociatedWithADeletedLocation (TissueCell &rCell)=0 |
virtual void | UpdateNodeLocations (const std::vector< c_vector< double, DIM > > &rNodeForces, double dt)=0 |
virtual double | GetDampingConstant (unsigned nodeIndex)=0 |
virtual TissueCell * | AddCell (TissueCell &rNewCell, const c_vector< double, DIM > &rCellDivisionVector, TissueCell *pParentCell=NULL)=0 |
virtual unsigned | RemoveDeadCells ()=0 |
virtual void | Update (bool hasHadBirthsOrDeaths=true)=0 |
std::vector< unsigned > | GetCellMutationStateCount () |
const std::vector< unsigned > & | rGetCellProliferativeTypeCount () const |
const std::vector< unsigned > & | rGetCellCyclePhaseCount () const |
unsigned | GetNumRealCells () |
void | SetCellAncestorsToLocationIndices () |
void | WriteCellIdDataToFile () |
std::set< unsigned > | GetCellAncestors () |
TissueCell & | rGetCellUsingLocationIndex (unsigned index) |
unsigned | GetLocationIndexUsingCell (TissueCell &rCell) |
boost::shared_ptr < CellMutationStateRegistry > | GetMutationRegistry () |
void | SetDefaultMutationStateOrdering () |
virtual void | CreateOutputFiles (const std::string &rDirectory, bool cleanOutputDirectory) |
virtual void | WriteResultsToFiles () |
void | WriteTimeAndNodeResultsToFiles () |
virtual void | GenerateCellResultsAndWriteToFiles ()=0 |
virtual void | GenerateCellResults (unsigned locationIndex, std::vector< unsigned > &rCellProliferativeTypeCounter, std::vector< unsigned > &rCellCyclePhaseCounter) |
void | WriteCellResultsToFiles (std::vector< unsigned > &rCellProliferativeTypeCounter, std::vector< unsigned > &rCellCyclePhaseCounter) |
virtual void | CloseOutputFiles () |
Iterator | Begin () |
Iterator | End () |
Protected Member Functions | |
virtual void | Validate ()=0 |
AbstractTissue () | |
Protected Attributes | |
std::list< TissueCell > | mCells |
std::map< unsigned, TissueCell * > | mLocationCellMap |
std::map< TissueCell *, unsigned > | mCellLocationMap |
std::vector< unsigned > | mCellProliferativeTypeCount |
std::vector< unsigned > | mCellCyclePhaseCount |
out_stream | mpVizNodesFile |
out_stream | mpVizCellProliferativeTypesFile |
out_stream | mpCellMutationStatesFile |
out_stream | mpCellAncestorsFile |
out_stream | mpCellProliferativeTypesFile |
out_stream | mpCellCyclePhasesFile |
out_stream | mpCellVariablesFile |
out_stream | mpCellAgesFile |
out_stream | mpCellIdFile |
out_stream | mpBoundaryNodesFile |
bool | mTissueContainsMesh |
boost::shared_ptr < CellMutationStateRegistry > | mpMutationStateRegistry |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
An abstract facade class encapsulating a tissue.
Contains a group of cells and associated methods.
Definition at line 61 of file AbstractTissue.hpp.
AbstractTissue< DIM >::AbstractTissue | ( | ) | [inline, protected] |
Constructor for use by archiving only. Please use the other constructor.
Doesn't take in cells, since these are dealt with by the serialize method.
Definition at line 149 of file AbstractTissue.hpp.
AbstractTissue< DIM >::AbstractTissue | ( | std::vector< TissueCell > & | rCells, | |
const std::vector< unsigned > | locationIndices = std::vector<unsigned>() | |||
) | [inline] |
AbstractTissue Constructor.
rCells | a vector of cells. Copies of the cells will be stored in the tissue, and the passed-in vector cleared. | |
locationIndices | an optional vector of location indices that correspond to real cells |
Definition at line 33 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::mCellCyclePhaseCount, AbstractTissue< DIM >::mCellLocationMap, AbstractTissue< DIM >::mCellProliferativeTypeCount, AbstractTissue< DIM >::mCells, and AbstractTissue< DIM >::mLocationCellMap.
virtual AbstractTissue< DIM >::~AbstractTissue | ( | ) | [inline, virtual] |
Base class with virtual methods needs a virtual destructor.
Definition at line 171 of file AbstractTissue.hpp.
virtual TissueCell* AbstractTissue< DIM >::AddCell | ( | TissueCell & | rNewCell, | |
const c_vector< double, DIM > & | rCellDivisionVector, | |||
TissueCell * | pParentCell = NULL | |||
) | [pure virtual] |
Add a new cell to the tissue.
As this method is pure virtual, it must be overridden in subclasses.
rNewCell | the cell to add | |
rCellDivisionVector | a vector providing information regarding how the cell division should occur (for cell-centre tissues, this vector is the position of the daughter cell; for vertex tissues it can be used by any subclass of TissueSimulation to as a means of dictating the axis along which the parent cell divides) | |
pParentCell | pointer to a parent cell (if required) |
Implemented in AbstractCellCentreBasedTissue< DIM >, MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, MeshBasedTissue< 1 >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.
virtual unsigned AbstractTissue< DIM >::AddNode | ( | Node< DIM > * | pNewNode | ) | [pure virtual] |
Add a new node to the tissue.
As this method is pure virtual, it must be overridden in subclasses.
pNewNode | pointer to the new node |
Implemented in MeshBasedTissue< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
Referenced by AbstractCellCentreBasedTissue< DIM >::AddCell().
AbstractTissue< DIM >::Iterator AbstractTissue< DIM >::Begin | ( | ) | [inline] |
Definition at line 625 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::mCells.
Referenced by AbstractTissue< DIM >::GetCellAncestors(), CryptStatistics::GetCryptSection(), AbstractTissue< DIM >::GetNumRealCells(), AbstractCryptStatistics::LabelAllCellsAsHealthy(), AbstractCryptStatistics::LabelSPhaseCells(), CryptSimulation2d::SetBottomCellAncestors(), AbstractTissue< DIM >::SetCellAncestorsToLocationIndices(), RandomCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), SloughingCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), MeshBasedTissue< DIM >::Update(), AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations(), NodeBasedTissue< DIM >::Validate(), MeshBasedTissueWithGhostNodes< DIM >::Validate(), MeshBasedTissue< DIM >::Validate(), MeshBasedTissue< DIM >::WriteCellAreaResultsToFile(), AbstractTissue< DIM >::WriteCellIdDataToFile(), MeshBasedTissue< DIM >::WriteTissueAreaResultsToFile(), and MeshBasedTissue< DIM >::WriteVoronoiResultsToFile().
void AbstractTissue< DIM >::CloseOutputFiles | ( | ) | [inline, virtual] |
Close any output files.
Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
Definition at line 268 of file AbstractTissue.cpp.
References TissueConfig::GetOutputCellAges(), TissueConfig::GetOutputCellAncestors(), TissueConfig::GetOutputCellCyclePhases(), TissueConfig::GetOutputCellIdData(), TissueConfig::GetOutputCellMutationStates(), TissueConfig::GetOutputCellProliferativeTypes(), TissueConfig::GetOutputCellVariables(), TissueConfig::Instance(), AbstractTissue< DIM >::mpBoundaryNodesFile, AbstractTissue< DIM >::mpCellAgesFile, AbstractTissue< DIM >::mpCellAncestorsFile, AbstractTissue< DIM >::mpCellCyclePhasesFile, AbstractTissue< DIM >::mpCellIdFile, AbstractTissue< DIM >::mpCellMutationStatesFile, AbstractTissue< DIM >::mpCellProliferativeTypesFile, AbstractTissue< DIM >::mpCellVariablesFile, AbstractTissue< DIM >::mpVizCellProliferativeTypesFile, and AbstractTissue< DIM >::mpVizNodesFile.
void AbstractTissue< DIM >::CreateOutputFiles | ( | const std::string & | rDirectory, | |
bool | cleanOutputDirectory | |||
) | [inline, virtual] |
Use an output file handler to create output files for visualizer and post-processing.
rDirectory | pathname of the output directory, relative to where Chaste output is stored | |
cleanOutputDirectory | whether to delete the contents of the output directory prior to output file creation |
Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
Definition at line 226 of file AbstractTissue.cpp.
References TissueConfig::GetOutputCellAges(), TissueConfig::GetOutputCellAncestors(), TissueConfig::GetOutputCellCyclePhases(), TissueConfig::GetOutputCellIdData(), TissueConfig::GetOutputCellMutationStates(), TissueConfig::GetOutputCellProliferativeTypes(), TissueConfig::GetOutputCellVariables(), TissueConfig::Instance(), AbstractTissue< DIM >::mpBoundaryNodesFile, AbstractTissue< DIM >::mpCellAgesFile, AbstractTissue< DIM >::mpCellAncestorsFile, AbstractTissue< DIM >::mpCellCyclePhasesFile, AbstractTissue< DIM >::mpCellIdFile, AbstractTissue< DIM >::mpCellMutationStatesFile, AbstractTissue< DIM >::mpCellProliferativeTypesFile, AbstractTissue< DIM >::mpCellVariablesFile, AbstractTissue< DIM >::mpVizCellProliferativeTypesFile, AbstractTissue< DIM >::mpVizNodesFile, and OutputFileHandler::OpenOutputFile().
AbstractTissue< DIM >::Iterator AbstractTissue< DIM >::End | ( | ) | [inline] |
Definition at line 631 of file AbstractTissue.hpp.
References AbstractTissue< DIM >::mCells.
Referenced by AbstractTissue< DIM >::GetCellAncestors(), CryptStatistics::GetCryptSection(), AbstractTissue< DIM >::GetNumRealCells(), AbstractCryptStatistics::LabelAllCellsAsHealthy(), AbstractCryptStatistics::LabelSPhaseCells(), CryptSimulation2d::SetBottomCellAncestors(), AbstractTissue< DIM >::SetCellAncestorsToLocationIndices(), RandomCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), SloughingCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), MeshBasedTissue< DIM >::Update(), AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations(), NodeBasedTissue< DIM >::Validate(), MeshBasedTissueWithGhostNodes< DIM >::Validate(), MeshBasedTissue< DIM >::Validate(), MeshBasedTissue< DIM >::WriteCellAreaResultsToFile(), AbstractTissue< DIM >::WriteCellIdDataToFile(), MeshBasedTissue< DIM >::WriteTissueAreaResultsToFile(), and MeshBasedTissue< DIM >::WriteVoronoiResultsToFile().
void AbstractTissue< DIM >::GenerateCellResults | ( | unsigned | locationIndex, | |
std::vector< unsigned > & | rCellProliferativeTypeCounter, | |||
std::vector< unsigned > & | rCellCyclePhaseCounter | |||
) | [inline, virtual] |
Generate results for a given cell in the current tissue state to output files.
locationIndex | location index of the cell | |
rCellProliferativeTypeCounter | cell type counter | |
rCellCyclePhaseCounter | cell cycle phase counter |
Reimplemented in AbstractCellCentreBasedTissue< DIM >.
Definition at line 308 of file AbstractTissue.cpp.
References TissueCell::GetAge(), TissueCell::GetAncestor(), TissueCell::GetCellCycleModel(), TissueCell::GetCellProliferativeType(), AbstractCellCycleModel::GetCurrentCellCyclePhase(), AbstractTissue< DIM >::GetLocationOfCellCentre(), TissueCell::GetMutationState(), TissueConfig::GetOutputCellAges(), TissueConfig::GetOutputCellAncestors(), TissueConfig::GetOutputCellCyclePhases(), TissueConfig::GetOutputCellMutationStates(), TissueConfig::GetOutputCellProliferativeTypes(), TissueConfig::GetOutputCellVariables(), TissueCell::HasApoptosisBegun(), TissueConfig::Instance(), AbstractTissue< DIM >::mLocationCellMap, AbstractTissue< DIM >::mpCellAgesFile, AbstractTissue< DIM >::mpCellAncestorsFile, AbstractTissue< DIM >::mpCellVariablesFile, and AbstractTissue< DIM >::mpVizCellProliferativeTypesFile.
virtual void AbstractTissue< DIM >::GenerateCellResultsAndWriteToFiles | ( | ) | [pure virtual] |
Calls GenerateCellResults() on each cell then calls WriteCellResultsToFiles().
Implemented in AbstractCellCentreBasedTissue< DIM >.
Referenced by AbstractTissue< DIM >::WriteResultsToFiles().
std::set< unsigned > AbstractTissue< DIM >::GetCellAncestors | ( | ) | [inline] |
Loops over cells and makes a list of the ancestors that are part of the tissue.
Definition at line 123 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::Begin(), and AbstractTissue< DIM >::End().
std::vector< unsigned > AbstractTissue< DIM >::GetCellMutationStateCount | ( | ) | [inline] |
Find out how many cells of each mutation state there are
Definition at line 134 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::GetMutationRegistry(), TissueConfig::Instance(), and AbstractTissue< DIM >::SetDefaultMutationStateOrdering().
virtual double AbstractTissue< DIM >::GetDampingConstant | ( | unsigned | nodeIndex | ) | [pure virtual] |
Get the damping constant for this node - ie d in drdt = F/d.
As this method is pure virtual, it must be overridden in subclasses.
nodeIndex | the global index of this node |
Implemented in AbstractCellCentreBasedTissue< DIM >, MeshBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
unsigned AbstractTissue< DIM >::GetLocationIndexUsingCell | ( | TissueCell & | rCell | ) | [inline] |
Get the location index corresponding to a given cell.
Currently assumes there is one cell for each location index, and they are ordered identically in their vectors. An assertion fails if not.
rCell | the cell |
Definition at line 193 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::mCellLocationMap.
Referenced by CryptSimulation2d::ApplyTissueBoundaryConditions(), CryptSimulation1d::ApplyTissueBoundaryConditions(), CryptSimulation2d::CalculateCellDivisionVector(), CryptSimulation1d::CalculateCellDivisionVector(), MeshBasedTissue< DIM >::Validate(), and CryptSimulation2d::WriteBetaCatenin().
virtual c_vector<double, DIM> AbstractTissue< DIM >::GetLocationOfCellCentre | ( | TissueCell & | rCell | ) | [pure virtual] |
Find where a given cell is in space.
rCell | the cell |
Implemented in AbstractCellCentreBasedTissue< DIM >.
Referenced by AbstractTissue< DIM >::GenerateCellResults(), SloughingCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), and AbstractTissue< DIM >::WriteCellIdDataToFile().
boost::shared_ptr< CellMutationStateRegistry > AbstractTissue< DIM >::GetMutationRegistry | ( | ) | [inline] |
Definition at line 199 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::mpMutationStateRegistry.
Referenced by AbstractTissue< DIM >::GetCellMutationStateCount(), AbstractTissue< DIM >::SetDefaultMutationStateOrdering(), and AbstractTissue< DIM >::WriteCellResultsToFiles().
virtual Node<DIM>* AbstractTissue< DIM >::GetNode | ( | unsigned | index | ) | [pure virtual] |
As this method is pure virtual, it must be overridden in subclasses.
index | global index of the specified node |
Implemented in MeshBasedTissue< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
Referenced by GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), AbstractCellCentreBasedTissue< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCellCentreBasedTissue< DIM >::GetNodeCorrespondingToCell(), AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations(), and AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles().
virtual unsigned AbstractTissue< DIM >::GetNumNodes | ( | ) | [pure virtual] |
As this method is pure virtual, it must be overridden in subclasses.
Implemented in MeshBasedTissue< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
Referenced by AbstractCellCentreBasedTissue< DIM >::AddCell(), AbstractCellCentreBasedTissue< DIM >::GenerateCellResultsAndWriteToFiles(), and AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles().
unsigned AbstractTissue< DIM >::GetNumRealCells | ( | ) | [inline] |
Get the number of real cells.
Definition at line 103 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::Begin(), and AbstractTissue< DIM >::End().
bool AbstractTissue< DIM >::HasMesh | ( | ) | [inline] |
Definition at line 97 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::mTissueContainsMesh.
Referenced by AbstractTwoBodyInteractionForce< DIM >::AddForceContribution(), GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
void AbstractTissue< DIM >::InitialiseCells | ( | ) | [inline] |
Initialise each cell's cell cycle model.
Definition at line 82 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::mCells.
virtual bool AbstractTissue< DIM >::IsCellAssociatedWithADeletedLocation | ( | TissueCell & | rCell | ) | [pure virtual] |
Helper method for establishing if a cell is real.
As this method is pure virtual, it must be overridden in subclasses.
rCell | the cell |
Implemented in AbstractCellCentreBasedTissue< DIM >.
Referenced by AbstractTissue< DIM >::Iterator::IsRealCell().
virtual unsigned AbstractTissue< DIM >::RemoveDeadCells | ( | ) | [pure virtual] |
Remove all cells labelled as dead.
As this method is pure virtual, it must be overridden in subclasses.
Implemented in MeshBasedTissue< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
const std::vector< unsigned > & AbstractTissue< DIM >::rGetCellCyclePhaseCount | ( | ) | const [inline] |
Find out how many cells in each cell cycle phase there are
Definition at line 166 of file AbstractTissue.cpp.
References TissueConfig::Instance(), and AbstractTissue< DIM >::mCellCyclePhaseCount.
const std::vector< unsigned > & AbstractTissue< DIM >::rGetCellProliferativeTypeCount | ( | ) | const [inline] |
Find out how many cells of each type there are
Definition at line 156 of file AbstractTissue.cpp.
References TissueConfig::Instance(), and AbstractTissue< DIM >::mCellProliferativeTypeCount.
std::list< TissueCell > & AbstractTissue< DIM >::rGetCells | ( | ) | [inline] |
Definition at line 91 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::mCells.
Referenced by AbstractTissue< DIM >::Iterator::IsAtEnd(), and AbstractTissue< DIM >::Iterator::Iterator().
TissueCell & AbstractTissue< DIM >::rGetCellUsingLocationIndex | ( | unsigned | index | ) | [inline] |
Get the cell corresponding to a given location index.
Currently assumes there is one cell for each location index, and they are ordered identically in their vectors. An assertion fails if not.
index | the location index |
Definition at line 176 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::mLocationCellMap.
Referenced by GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), MeshBasedTissue< DIM >::CheckTissueCellPointers(), AbstractCellCentreBasedTissue< DIM >::GetDampingConstant(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
void AbstractTissue< 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 in AbstractCellCentreBasedTissue< DIM >, MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.
Definition at line 73 of file AbstractTissue.hpp.
void AbstractTissue< DIM >::SetCellAncestorsToLocationIndices | ( | ) | [inline] |
Sets the Ancestor index of all the cells at this time to be the same as their location index, can be used to trace clonal populations.
Definition at line 114 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::Begin(), AbstractTissue< DIM >::End(), and AbstractTissue< DIM >::mCellLocationMap.
void AbstractTissue< DIM >::SetDefaultMutationStateOrdering | ( | ) | [inline] |
Set a default ordering on mutation states, so that existing tests don't need to specify the old ordering explicitly.
Definition at line 205 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::GetMutationRegistry().
Referenced by AbstractTissue< DIM >::GetCellMutationStateCount(), and AbstractTissue< DIM >::WriteCellResultsToFiles().
virtual void AbstractTissue< DIM >::SetNode | ( | unsigned | nodeIndex, | |
ChastePoint< DIM > & | rNewLocation | |||
) | [pure virtual] |
Move the node with a given index to a new point in space.
As this method is pure virtual, it must be overridden in subclasses.
nodeIndex | the index of the node to be moved | |
rNewLocation | the new target location of the node |
Implemented in MeshBasedTissue< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
Referenced by AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations().
virtual void AbstractTissue< DIM >::Update | ( | bool | hasHadBirthsOrDeaths = true |
) | [pure virtual] |
Remove the Nodes (for cell-centre) or VertexElements (for cell-vertex) which have been marked as deleted and update the correspondence with TissueCells.
hasHadBirthsOrDeaths | - a bool saying whether tissue has had Births Or Deaths |
Implemented in MeshBasedTissue< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
virtual void AbstractTissue< DIM >::UpdateNodeLocations | ( | const std::vector< c_vector< double, DIM > > & | rNodeForces, | |
double | dt | |||
) | [pure virtual] |
Update the location of each node in the tissue given a vector of forces on nodes and a time step over which to integrate the equations of motion.
As this method is pure virtual, it must be overridden in subclasses.
rNodeForces | forces on nodes | |
dt | time step |
Implemented in AbstractCellCentreBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, and MeshBasedTissueWithGhostNodes< 2 >.
virtual void AbstractTissue< DIM >::Validate | ( | ) | [protected, pure virtual] |
Check consistency of our internal data structures.
Implemented in MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.
void AbstractTissue< DIM >::WriteCellIdDataToFile | ( | ) | [inline] |
Write cell ID data to mpCellIdFile.
Definition at line 587 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::Begin(), AbstractTissue< DIM >::End(), AbstractTissue< DIM >::GetLocationOfCellCentre(), SimulationTime::GetTime(), SimulationTime::Instance(), AbstractTissue< DIM >::mCellLocationMap, and AbstractTissue< DIM >::mpCellIdFile.
Referenced by AbstractTissue< DIM >::WriteResultsToFiles().
void AbstractTissue< DIM >::WriteCellResultsToFiles | ( | std::vector< unsigned > & | rCellProliferativeTypeCounter, | |
std::vector< unsigned > & | rCellCyclePhaseCounter | |||
) | [inline] |
Write the current state of each cell to output files.
rCellProliferativeTypeCounter | cell type counter | |
rCellCyclePhaseCounter | cell cycle phase counter |
Definition at line 443 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::GetMutationRegistry(), TissueConfig::GetOutputCellAges(), TissueConfig::GetOutputCellAncestors(), TissueConfig::GetOutputCellCyclePhases(), TissueConfig::GetOutputCellMutationStates(), TissueConfig::GetOutputCellProliferativeTypes(), TissueConfig::GetOutputCellVariables(), TissueConfig::Instance(), AbstractTissue< DIM >::mCellCyclePhaseCount, AbstractTissue< DIM >::mCellProliferativeTypeCount, AbstractTissue< DIM >::mpCellAgesFile, AbstractTissue< DIM >::mpCellAncestorsFile, AbstractTissue< DIM >::mpCellCyclePhasesFile, AbstractTissue< DIM >::mpCellMutationStatesFile, AbstractTissue< DIM >::mpCellProliferativeTypesFile, AbstractTissue< DIM >::mpCellVariablesFile, AbstractTissue< DIM >::mpVizCellProliferativeTypesFile, and AbstractTissue< DIM >::SetDefaultMutationStateOrdering().
Referenced by AbstractCellCentreBasedTissue< DIM >::GenerateCellResultsAndWriteToFiles().
void AbstractTissue< DIM >::WriteResultsToFiles | ( | ) | [inline, virtual] |
Write results from the current tissue state to output files.
Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissue< 1 >, and MeshBasedTissue< 2 >.
Definition at line 541 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::GenerateCellResultsAndWriteToFiles(), TissueConfig::GetOutputCellAges(), TissueConfig::GetOutputCellAncestors(), TissueConfig::GetOutputCellCyclePhases(), TissueConfig::GetOutputCellIdData(), TissueConfig::GetOutputCellMutationStates(), TissueConfig::GetOutputCellProliferativeTypes(), TissueConfig::GetOutputCellVariables(), SimulationTime::GetTime(), SimulationTime::Instance(), TissueConfig::Instance(), AbstractTissue< DIM >::mpCellAgesFile, AbstractTissue< DIM >::mpCellAncestorsFile, AbstractTissue< DIM >::mpCellCyclePhasesFile, AbstractTissue< DIM >::mpCellMutationStatesFile, AbstractTissue< DIM >::mpCellProliferativeTypesFile, AbstractTissue< DIM >::mpCellVariablesFile, AbstractTissue< DIM >::mpVizCellProliferativeTypesFile, AbstractTissue< DIM >::WriteCellIdDataToFile(), and AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles().
void AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles | ( | ) | [inline] |
Write the current time and node results to output files.
Definition at line 507 of file AbstractTissue.cpp.
References AbstractTissue< DIM >::GetNode(), AbstractTissue< DIM >::GetNumNodes(), SimulationTime::GetTime(), SimulationTime::Instance(), AbstractTissue< DIM >::mLocationCellMap, AbstractTissue< DIM >::mpBoundaryNodesFile, and AbstractTissue< DIM >::mpVizNodesFile.
Referenced by AbstractTissue< DIM >::WriteResultsToFiles().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented in AbstractCellCentreBasedTissue< DIM >, MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 1 >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.
Definition at line 65 of file AbstractTissue.hpp.
std::vector<unsigned> AbstractTissue< DIM >::mCellCyclePhaseCount [protected] |
Current cell cycle phase counts
Definition at line 99 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::AbstractTissue(), AbstractCellCentreBasedTissue< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractTissue< DIM >::rGetCellCyclePhaseCount(), AbstractTissue< SPACE_DIM >::serialize(), and AbstractTissue< DIM >::WriteCellResultsToFiles().
std::map<TissueCell*, unsigned> AbstractTissue< DIM >::mCellLocationMap [protected] |
Map cells to location (node or VertexElement) indices
Definition at line 93 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::AbstractTissue(), MeshBasedTissueWithGhostNodes< DIM >::AddCell(), AbstractCellCentreBasedTissue< DIM >::AddCell(), MeshBasedTissue< DIM >::CheckTissueCellPointers(), AbstractTissue< DIM >::GetLocationIndexUsingCell(), AbstractCellCentreBasedTissue< DIM >::GetNodeCorrespondingToCell(), NodeBasedTissue< DIM >::RemoveDeadCells(), MeshBasedTissue< DIM >::RemoveDeadCells(), AbstractTissue< SPACE_DIM >::serialize(), AbstractTissue< DIM >::SetCellAncestorsToLocationIndices(), NodeBasedTissue< DIM >::Update(), MeshBasedTissue< DIM >::Update(), AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations(), NodeBasedTissue< DIM >::Validate(), MeshBasedTissueWithGhostNodes< DIM >::Validate(), MeshBasedTissue< DIM >::WriteCellAreaResultsToFile(), AbstractTissue< DIM >::WriteCellIdDataToFile(), MeshBasedTissue< DIM >::WriteTissueAreaResultsToFile(), and MeshBasedTissue< DIM >::WriteVoronoiResultsToFile().
std::vector<unsigned> AbstractTissue< DIM >::mCellProliferativeTypeCount [protected] |
Current cell type counts
Definition at line 96 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::AbstractTissue(), AbstractCellCentreBasedTissue< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractTissue< DIM >::rGetCellProliferativeTypeCount(), AbstractTissue< SPACE_DIM >::serialize(), and AbstractTissue< DIM >::WriteCellResultsToFiles().
std::list<TissueCell> AbstractTissue< DIM >::mCells [protected] |
List of cells
Definition at line 87 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::AbstractTissue(), AbstractCellCentreBasedTissue< DIM >::AddCell(), AbstractTissue< DIM >::Begin(), MeshBasedTissue< DIM >::CheckTissueCellPointers(), AbstractTissue< DIM >::End(), AbstractTissue< DIM >::InitialiseCells(), MeshBasedTissue< DIM >::MeshBasedTissue(), NodeBasedTissue< DIM >::RemoveDeadCells(), MeshBasedTissue< DIM >::RemoveDeadCells(), AbstractTissue< DIM >::rGetCells(), AbstractTissue< SPACE_DIM >::serialize(), and MeshBasedTissue< DIM >::Update().
std::map<unsigned, TissueCell*> AbstractTissue< DIM >::mLocationCellMap [protected] |
Map location (node or VertexElement) indices back to cells
Definition at line 90 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::AbstractTissue(), AbstractCellCentreBasedTissue< DIM >::AddCell(), AbstractTissue< DIM >::GenerateCellResults(), AbstractCellCentreBasedTissue< DIM >::GenerateCellResultsAndWriteToFiles(), MeshBasedTissue< DIM >::RemoveDeadCells(), AbstractTissue< DIM >::rGetCellUsingLocationIndex(), AbstractTissue< SPACE_DIM >::serialize(), NodeBasedTissue< DIM >::Update(), MeshBasedTissue< DIM >::Update(), MeshBasedTissue< DIM >::WriteResultsToFiles(), and AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles().
out_stream AbstractTissue< DIM >::mpBoundaryNodesFile [protected] |
Results file for boundary nodes.
Definition at line 129 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), and AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles().
out_stream AbstractTissue< DIM >::mpCellAgesFile [protected] |
Results file for cell ages
Definition at line 123 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), AbstractTissue< DIM >::GenerateCellResults(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteResultsToFiles().
out_stream AbstractTissue< DIM >::mpCellAncestorsFile [protected] |
Results file for cell ancestors
Definition at line 111 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), AbstractTissue< DIM >::GenerateCellResults(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteResultsToFiles().
out_stream AbstractTissue< DIM >::mpCellCyclePhasesFile [protected] |
Results file for cell cycle phases
Definition at line 117 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteResultsToFiles().
out_stream AbstractTissue< DIM >::mpCellIdFile [protected] |
Results file for logged cell data.
Definition at line 126 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), and AbstractTissue< DIM >::WriteCellIdDataToFile().
out_stream AbstractTissue< DIM >::mpCellMutationStatesFile [protected] |
Results file for cell mutation states
Definition at line 108 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteResultsToFiles().
out_stream AbstractTissue< DIM >::mpCellProliferativeTypesFile [protected] |
Results file for cell types
Definition at line 114 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteResultsToFiles().
out_stream AbstractTissue< DIM >::mpCellVariablesFile [protected] |
Results file for cell variables
Definition at line 120 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), AbstractTissue< DIM >::GenerateCellResults(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteResultsToFiles().
boost::shared_ptr<CellMutationStateRegistry> AbstractTissue< DIM >::mpMutationStateRegistry [protected] |
Cell mutation state registry
Definition at line 135 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::GetMutationRegistry(), and AbstractTissue< SPACE_DIM >::serialize().
out_stream AbstractTissue< DIM >::mpVizCellProliferativeTypesFile [protected] |
Results file for cell visualization
Definition at line 105 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), AbstractTissue< DIM >::GenerateCellResults(), AbstractCellCentreBasedTissue< DIM >::GenerateCellResults(), AbstractTissue< DIM >::WriteCellResultsToFiles(), and AbstractTissue< DIM >::WriteResultsToFiles().
out_stream AbstractTissue< DIM >::mpVizNodesFile [protected] |
Results file for node visualization
Definition at line 102 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::CloseOutputFiles(), AbstractTissue< DIM >::CreateOutputFiles(), and AbstractTissue< DIM >::WriteTimeAndNodeResultsToFiles().
bool AbstractTissue< DIM >::mTissueContainsMesh [protected] |
Whether the tissue contains a mesh
Definition at line 132 of file AbstractTissue.hpp.
Referenced by AbstractTissue< DIM >::HasMesh(), MeshBasedTissue< DIM >::MeshBasedTissue(), and AbstractTissue< SPACE_DIM >::serialize().