36 #include "CellRosetteRankWriter.hpp"
37 #include "AbstractCellPopulation.hpp"
38 #include "VertexBasedCellPopulation.hpp"
41 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
48 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
56 EXCEPTION(
"Rosettte rank is only associated with vertex-based cell populations");
62 return double(rosette_rank);
65 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
69 unsigned cell_id = pCell->GetCellId();
72 double rosette_rank = this->GetCellDataForVtkOutput(pCell, pCellPopulation);
74 *this->mpOutStream << location_index <<
" " << cell_id <<
" ";
75 for (
unsigned i=0; i<SPACE_DIM; i++)
77 *this->mpOutStream << centre_location[i] <<
" ";
80 *this->mpOutStream << rosette_rank <<
" ";
std::string mVtkCellDataName
unsigned GetLocationIndexUsingCell(CellPtr pCell)
virtual void VisitCell(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)
#define EXCEPTION(message)
unsigned GetRosetteRankOfCell(CellPtr pCell)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
virtual c_vector< double, SPACE_DIM > GetLocationOfCellCentre(CellPtr pCell)=0
double GetCellDataForVtkOutput(CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)