Reference·JavaScript · @bimworks/viewercommonJavaScript

ObjectStateSnapshot

Interface in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Interface

TypeScript#
interface ObjectStateSnapshot

The object state as ObjectStateManager.captureObjectState took it: copies, not the live sets

Members#

Member Kind Description
colors Property The colour overrides: a fixed colour, or an alteration of the object's own colour (a number, as ColorChangeMap.alterQid takes it)
ghost Property The ghost set, ObjectStateManager.addToGhostSet
ghostDrawn Property The ghosts that ghosting hid: drawn as ghosts, and shown again when they leave the set
onTop Property The on-top set, ObjectStateManager.addToOnTopSet
pickabilityEnabled Property Whether pickability was on, ObjectStateManager.isPickabilityEnabled
unpickable Property The objects that cannot be picked, ObjectStateManager.removeFromPickableSet
unsectionable Property The objects section planes do not cut, ObjectStateManager.removeFromSectionableSet
versions Property The models loaded at the capture
visible Property The visible objects
xray Property The x-ray set, ObjectStateManager.addToXRaySet

colors#

TypeScript#
readonly colors: QidMap<string | number | TinyColor>

The colour overrides: a fixed colour, or an alteration of the object's own colour (a number, as ColorChangeMap.alterQid takes it)

ghost#

TypeScript#
readonly ghost: QidSet

The ghost set, ObjectStateManager.addToGhostSet

ghostDrawn#

TypeScript#
readonly ghostDrawn: QidSet

The ghosts that ghosting hid: drawn as ghosts, and shown again when they leave the set

onTop#

TypeScript#
readonly onTop: QidSet

The on-top set, ObjectStateManager.addToOnTopSet

pickabilityEnabled#

TypeScript#
readonly pickabilityEnabled: boolean

Whether pickability was on, ObjectStateManager.isPickabilityEnabled

unpickable#

TypeScript#
readonly unpickable: QidSet

The objects that cannot be picked, ObjectStateManager.removeFromPickableSet

unsectionable#

TypeScript#
readonly unsectionable: QidSet

The objects section planes do not cut, ObjectStateManager.removeFromSectionableSet

versions#

TypeScript#
readonly versions: ReadonlySet<string>

The models loaded at the capture

visible#

TypeScript#
readonly visible: QidSet

The visible objects

xray#

TypeScript#
readonly xray: QidSet

The x-ray set, ObjectStateManager.addToXRaySet