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 = this->mpCellPopulation->GetLocationOfCellCentre(*cell_iter);
96 double x = location[0];
97 double y = location[1];
99 if ((y>mSloughHeight) || (mSloughSides && ((x<0.0) || (x>mSloughWidth))))
108 EXCEPTION(
"SloughingCellKiller is not yet implemented in 3D");
117 template<
unsigned DIM>
120 *rParamsFile <<
"\t\t\t<SloughLength>" << mSloughHeight <<
"</SloughLength>\n";
121 *rParamsFile <<
"\t\t\t<SloughSides>" << mSloughSides <<
"</SloughSides>\n";
122 *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)