Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Entity Abstract

An abstract 3D scene element that can be individually shown, hidden, selected, highlighted, xrayed, culled, picked, clipped and bounded.

abstract

Hierarchy

  • Entity

Index

Constructors

Accessors

  • get aabb(): number[]
  • World-space 3D axis-aligned bounding box (AABB) of this Entity.

    Represented by a six-element Float64Array containing the min/max extents of the axis-aligned volume, ie. [xmin, ymin,zmin,xmax,ymax, zmax].

    abstract

    Returns number[]

  • get castsShadow(): boolean
  • set castsShadow(arg: boolean): void
  • get clippable(): boolean
  • set clippable(arg: boolean): void
  • get collidable(): boolean
  • set collidable(arg: boolean): void
  • get colorize(): number[]
  • set colorize(arg: number[]): void
  • Gets the Entity's RGB colorize color, multiplies by the Entity's rendered fragment colors.

    Each element of the color is in range [0..1].

    abstract

    Returns number[]

  • Sets the Entity's RGB colorize color, multiplies by the Entity's rendered fragment colors.

    Each element of the color is in range [0..1].

    abstract

    Parameters

    • arg: number[]

    Returns void

  • get culled(): boolean
  • set culled(arg: boolean): void
  • get edges(): boolean
  • set edges(arg: boolean): void
  • get highlighted(): boolean
  • set highlighted(arg: boolean): void
  • get id(): string | number
  • get isEntity(): boolean
  • get isModel(): boolean
  • get isObject(): boolean
  • get numTriangles(): number
  • get offset(): number[]
  • set offset(arg: number[]): void
  • Gets the Entity's 3D World-space offset.

    Default value is [0,0,0].

    abstract

    Returns number[]

  • Sets the Entity's 3D World-space offset.

    Since offsetting Entities comes with memory and rendering overhead on some systems, this feature only works when Viewer is configured with entityOffsetsEnabled: true.

    The offset dynamically translates the Entity in World-space, which is useful for creating effects like exploding parts assemblies etc.

    Default value is [0,0,0].

    Provide a null or undefined value to reset to the default value.

    abstract

    Parameters

    • arg: number[]

    Returns void

  • get opacity(): number
  • set opacity(arg: number): void
  • Gets the Entity's opacity factor.

    This is a factor in range [0..1] which multiplies by the rendered fragment alphas.

    abstract

    Returns number

  • Sets the Entity's opacity factor, multiplies by the Entity's rendered fragment alphas.

    This is a factor in range [0..1].

    abstract

    Parameters

    • arg: number

    Returns void

  • get origin(): Float64Array
  • set origin(arg: Float64Array): void
  • get originalSystemId(): string
  • get parent(): void
  • get pickable(): boolean
  • set pickable(arg: boolean): void
  • get receivesShadow(): boolean
  • set receivesShadow(arg: boolean): void
  • get saoEnabled(): boolean
  • Gets if this Entity can have Scalable Ambient Obscurance (SAO) applied to it.

    SAO is configured by {@link SAO}.

    abstract

    Returns boolean

  • get selected(): boolean
  • set selected(arg: boolean): void
  • get visible(): boolean
  • set visible(arg: boolean): void
  • get xrayed(): boolean
  • set xrayed(arg: boolean): void

Methods

  • destroy(): void

Generated using TypeDoc