Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <CellLabel.hpp>
Public Member Functions | |
CellLabel (unsigned colour=5) | |
virtual | ~CellLabel () |
unsigned | GetColour () const |
Public Member Functions inherited from AbstractCellProperty | |
AbstractCellProperty () | |
virtual | ~AbstractCellProperty () |
template<class CLASS > | |
bool | IsType () const |
template<class BASECLASS > | |
bool | IsSubType () const |
bool | IsSame (const AbstractCellProperty *pOther) const |
bool | IsSame (boost::shared_ptr< const AbstractCellProperty > pOther) const |
void | IncrementCellCount () |
void | DecrementCellCount () |
unsigned | GetCellCount () const |
Public Member Functions inherited from Identifiable | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Protected Attributes | |
unsigned | mColour |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Cell label class.
Each Cell owns a CellPropertyCollection, which may include a shared pointer to an object of this type. When a Cell that is labelled divides, the daughter cells are both labelled.
The CellLabel object keeps track of the number of cells that have the label, as well as what colour should be used by the visualizer to display cells with the label.
Definition at line 54 of file CellLabel.hpp.
CellLabel::CellLabel | ( | unsigned | colour = 5 | ) |
Constructor.
colour | what colour cells with this label should be in the visualizer (defaults to 5) |
Definition at line 38 of file CellLabel.cpp.
|
virtual |
Destructor.
Definition at line 44 of file CellLabel.cpp.
unsigned CellLabel::GetColour | ( | ) | const |
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 74 of file CellLabel.hpp.
References mColour.
|
friend |
Needed for serialization.
Definition at line 66 of file CellLabel.hpp.
|
protected |
Colour for use by visualizer.
Definition at line 61 of file CellLabel.hpp.
Referenced by GetColour(), and serialize().