Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewerControls

Viewer controls

Hierarchy

  • ViewerControls

Index

Constructors

constructor

Properties

stage

stage: Stage

the stage object

viewer

viewer: Viewer

Accessors

position

  • get position(): Vector3

rotation

  • get rotation(): Quaternion

Methods

align

  • align(basis: Matrix4 | number[]): void

applyMatrix

  • applyMatrix(matrix: Matrix4 | number[]): void

center

  • center(position: Vector3 | number[]): void

changed

  • changed(): void

distance

  • distance(distance: number): void

getCameraDistance

  • getCameraDistance(): number

getCanvasScaleFactor

  • getCanvasScaleFactor(z?: number): number

getOrientation

  • getOrientation(optionalTarget?: Matrix4): any

getPositionOnCanvas

  • getPositionOnCanvas(position: Vector3, optionalTarget?: Vector2): any

orient

  • orient(orientation?: Matrix4): void

rotate

  • rotate(quaternion: Quaternion | number[]): void

spin

  • spin(axis: Vector3 | number[], angle: number): void

translate

  • translate(vector: Vector3 | number[]): void

zoom

  • zoom(delta: number): void

Object literals

signals

signals: object

changed

changed: Signal<any> = new signalsWrapper.Signal()

Generated using TypeDoc