Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
CellMLToNektar.utilities.Colourable Class Reference
Inheritance diagram for CellMLToNektar.utilities.Colourable:
Inheritance graph
[legend]
Collaboration diagram for CellMLToNektar.utilities.Colourable:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def set_colour
 
def get_colour
 
def clear_colour
 

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

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

Definition at line 128 of file utilities.py.

References CellMLToNektar.utilities.Colourable.clear_colour().

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

Member Function Documentation

def CellMLToNektar.utilities.Colourable.clear_colour (   self)

Definition at line 138 of file utilities.py.

References CellMLToNektar.utilities.Colourable._cml_colour.

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

139  def clear_colour(self):
140  self._cml_colour = DFS.White
141 
def CellMLToNektar.utilities.Colourable.get_colour (   self)

Definition at line 135 of file utilities.py.

References CellMLToNektar.utilities.Colourable._cml_colour.

136  def get_colour(self):
137  return self._cml_colour
def CellMLToNektar.utilities.Colourable.set_colour (   self,
  colour 
)

Definition at line 132 of file utilities.py.

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

Member Data Documentation

CellMLToNektar.utilities.Colourable._cml_colour
private

Definition at line 133 of file utilities.py.

Referenced by CellMLToNektar.utilities.Colourable.clear_colour(), and CellMLToNektar.utilities.Colourable.get_colour().