36 #include "CellLabelWriter.hpp"
37 #include "AbstractCellPopulation.hpp"
38 #include "CellLabel.hpp"
40 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
47 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
54 boost::shared_ptr<CellLabel> p_label = boost::static_pointer_cast<
CellLabel>(collection.
GetProperty());
55 label = p_label->GetColour();
60 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
67 boost::shared_ptr<CellLabel> p_label = boost::static_pointer_cast<
CellLabel>(collection.
GetProperty());
68 label = p_label->GetColour();
71 *this->mpOutStream <<
" " << label;
74 *this->mpOutStream <<
" " << location_index;
77 for (
unsigned i=0; i<SPACE_DIM; i++)
79 *this->mpOutStream <<
" " << coords[i];
std::string mVtkCellDataName
unsigned GetLocationIndexUsingCell(CellPtr pCell)
boost::shared_ptr< AbstractCellProperty > GetProperty() const
CellPropertyCollection GetProperties() const
double GetCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
virtual c_vector< double, SPACE_DIM > GetLocationOfCellCentre(CellPtr pCell)=0
virtual void VisitCell(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)