Options
All
  • Public
  • Public/Protected
  • All
Menu

Class APointLightView

Hierarchy

Index

Constructors

constructor

Properties

Protected _eventCallbackDicts

_eventCallbackDicts: {} = {}

Type declaration

_light

_light: PointLight

Protected _loadedElements

_loadedElements: {} = {}

Type declaration

  • [uid: string]: ALoadedElementInterface

Protected _subscriptions

_subscriptions: {} = {}

Type declaration

controller

element

Protected elements

elements: {} = {}

Type declaration

state

state: {} = {}

Type declaration

  • [name: string]: any

threejs

threejs: Object3D

The three.js object for this view. Should be a subclass of THREE.Object3D

uid

uid: string

Static AObjectStateKeys

AObjectStateKeys: string[] = []

Static AObjectVersion

AObjectVersion: number = 1

Accessors

ClassConstructor

  • get ClassConstructor(): typeof AObject

camera

light

  • get light(): PointLight

model

sceneController

serializationLabel

  • get serializationLabel(): any

stateSnapshop

  • get stateSnapshop(): {}

Methods

_getEventCallbackDict

_getListeners

  • _getListeners(): {}

_initMaterialListener

  • _initMaterialListener(): void

_initTransformListener

  • _initTransformListener(): void

_removeElement

activateSubscription

  • activateSubscription(name: string): void

addChildView

addElement

addEventListener

  • addEventListener(eventName: string, callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addEventListeners

  • addEventListeners(eventName: string, callbacks: ((...args: any[]) => void)[], handle?: string): AEventCallbackSwitch

addLightColorChangeCallback

  • addLightColorChangeCallback(callback: (self?: AObject) => void, handle?: string): void

addLoadedElement

  • addLoadedElement(element: ALoadedElement | ALoadedBoundsElement): void

addMaterialChangeCallback

  • addMaterialChangeCallback(callback: (self?: AObject) => void, handle?: string): void

addMaterialUpdateCallback

  • addMaterialUpdateCallback(callback: (self?: AObject) => void, handle?: string): void

addModelColorCallback

  • addModelColorCallback(callback: (self?: AObject) => void, handle?: string): void

addOneTimeEventListener

  • addOneTimeEventListener(eventName: string, callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addStateKeyListener

  • addStateKeyListener(state_key: string, callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch
  • Sets a callback function to be called whenever the state specified in state_key changes. The return value callbackSwitch is a callback switch. You can activate the listener with callbackSwitch.activate() and deactive with callbackSwitch.deactivate(). Example Usage:

    var callbackswitch = model.addStateKeyListener('name',()=>{
    n_name_changes = n_name_changes+1;
    })

    Parameters

    • state_key: string

      the name of the state to listen to

    • callback: (self: AObject) => void

      the callback to be executed when state changes

    • Optional handle: string

      the handle / unique identifier for

    • synchronous: boolean = true

      whether callbacks should happen synchronously or allow for batching

    Returns AStateCallbackSwitch

addStateListener

  • addStateListener(callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch

addTransformChangeCallback

  • addTransformChangeCallback(callback: (self?: AObject) => void, handle?: string): void

clearSubscriptions

  • clearSubscriptions(): void

deactivateSubscription

  • deactivateSubscription(name: string): void

dispose

  • dispose(): void

getElementList

getParentView

getSceneView

init

  • init(): void

initGraphics

  • initGraphics(): void

initLoadedObjects

  • initLoadedObjects(): void

mapOverElements

  • mapOverElements(fn: (element: ARenderObject) => void | any[]): (void | any[])[]

moveElementToBack

onGeometryUpdate

  • onGeometryUpdate(): void

onMaterialChange

  • onMaterialChange(): void

onMaterialUpdate

  • onMaterialUpdate(...args: any[]): void

onModelColorChange

  • onModelColorChange(): void

removeChildView

removeEventListener

  • removeEventListener(eventName: string, handle: string): void

removeListener

  • removeListener(handle: string): void

setParentView

signalEvent

  • signalEvent(eventName: string, ...args: any[]): void

subscribe

toJSON

  • toJSON(): {}

unsubscribe

  • unsubscribe(name: string, errorIfAbsent?: boolean): void

Static CreateWithState

  • CreateWithState(state: {}): AObject

Static SerializationLabel

  • SerializationLabel(): any

Static fromJSON

Generated using TypeDoc