Nektar++
Public Member Functions | Private Attributes | List of all members
CellMLToNektar.utilities.Colourable Class Reference
Inheritance diagram for CellMLToNektar.utilities.Colourable:
[legend]

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def set_colour (self, colour)
 
def get_colour (self)
 
def clear_colour (self)
 

Private Attributes

 _cml_colour
 

Detailed Description

A mixin class for objects that have a colour attribute, and so support
a depth-first search.

Definition at line 123 of file utilities.py.

Constructor & Destructor Documentation

◆ __init__()

def CellMLToNektar.utilities.Colourable.__init__ (   self,
args,
**  kwargs 
)

Reimplemented in CellMLToNektar.pycml.cellml_variable, CellMLToNektar.pycml.cellml_units, and CellMLToNektar.pycml.mathml_apply.

Definition at line 128 of file utilities.py.

128 def __init__(self, *args, **kwargs):
129 super(Colourable, self).__init__(*args, **kwargs)
130 self.clear_colour()
131

References CellMLToNektar.utilities.Colourable.__init__(), and CellMLToNektar.utilities.Colourable.clear_colour().

Referenced by CellMLToNektar.utilities.Colourable.__init__().

Member Function Documentation

◆ clear_colour()

def CellMLToNektar.utilities.Colourable.clear_colour (   self)

Definition at line 138 of file utilities.py.

138 def clear_colour(self):
139 self._cml_colour = DFS.White
140
141

References CellMLToNektar.utilities.Colourable._cml_colour.

Referenced by CellMLToNektar.utilities.Colourable.__init__().

◆ get_colour()

def CellMLToNektar.utilities.Colourable.get_colour (   self)

Definition at line 135 of file utilities.py.

135 def get_colour(self):
136 return self._cml_colour
137

References CellMLToNektar.utilities.Colourable._cml_colour.

◆ set_colour()

def CellMLToNektar.utilities.Colourable.set_colour (   self,
  colour 
)

Definition at line 132 of file utilities.py.

132 def set_colour(self, colour):
133 self._cml_colour = colour
134

Member Data Documentation

◆ _cml_colour

CellMLToNektar.utilities.Colourable._cml_colour
private