RoomleGlbViewer.Internal.default-3

glb-viewer-core/src/roomle-glb-viewer.internal.default

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new default(creator, inputManager, initialCameraPosition?, camera?)

Parameters

Name
Type

creator

string

inputManager

initialCameraPosition?

Vector3

camera?

Inherited from

default.constructor

Properties

_creator_

_creator_: string

Inherited from

default.creator


maxAzimuthAngle

maxAzimuthAngle: number = Number.POSITIVE_INFINITY

Inherited from

default.maxAzimuthAngle


maxDistance

maxDistance: number = 5

Inherited from

default.maxDistance


maxPolarAngle

maxPolarAngle: number

Inherited from

default.maxPolarAngle


minAzimuthAngle

minAzimuthAngle: number = Number.NEGATIVE_INFINITY

Inherited from

default.minAzimuthAngle


minDistance

minDistance: number = 0

Inherited from

default.minDistance


minPolarAngle

minPolarAngle: number

Inherited from

default.minPolarAngle


shouldIgnoreStandardBehavior

shouldIgnoreStandardBehavior: boolean = false

Accessors

domHelper

get domHelper(): default

Returns

default

Inherited from

CameraControl3D.domHelper

Methods

addEventListener

addEventListener(eventName, callback, scope): void

Parameters

Name
Type

eventName

number

callback

scope

any

Returns

void

Inherited from

default.addEventListener


addLightContainer

addLightContainer(container): void

Parameters

Name
Type

container

Object3D<Object3DEventMap>

Returns

void

Inherited from

default.addLightContainer


adjust

adjust(bounds, position, yaw, pitch, _fov): void

Parameters

Name
Type

bounds

Vector3

position

Vector3

yaw

number

pitch

number

_fov

number

Returns

void


adjustToBoundsWithoutChangingDistance

adjustToBoundsWithoutChangingDistance(boundingBox): void

Parameters

Name
Type

boundingBox

Box3

Returns

void

Inherited from

default.adjustToBoundsWithoutChangingDistance


animateCamera

animateCamera(delta): boolean

Parameters

Name
Type

delta

number

Returns

boolean

Overrides

default.animateCamera


checkBoundsAndPlaceCamera

checkBoundsAndPlaceCamera(boundingBox, reset?): void

Parameters

Name
Type
Default value

boundingBox

Box3

undefined

reset

boolean

true

Returns

void

Inherited from

default.checkBoundsAndPlaceCamera


checkNearFarDistance

checkNearFarDistance(point): void

Parameters

Name
Type

point

Vector3

Returns

void

Inherited from

default.checkNearFarDistance


cleanUp

cleanUp(): void

Returns

void

Inherited from

default.cleanUp


clear

clear(): void

Returns

void

Inherited from

default.clear


disableEvents

disableEvents(): void

Returns

void

Inherited from

default.disableEvents


disablePanning

disablePanning(): void

Returns

void

Inherited from

default.disablePanning


dispatchEvent

dispatchEvent(eventName, arg?): void

Parameters

Name
Type

eventName

number

arg?

any

Returns

void

Inherited from

default.dispatchEvent


enableEvents

enableEvents(): void

Returns

void

Inherited from

default.enableEvents


enablePanning

enablePanning(): void

Returns

void

Inherited from

default.enablePanning


getCamera

getCamera(): PerspectiveOffsetCamera

Returns

PerspectiveOffsetCamera

Inherited from

default.getCamera


getCurrentCameraParameters

getCurrentCameraParameters(): CameraParameter

Returns

CameraParameter

Inherited from

default.getCurrentCameraParameters


getInputPosition

getInputPosition(position): Vector3

Parameters

Name
Type

position

Returns

Vector3

Inherited from

default.getInputPosition


getKernelZoomFactor

getKernelZoomFactor(): number

Returns

number

Inherited from

default.getKernelZoomFactor


getObjectRotation

getObjectRotation(): number

Returns

number

Inherited from

default.getObjectRotation


getTargetPosition

getTargetPosition(): Vector3

Returns

Vector3

Inherited from

default.getTargetPosition


hasSavedState

hasSavedState(): boolean

Returns

boolean

Inherited from

default.hasSavedState


isLocked

isLocked(): boolean

Returns

boolean

Inherited from

default.isLocked


lock

lock(): void

Returns

void

Inherited from

default.lock


moveCamera

moveCamera(cameraParameter): Promise<void>

Move camera based on provided camera parameters

  • Uses center when target is not set

  • Uses ideal distance when no distance is provided

  • For other properties it used current camera parameters if not provided

Parameters

Name
Type

cameraParameter

Returns

Promise<void>

Inherited from

default.moveCamera


removeEventListener

removeEventListener(eventName, fun): void

Parameters

Name
Type

eventName

number

fun

Returns

void

Inherited from

default.removeEventListener


reset

reset(bounds, target?, yaw?, pitch?, animate?): void

Parameters

Name
Type
Default value

bounds

Box3

undefined

target?

Vector3

undefined

yaw?

number

undefined

pitch?

number

undefined

animate

boolean

true

Returns

void

Inherited from

default.reset


resetToState

resetToState(): void

Returns

void

Inherited from

default.resetToState


saveState

saveState(override): CameraParameter

Parameters

Name
Type

override

boolean

Returns

CameraParameter

Inherited from

default.saveState


setBounds

setBounds(boundingBox): void

Parameters

Name
Type

boundingBox

Box3

Returns

void

Inherited from

default.setBounds


setObjectRotation

setObjectRotation(objectRotation): void

Parameters

Name
Type

objectRotation

number

Returns

void

Inherited from

default.setObjectRotation


setToState

setToState(start, state): void

Parameters

Name
Type

start

state

Returns

void

Inherited from

default.setToState


unlock

unlock(): void

Returns

void

Inherited from

default.unlock


updateAndReset

updateAndReset(boundingBox, animate?): void

Parameters

Name
Type
Default value

boundingBox

Box3

undefined

animate

boolean

true

Returns

void

Inherited from

default.updateAndReset


updateCamera

updateCamera(): void

Returns

void

Inherited from

default.updateCamera


updateToBounds

updateToBounds(boundingBox, isPreview, changeCamera?, target?): void

Parameters

Name
Type
Default value

boundingBox

Box3

undefined

isPreview

boolean

undefined

changeCamera

boolean

true

target?

Vector3

undefined

Returns

void

Inherited from

default.updateToBounds


zoomIn

zoomIn(value?): void

Parameters

Name
Type

value?

number

Returns

void

Inherited from

default.zoomIn


zoomOut

zoomOut(value?): void

Parameters

Name
Type

value?

number

Returns

void

Inherited from

default.zoomOut


zoomTo

zoomTo(cameraParameters): Promise<void>

Parameters

Name
Type

cameraParameters

Returns

Promise<void>

Inherited from

default.zoomTo


zoomToFitBounds

zoomToFitBounds(boundingBox, reset?): void

Parameters

Name
Type
Default value

boundingBox

Box3

undefined

reset

boolean

true

Returns

void

Inherited from

default.zoomToFitBounds

Last updated