CellBetaCateninWriter.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 "CellBetaCateninWriter.hpp"
00037 #include "AbstractCellPopulation.hpp"
00038
00039 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00040 CellBetaCateninWriter<ELEMENT_DIM, SPACE_DIM>::CellBetaCateninWriter()
00041 : AbstractCellWriter<ELEMENT_DIM, SPACE_DIM>("results.vizbetacatenin")
00042 {
00043 this->mVtkCellDataName = "Beta catenin";
00044 }
00045
00046 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00047 double CellBetaCateninWriter<ELEMENT_DIM, SPACE_DIM>::GetCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation<ELEMENT_DIM, SPACE_DIM>* pCellPopulation)
00048 {
00049 AbstractVanLeeuwen2009WntSwatCellCycleModel* p_model = dynamic_cast<AbstractVanLeeuwen2009WntSwatCellCycleModel*>(pCell->GetCellCycleModel());
00050 double b_cat_cytoplasm = p_model->GetCytoplasmicBetaCateninLevel();
00051
00052 return b_cat_cytoplasm;
00053 }
00054
00055 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00056 void CellBetaCateninWriter<ELEMENT_DIM, SPACE_DIM>::VisitCell(CellPtr pCell, AbstractCellPopulation<ELEMENT_DIM, SPACE_DIM>* pCellPopulation)
00057 {
00058 assert(SPACE_DIM == 2);
00059
00060 unsigned global_index = pCellPopulation->GetLocationIndexUsingCell(pCell);
00061 double x = pCellPopulation->GetLocationOfCellCentre(pCell)[0];
00062 double y = pCellPopulation->GetLocationOfCellCentre(pCell)[1];
00063
00064 AbstractVanLeeuwen2009WntSwatCellCycleModel* p_model = dynamic_cast<AbstractVanLeeuwen2009WntSwatCellCycleModel*>(pCell->GetCellCycleModel());
00065 double b_cat_membrane = p_model->GetMembraneBoundBetaCateninLevel();
00066 double b_cat_cytoplasm = p_model->GetCytoplasmicBetaCateninLevel();
00067 double b_cat_nuclear = p_model->GetNuclearBetaCateninLevel();
00068
00069 *this->mpOutStream << global_index << " " << x << " " << y << " " << b_cat_membrane << " " << b_cat_cytoplasm << " " << b_cat_nuclear << " ";
00070 }
00071
00072
00073 template class CellBetaCateninWriter<1,1>;
00074 template class CellBetaCateninWriter<1,2>;
00075 template class CellBetaCateninWriter<2,2>;
00076 template class CellBetaCateninWriter<1,3>;
00077 template class CellBetaCateninWriter<2,3>;
00078 template class CellBetaCateninWriter<3,3>;
00079
00080 #include "SerializationExportWrapperForCpp.hpp"
00081
00082 EXPORT_TEMPLATE_CLASS_ALL_DIMS(CellBetaCateninWriter)