CameraWalkOperator

class wv.Operators.Camera.CameraWalkOperator()

Methods

wv.Operators.Camera.CameraWalkOperator.addMapping()

inherited

addMapping(button: Button, modifier: KeyModifiers?): void

Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. All mappings require a mouse button, but a key modifier is optional.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void

wv.Operators.Camera.CameraWalkOperator.checkMapping()

inherited

checkMapping(event: MouseInputEvent): boolean

Checks if the given mouse event matches any of the button and key modifier mappings for the operator. If no mappings are defined, it returns true.

Parameters

event: MouseInputEvent

The mouse event to check against the operator’s mappings.

Returns: boolean

True if the event matches any mapping or if no mappings are defined, false otherwise.
wv.Operators.Camera.CameraWalkOperator.clearMapping()

inherited

clearMapping(): void

Clears any button and key modifier mappings for the operator.

Returns: void

wv.Operators.Camera.CameraWalkOperator.disableBimMode()

inherited

disableBimMode(): Promise

Disables BIM mode, which includes collision detection

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.enableBimMode()

inherited

enableBimMode(): Promise

Enables BIM mode, which includes collision detection

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.getBimDoorConfig()

inherited

getBimDoorConfig(): DoorConfig

Gets the door distance config used by BIM mode. See also: [[enableBimMode]].

Returns: DoorConfig

wv.Operators.Camera.CameraWalkOperator.getBimFloorConfig()

inherited

getBimFloorConfig(): FloorConfig

Gets the floor distance config used by BIM mode. See also: [[enableBimMode]].

Returns: FloorConfig

wv.Operators.Camera.CameraWalkOperator.getBimModeEnabled()

inherited

getBimModeEnabled(): boolean

Returns true if BIM mode is currently active

Returns: boolean

wv.Operators.Camera.CameraWalkOperator.getBimWallConfig()

inherited

getBimWallConfig(): WallConfig

Gets the wall distance config used by BIM mode. See also: [[enableBimMode]].

Returns: WallConfig

wv.Operators.Camera.CameraWalkOperator.getElevationSpeed()

inherited

getElevationSpeed(): number

Gets the elevation speed for moving the camera up and down.

Returns: number

wv.Operators.Camera.CameraWalkOperator.getMajorAxis()

inherited

getMajorAxis(): Axis

Get major axis

Returns: Axis

wv.Operators.Camera.CameraWalkOperator.getRotationSpeed()

inherited

getRotationSpeed(): number

Gets the rotation speed for tilt and rotate.

Returns: number

wv.Operators.Camera.CameraWalkOperator.getTilt()

inherited

getTilt(): number

Gets the tilt value.

Returns: number

wv.Operators.Camera.CameraWalkOperator.getViewAngle()

inherited

getViewAngle(): number

Gets the view angle.

Returns: number

wv.Operators.Camera.CameraWalkOperator.getWalkActive()

inherited

getWalkActive(): boolean

Returns true if walking is currently active

Returns: boolean

wv.Operators.Camera.CameraWalkOperator.getWalkSpeed()

inherited

getWalkSpeed(): number

Gets the walkSpeed for walking forward, backwards, left, and right.

Returns: number

wv.Operators.Camera.CameraWalkOperator.getZoomSpeed()

inherited

getZoomSpeed(): number

Gets the speed used when walking with the mouse scroll wheel.

Returns: number

wv.Operators.Camera.CameraWalkOperator.isActive()

inherited

isActive(): boolean

Checks if the operator is currently active, which is determined by whether the button and key modifier mapping is active or a touch event is active, and that a double click has not occurred and the context menu is not open.

Returns: boolean

True if the operator is active, false otherwise.
wv.Operators.Camera.CameraWalkOperator.isBimModeEnabled()

inherited

isBimModeEnabled(): boolean

Returns: boolean

wv.Operators.Camera.CameraWalkOperator.isDragging()

inherited

isDragging(): boolean

Checks if the operator is currently dragging.

Returns: boolean

True if the operator is dragging, false otherwise.
wv.Operators.Camera.CameraWalkOperator.onDoubleClick()

inherited

onDoubleClick(_event: MouseInputEvent): void

NO-OP method for handling double click events. By default, it does nothing, but child classes can override this method to provide specific behavior for double click events.

Parameters

_event: MouseInputEvent

The double click event to handle.

Returns: void

wv.Operators.Camera.CameraWalkOperator.resetDefaultWalkSpeeds()

inherited

resetDefaultWalkSpeeds(): Promise

Sets the walk, rotate, and mouse look speeds to the default values.

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.rotateLeft()

inherited

rotateLeft(degrees: number): void

Parameters

degrees: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.rotateRight()

inherited

rotateRight(degrees: number): void

