CellProliferativePhasesWriter.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #include "CellProliferativePhasesWriter.hpp"
00037 #include "AbstractCellPopulation.hpp"
00038
00039 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00040 CellProliferativePhasesWriter<ELEMENT_DIM, SPACE_DIM>::CellProliferativePhasesWriter()
00041 : AbstractCellWriter<ELEMENT_DIM, SPACE_DIM>("results.vizcellphases")
00042 {
00043 this->mVtkCellDataName = "Cycle phases";
00044 }
00045
00046 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00047 double CellProliferativePhasesWriter<ELEMENT_DIM, SPACE_DIM>::GetCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation<ELEMENT_DIM, SPACE_DIM>* pCellPopulation)
00048 {
00049 double phase = pCell->GetCellCycleModel()->GetCurrentCellCyclePhase();
00050 return phase;
00051 }
00052
00053 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00054 void CellProliferativePhasesWriter<ELEMENT_DIM, SPACE_DIM>::VisitCell(CellPtr pCell, AbstractCellPopulation<ELEMENT_DIM, SPACE_DIM>* pCellPopulation)
00055 {
00056 double phase = pCell->GetCellCycleModel()->GetCurrentCellCyclePhase();
00057 *this->mpOutStream << phase << " ";
00058 }
00059
00060
00061 template class CellProliferativePhasesWriter<1,1>;
00062 template class CellProliferativePhasesWriter<1,2>;
00063 template class CellProliferativePhasesWriter<2,2>;
00064 template class CellProliferativePhasesWriter<1,3>;
00065 template class CellProliferativePhasesWriter<2,3>;
00066 template class CellProliferativePhasesWriter<3,3>;
00067
00068 #include "SerializationExportWrapperForCpp.hpp"
00069
00070 EXPORT_TEMPLATE_CLASS_ALL_DIMS(CellProliferativePhasesWriter)