36#include "CellMutationStatesWriter.hpp"
38#include "AbstractCellPopulation.hpp"
39#include "CellLabel.hpp"
41template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
48template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
51 double mutation_state = pCell->GetMutationState()->GetColour();
56 if (label_collection.
GetSize() == 1)
58 boost::shared_ptr<CellLabel> p_label = boost::static_pointer_cast<CellLabel>(label_collection.
GetProperty());
59 mutation_state = p_label->GetColour();
62 return mutation_state;
65template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
68 double mutation_state = pCell->GetMutationState()->GetColour();
74 if (label_collection.
GetSize() == 1)
76 boost::shared_ptr<CellLabel> p_label = boost::static_pointer_cast<CellLabel>(label_collection.
GetProperty());
77 mutation_state = p_label->GetColour();
80 *this->mpOutStream << mutation_state <<
" ";
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
std::string mVtkCellDataName
double GetCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
CellMutationStatesWriter()
virtual void VisitCell(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
boost::shared_ptr< AbstractCellProperty > GetProperty() const
CellPropertyCollection GetProperties() const