36 #include "CellMutationStatesWriter.hpp" 38 #include "AbstractCellPopulation.hpp" 39 #include "CellLabel.hpp" 41 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
48 template<
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;
65 template<
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();
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)