A container for the storage and lookup of Vis.Color objects that are associated with a numeric identifier.
More...
A container for the storage and lookup of Vis.Color objects that are associated with a numeric identifier.
◆ __init__()
None CDPL.Vis.ColorTable.__init__ |
( |
ColorTable |
table | ) |
|
Initializes a copy of the ColorTable instance table.
- Parameters
-
table | The ColorTable instance to copy. |
◆ getObjectID()
int CDPL.Vis.ColorTable.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python ColorTable instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two ColorTable instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
- Returns
- The numeric ID of the internally referenced C++ class instance.
◆ getSize()
int CDPL.Vis.ColorTable.getSize |
( |
| ) |
|
◆ isEmpty()
bool CDPL.Vis.ColorTable.isEmpty |
( |
| ) |
|
◆ assign()
Replaces the current state of self with a copy of the state of the ColorTable instance map.
- Parameters
-
map | The ColorTable instance to copy. |
- Returns
- self
◆ getValue() [1/2]
Color CDPL.Vis.ColorTable.getValue |
( |
int |
key | ) |
|
◆ getValue() [2/2]
Color CDPL.Vis.ColorTable.getValue |
( |
int |
key, |
|
|
Color |
def_value |
|
) |
| |
◆ removeEntry()
bool CDPL.Vis.ColorTable.removeEntry |
( |
int |
key | ) |
|
◆ setEntry()
None CDPL.Vis.ColorTable.setEntry |
( |
int |
key, |
|
|
Color |
value |
|
) |
| |
◆ getKeys()
object CDPL.Vis.ColorTable.getKeys |
( |
| ) |
|
◆ keys()
object CDPL.Vis.ColorTable.keys |
( |
| ) |
|
◆ getValues()
object CDPL.Vis.ColorTable.getValues |
( |
| ) |
|
◆ values()
object CDPL.Vis.ColorTable.values |
( |
| ) |
|
◆ getEntries()
object CDPL.Vis.ColorTable.getEntries |
( |
| ) |
|
◆ items()
object CDPL.Vis.ColorTable.items |
( |
| ) |
|
◆ containsEntry()
bool CDPL.Vis.ColorTable.containsEntry |
( |
int |
key | ) |
|
◆ insertEntry()
bool CDPL.Vis.ColorTable.insertEntry |
( |
int |
key, |
|
|
Color |
value |
|
) |
| |
◆ __len__()
int CDPL.Vis.ColorTable.__len__ |
( |
| ) |
|
◆ __getitem__()
Color CDPL.Vis.ColorTable.__getitem__ |
( |
int |
key | ) |
|
◆ __setitem__()
None CDPL.Vis.ColorTable.__setitem__ |
( |
int |
key, |
|
|
Color |
value |
|
) |
| |
◆ __delitem__()
bool CDPL.Vis.ColorTable.__delitem__ |
( |
int |
key | ) |
|
◆ __contains__()
bool CDPL.Vis.ColorTable.__contains__ |
( |
int |
key | ) |
|
Returns the result of the membership test operation key in self
.
- Parameters
-
key | The value to test for membership. |
- Returns
- The result of the membership test operation.
◆ __str__()
str CDPL.Vis.ColorTable.__str__ |
( |
| ) |
|
Returns a string representation of the ColorTable instance.
- Returns
- The generated string representation.
◆ __eq__()
bool CDPL.Vis.ColorTable.__eq__ |
( |
object |
table | ) |
|
Returns the result of the comparison operation self == table
.
- Parameters
-
table | The object instance to be compared with. |
- Returns
- The result of the comparison operation.
◆ __ne__()
bool CDPL.Vis.ColorTable.__ne__ |
( |
object |
table | ) |
|
Returns the result of the comparison operation self != table
.
- Parameters
-
table | The object instance to be compared with. |
- Returns
- The result of the comparison operation.