35 #include "SloughingCellKiller.hpp"
36 #include "AbstractCentreBasedCellPopulation.hpp"
39 template<
unsigned DIM>
42 mSloughSides(sloughSides)
44 assert(sloughHeight > 0.0);
47 assert(sloughWidth > 0.0);
51 template<
unsigned DIM>
57 template<
unsigned DIM>
63 template<
unsigned DIM>
69 template<
unsigned DIM>
77 cell_iter != this->mpCellPopulation->End();
80 double x = this->mpCellPopulation->GetLocationOfCellCentre(*cell_iter)[0];
82 if (x > mSloughHeight)
92 cell_iter != this->mpCellPopulation->End();
95 c_vector<double, 2> location;
96 location = this->mpCellPopulation->GetLocationOfCellCentre(*cell_iter);
97 double x = location[0];
98 double y = location[1];
100 if ((y>mSloughHeight) || (mSloughSides && ((x<0.0) || (x>mSloughWidth))))
109 EXCEPTION(
"SloughingCellKiller is not yet implemented in 3D");
118 template<
unsigned DIM>
121 *rParamsFile <<
"\t\t\t<SloughLength>" << mSloughHeight <<
"</SloughLength>\n";
122 *rParamsFile <<
"\t\t\t<SloughSides>" << mSloughSides <<
"</SloughSides>\n";
123 *rParamsFile <<
"\t\t\t<SloughWidth>" << mSloughWidth <<
"</SloughWidth>\n";
void OutputCellKillerParameters(out_stream &rParamsFile)
#define EXCEPTION(message)
virtual void CheckAndLabelCellsForApoptosisOrDeath()
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
double GetSloughWidth() const
virtual void OutputCellKillerParameters(out_stream &rParamsFile)=0
bool GetSloughSides() const
double GetSloughHeight() const
SloughingCellKiller(AbstractCellPopulation< DIM > *pCrypt, double sloughHeight, bool sloughSides=false, double sloughWidth=10.0)