Parameters

degrees: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.setBimDoorConfig()

inherited

setBimDoorConfig(doorConfig: DoorConfig): void

Sets the door distance config used by BIM mode.

Parameters

doorConfig: DoorConfig

Returns: void

wv.Operators.Camera.CameraWalkOperator.setBimFloorConfig()

inherited

setBimFloorConfig(floorConfig: FloorConfig): void

Sets the floor distance config used by BIM mode. See also: [[enableBimMode]].

Parameters

floorConfig: FloorConfig

Returns: void

wv.Operators.Camera.CameraWalkOperator.setBimWallConfig()

inherited

setBimWallConfig(wallConfig: WallConfig): void

Sets the wall distance config used by BIM mode. See also: [[enableBimMode]].

Parameters

wallConfig: WallConfig

Returns: void

wv.Operators.Camera.CameraWalkOperator.setElevationSpeed()

inherited

setElevationSpeed(elevationSpeed: number): void

Sets the elevation speed for moving the camera up and down.

Parameters

elevationSpeed: number

The camera will move by elevationSpeed per second.

Returns: void

wv.Operators.Camera.CameraWalkOperator.setHandled()

inherited

setHandled(): boolean

Base method for setting the handled state of events. By default, it returns false, but child classes can override this method to provide specific behavior for determining whether events should be marked as handled.

Returns: boolean

True if the event should be marked as handled, false otherwise.
wv.Operators.Camera.CameraWalkOperator.setMapping()

inherited

setMapping(button: Button, modifier: KeyModifiers?): void

Sets the button and key modifier mapping for the operator.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void

wv.Operators.Camera.CameraWalkOperator.setRotationSpeed()

inherited

setRotationSpeed(rotationSpeed: number): void

Sets the rotation speed for tilt and rotate.

Parameters

rotationSpeed: number

The camera will rotate by rotationSpeed degrees per second.

Returns: void

wv.Operators.Camera.CameraWalkOperator.setTilt()

inherited

setTilt(tilt: number): void

Sets the tilt value. Values must be between -45 and 45 degrees.

Parameters

tilt: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.setViewAngle()

inherited

setViewAngle(degrees: number): void

Sets the view angle. Values must be between 30 and 150 degrees.

Parameters

degrees: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.setWalkSpeed()

inherited

setWalkSpeed(walkSpeed: number): void

Sets the walkSpeed for walking forward, backwards, left, and right.

Parameters

walkSpeed: number

The camera will move by walkSpeed per second.

Returns: void

wv.Operators.Camera.CameraWalkOperator.setZoomSpeed()

inherited

setZoomSpeed(zoomSpeed: number): void

Sets the speed to walk when using the mouse scroll wheel.

Parameters

zoomSpeed: number

distance for walking with the mouse scroll wheel.

Returns: void

wv.Operators.Camera.CameraWalkOperator.stopInteraction()

inherited

stopInteraction(): void

Stops the current interaction by triggering the “endInteraction” event on the viewer, and resets the dragging state, drag count, and button modifier active state.

Returns: void

wv.Operators.Camera.CameraWalkOperator.tiltDown()

inherited

tiltDown(degrees: number): void

Parameters

degrees: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.tiltUp()

inherited

tiltUp(degrees: number): void

Parameters

degrees: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.toggleBimMode()

inherited

toggleBimMode(): Promise

Toggles BIM mode, deactivating it if it’s activated and activating it if it’s deactivated

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.walkBackward()

inherited

walkBackward(walkDistance: number): void

Parameters

walkDistance: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.walkBackwardWithCollision()

inherited

walkBackwardWithCollision(walkDistance: number): Promise

Parameters

walkDistance: number

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.walkDown()

inherited

walkDown(walkDistance: number): void

Parameters

walkDistance: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.walkForward()

inherited

walkForward(walkDistance: number): void

Parameters

walkDistance: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.walkForwardWithCollision()

inherited

walkForwardWithCollision(walkDistance: number): Promise

Parameters

walkDistance: number

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.walkLeft()

inherited

walkLeft(walkDistance: number): void

Parameters

walkDistance: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.walkLeftWithCollision()

inherited

walkLeftWithCollision(walkDistance: number): Promise

Parameters

walkDistance: number

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.walkRight()

inherited

walkRight(walkDistance: number): void

Parameters

walkDistance: number

Returns: void

wv.Operators.Camera.CameraWalkOperator.walkRightWithCollision()

inherited

walkRightWithCollision(walkDistance: number): Promise

Parameters

walkDistance: number

Returns: Promise

wv.Operators.Camera.CameraWalkOperator.walkUp()

inherited

walkUp(walkDistance: number): void

Parameters

walkDistance: number

Returns: void