36 #include "CellMutationStatesWriter.hpp"
37 #include "AbstractCellPopulation.hpp"
39 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
46 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
49 double mutation_state = pCell->GetMutationState()->GetColour();
54 if (label_collection.
GetSize() == 1)
56 boost::shared_ptr<CellLabel> p_label = boost::static_pointer_cast<
CellLabel>(label_collection.
GetProperty());
57 mutation_state = p_label->GetColour();
60 return mutation_state;
63 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
66 double mutation_state = pCell->GetMutationState()->GetColour();
72 if (label_collection.
GetSize() == 1)
74 boost::shared_ptr<CellLabel> p_label = boost::static_pointer_cast<
CellLabel>(label_collection.
GetProperty());
75 mutation_state = p_label->GetColour();
78 *this->mpOutStream << mutation_state <<
" ";
std::string mVtkCellDataName
CellMutationStatesWriter()
virtual void VisitCell(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
double GetCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
boost::shared_ptr< AbstractCellProperty > GetProperty() const
CellPropertyCollection GetProperties() const
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)