Chaste
Release::3.4
|
#include <AbstractCellWriter.hpp>
Public Member Functions | |
AbstractCellWriter (const std::string &rFileName) | |
virtual double | GetCellDataForVtkOutput (CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)=0 |
virtual void | VisitCell (CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)=0 |
void | SetVtkCellDataName (std::string vtkCellDataName) |
std::string | GetVtkCellDataName () |
Public Member Functions inherited from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM > | |
AbstractCellBasedWriter (const std::string &rFileName) | |
virtual | ~AbstractCellBasedWriter () |
void | CloseFile () |
virtual void | OpenOutputFile (OutputFileHandler &rOutputFileHandler) |
void | OpenOutputFileForAppend (OutputFileHandler &rOutputFileHandler) |
virtual void | WriteTimeStamp () |
virtual void | WriteNewline () |
void | SetFileName (std::string fileName) |
std::string | GetFileName () |
Public Member Functions inherited from Identifiable | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Protected Attributes | |
std::string | mVtkCellDataName |
Protected Attributes inherited from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM > | |
std::string | mFileName |
out_stream | mpOutStream |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
An abstract class for a writer that visits individual cells of a population and writes their data.
Definition at line 51 of file AbstractCellWriter.hpp.
AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::AbstractCellWriter | ( | const std::string & | rFileName | ) |
Default constructor.
rFileName | the name of the file to write to. |
Definition at line 39 of file AbstractCellWriter.cpp.
|
pure virtual |
Get a double associated with a cell. This method reduces duplication of code between the methods VisitCell() and AddVtkData().
pCell | a cell |
pCellPopulation | a pointer to the cell population owning the cell. |
Implemented in CellDeltaNotchWriter< ELEMENT_DIM, SPACE_DIM >, CellRadiusWriter< ELEMENT_DIM, SPACE_DIM >, CellBetaCateninWriter< ELEMENT_DIM, SPACE_DIM >, CellAgesWriter< ELEMENT_DIM, SPACE_DIM >, CellAncestorWriter< ELEMENT_DIM, SPACE_DIM >, CellCycleModelProteinConcentrationsWriter< ELEMENT_DIM, SPACE_DIM >, CellIdWriter< ELEMENT_DIM, SPACE_DIM >, CellLocationIndexWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativeTypesWriter< ELEMENT_DIM, SPACE_DIM >, CellRosetteRankWriter< ELEMENT_DIM, SPACE_DIM >, CellVolumesWriter< ELEMENT_DIM, SPACE_DIM >, CellLabelWriter< ELEMENT_DIM, SPACE_DIM >, and CellMutationStatesWriter< ELEMENT_DIM, SPACE_DIM >.
std::string AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::GetVtkCellDataName | ( | ) |
Definition at line 51 of file AbstractCellWriter.cpp.
|
inlineprivate |
Serialize the object and its member variables.
archive | the archive |
version | the current version of this class |
Definition at line 64 of file AbstractCellWriter.hpp.
void AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::SetVtkCellDataName | ( | std::string | vtkCellDataName | ) |
Set the name of the cell data used in VTK output. This method allows the user to change mVtkCellDataName from its default value, which is set in each subclass's constructor.
vtkCellDataName | the output file name |
Definition at line 45 of file AbstractCellWriter.cpp.
|
pure virtual |
Visit a cell and write its data.
pCell | a cell |
pCellPopulation | a pointer to the cell population owning the cell. |
Implemented in CellDeltaNotchWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativeTypesWriter< ELEMENT_DIM, SPACE_DIM >, CellCycleModelProteinConcentrationsWriter< ELEMENT_DIM, SPACE_DIM >, CellRadiusWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesWriter< ELEMENT_DIM, SPACE_DIM >, CellAgesWriter< ELEMENT_DIM, SPACE_DIM >, CellAncestorWriter< ELEMENT_DIM, SPACE_DIM >, CellIdWriter< ELEMENT_DIM, SPACE_DIM >, CellRosetteRankWriter< ELEMENT_DIM, SPACE_DIM >, CellVolumesWriter< ELEMENT_DIM, SPACE_DIM >, CellLabelWriter< ELEMENT_DIM, SPACE_DIM >, CellLocationIndexWriter< ELEMENT_DIM, SPACE_DIM >, CellMutationStatesWriter< ELEMENT_DIM, SPACE_DIM >, and CellBetaCateninWriter< ELEMENT_DIM, SPACE_DIM >.
|
friend |
Needed for serialization.
Definition at line 56 of file AbstractCellWriter.hpp.
|
protected |
The name of the cell data used in VTK output.
Definition at line 74 of file AbstractCellWriter.hpp.
Referenced by CellAgesWriter< ELEMENT_DIM, SPACE_DIM >::CellAgesWriter(), CellAncestorWriter< ELEMENT_DIM, SPACE_DIM >::CellAncestorWriter(), CellBetaCateninWriter< ELEMENT_DIM, SPACE_DIM >::CellBetaCateninWriter(), CellCycleModelProteinConcentrationsWriter< ELEMENT_DIM, SPACE_DIM >::CellCycleModelProteinConcentrationsWriter(), CellDeltaNotchWriter< ELEMENT_DIM, SPACE_DIM >::CellDeltaNotchWriter(), CellIdWriter< ELEMENT_DIM, SPACE_DIM >::CellIdWriter(), CellLabelWriter< ELEMENT_DIM, SPACE_DIM >::CellLabelWriter(), CellLocationIndexWriter< ELEMENT_DIM, SPACE_DIM >::CellLocationIndexWriter(), CellMutationStatesWriter< ELEMENT_DIM, SPACE_DIM >::CellMutationStatesWriter(), CellProliferativePhasesWriter< ELEMENT_DIM, SPACE_DIM >::CellProliferativePhasesWriter(), CellProliferativeTypesWriter< ELEMENT_DIM, SPACE_DIM >::CellProliferativeTypesWriter(), CellRadiusWriter< ELEMENT_DIM, SPACE_DIM >::CellRadiusWriter(), CellRosetteRankWriter< ELEMENT_DIM, SPACE_DIM >::CellRosetteRankWriter(), and CellVolumesWriter< ELEMENT_DIM, SPACE_DIM >::CellVolumesWriter().