API Reference › Globals › ConfiguratorSceneEventHandler
# Class: ConfiguratorSceneEventHandler
# Hierarchy
↳ SceneEventHandler‹SceneEventInfo›
↳ ConfiguratorSceneEventHandler
# Implements
# Index
# Constructors
# Properties
# Methods
- addComponentDragInHandler
- addComponentHandlers
- addEventListener
- addPreviewHandlers
- addPreviewLineHandlers
- cancelSelection
- clickComponent
- disable
- disableEvents
- dispatchEvent
- enable
- enableEvents
- getSelectedRuntimeComponentIds
- getSelectionMode
- hasSelection
- isDragIn
- isDragging
- removeEventListener
- setCameraMoving
- setDragIn
- setRootComponentId
- setSelectionMode
- update
# Constructors
# constructor
+ new ConfiguratorSceneEventHandler(creator
: string, scene
: Scene, camera
: PerspectiveCamera, inputManager
: InputManager): ConfiguratorSceneEventHandler
Overrides SceneEventHandler.constructor
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:67
Parameters:
Name | Type |
---|---|
creator | string |
scene | Scene |
camera | PerspectiveCamera |
inputManager | InputManager |
Returns: ConfiguratorSceneEventHandler
# Properties
# creator
• creator: string
_Implementation of Context.creator_
_Overrides PlannerSceneEventHandler.creator_
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:55
# Methods
# addComponentDragInHandler
▸ addComponentDragInHandler(component
: RoomleComponent): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:130
Parameters:
Name | Type |
---|---|
component | RoomleComponent |
Returns: void
# addComponentHandlers
▸ addComponentHandlers(component
: RoomleComponent): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:114
Parameters:
Name | Type |
---|---|
component | RoomleComponent |
Returns: void
# addEventListener
▸ addEventListener(eventName
: number, callback
: ListenerFunction‹SceneEventInfo›, scope
: any): void
Inherited from EventDispatcher.addEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:29
Parameters:
Name | Type |
---|---|
eventName | number |
callback | ListenerFunction‹SceneEventInfo› |
scope | any |
Returns: void
# addPreviewHandlers
▸ addPreviewHandlers(component
: PreviewComponent): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:155
Parameters:
Name | Type |
---|---|
component | PreviewComponent |
Returns: void
# addPreviewLineHandlers
▸ addPreviewLineHandlers(component
: PreviewLineComponent): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:169
Parameters:
Name | Type |
---|---|
component | PreviewLineComponent |
Returns: void
# cancelSelection
▸ cancelSelection(): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:398
Returns: void
# clickComponent
▸ clickComponent(component
: RoomleComponent): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:200
Parameters:
Name | Type |
---|---|
component | RoomleComponent |
Returns: void
# disable
▸ disable(): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:92
Returns: void
# disableEvents
▸ disableEvents(): void
Inherited from EventDispatcher.disableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:67
Returns: void
# dispatchEvent
▸ dispatchEvent(eventName
: number, arg?
: SceneEventInfo): void
Inherited from EventDispatcher.dispatchEvent
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:33
Parameters:
Name | Type |
---|---|
eventName | number |
arg? | SceneEventInfo |
Returns: void
# enable
▸ enable(): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:99
Returns: void
# enableEvents
▸ enableEvents(): void
Inherited from EventDispatcher.enableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:63
Returns: void
# getSelectedRuntimeComponentIds
▸ getSelectedRuntimeComponentIds(): number[]
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:411
Returns: number[]
# getSelectionMode
▸ getSelectionMode(): SELECTION_MODE
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:407
Returns: SELECTION_MODE
# hasSelection
▸ hasSelection(): boolean
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:378
Returns: boolean
# isDragIn
▸ isDragIn(): boolean
Overrides PlannerSceneEventHandler.isDragIn
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:386
Returns: boolean
# isDragging
▸ isDragging(): boolean
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:390
Returns: boolean
# removeEventListener
▸ removeEventListener(eventName
: number, fun
: ListenerFunction‹SceneEventInfo›): void
Inherited from EventDispatcher.removeEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:49
Parameters:
Name | Type |
---|---|
eventName | number |
fun | ListenerFunction‹SceneEventInfo› |
Returns: void
# setCameraMoving
▸ setCameraMoving(cameraMoving
: boolean): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:415
Parameters:
Name | Type |
---|---|
cameraMoving | boolean |
Returns: void
# setDragIn
▸ setDragIn(dragIn
: boolean, dragEvent?
: DragEvent): void
Inherited from PlannerSceneEventHandler.setDragIn
Defined in packages/common-core/src/webgl/scene-event-handler.ts:28
Parameters:
Name | Type |
---|---|
dragIn | boolean |
dragEvent? | DragEvent |
Returns: void
# setRootComponentId
▸ setRootComponentId(rootComponentId
: number): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:394
Parameters:
Name | Type |
---|---|
rootComponentId | number |
Returns: void
# setSelectionMode
▸ setSelectionMode(mode
: SELECTION_MODE): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:403
Parameters:
Name | Type |
---|---|
mode | SELECTION_MODE |
Returns: void
# update
▸ update(bounds
: Vector3, rootComponentPosition
: Vector3, backgroundScene
: Scene): void
Defined in packages/configurator-core/src/webgl/configurator-scene-event-handler.ts:382
Parameters:
Name | Type |
---|---|
bounds | Vector3 |
rootComponentPosition | Vector3 |
backgroundScene | Scene |
Returns: void