Reference·JavaScript · @bimworks/viewercommonJavaScript

ColorChangeMap

Class in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Class

TypeScript#
class ColorChangeMap

Members#

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#

TypeScript#
public alterQid(qid: Qid, alteration: unknown): void

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#

TypeScript#
public changeQid(qid: Qid, color: Color): void

Parameters#

Name Type Description
qid Qid
color Color

changeQids#

TypeScript#
public changeQids(qids: Iterable<Qid>, color: Color): void

Parameters#

Name Type Description
qids Iterable<Qid>
color Color

dispose#

TypeScript#
public dispose(): void

Releases the memory of the sets inside; the map must not be used afterwards

getAllQids#

TypeScript#
public getAllQids(): QidSet

Returns#

A QidSet of all the changed Qids in this ColorChangeMap

isEmpty#

TypeScript#
public isEmpty(): boolean

resetQid#

TypeScript#
public resetQid(qid: Qid): void

Resets the object to its original colour when the map is applied

Parameters#

Name Type Description
qid Qid