ColorChangeMap
Class in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Class
TypeScript#
class ColorChangeMapMembers#
| Member | Kind | Description |
|---|---|---|
| constructor | Method | |
| alterQid | Method | Applies an alteration (for example a transparency change) instead of a fixed colour to the object |
| changeQid | Method | |
| changeQids | Method | |
| dispose | Method | Releases the memory of the sets inside; the map must not be used afterwards |
| getAllQids | Method | |
| isEmpty | Method | |
| resetQid | Method | Resets the object to its original colour when the map is applied |
constructor#
TypeScript#
constructor()alterQid#
Applies an alteration (for example a transparency change) instead of a fixed colour to the object
Parameters#
| Name | Type | Description |
|---|---|---|
qid |
Qid | |
alteration |
unknown |
changeQid#
Parameters#
changeQids#
Parameters#
| Name | Type | Description |
|---|---|---|
qids |
Iterable<Qid> |
|
color |
Color |
dispose#
TypeScript#
public dispose(): voidReleases the memory of the sets inside; the map must not be used afterwards
getAllQids#
Returns#
A QidSet of all the changed Qids in this ColorChangeMap
isEmpty#
TypeScript#
public isEmpty(): booleanresetQid#
Resets the object to its original colour when the map is applied
Parameters#
| Name | Type | Description |
|---|---|---|
qid |
Qid |