Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CatanaAxesHelper

Manages a Three.js Scene that contains three axes (X, Y, Z)

Hierarchy

  • CatanaAxesHelper

Index

Constructors

constructor

Properties

Private Readonly axesHelper

axesHelper: Object3D

Private cam

cam: PerspectiveCamera | OrthographicCamera

Private container

container: HTMLElement

Private Readonly ortho

ortho: OrthographicCamera

Private Readonly persp

persp: PerspectiveCamera

Private Readonly renderer

renderer: WebGLRenderer

Private Readonly scene

scene: Scene

Static Private Readonly AXES_HELPER_SIZE

AXES_HELPER_SIZE: 10 = 10

Static Private Readonly CAMERA_Z

CAMERA_Z: -45 = -45

Methods

render

  • render(cam_ref?: PerspectiveCamera | OrthographicCamera): void

setContainer

  • setContainer(container: HTMLElement, resize?: undefined | false | true): void

setSize

  • setSize(width: number, height: number): void

updateCamera

  • updateCamera(cam_ref: PerspectiveCamera | OrthographicCamera, rotation: Euler): void

Static Private createAxesHelper

  • createAxesHelper(): Object3D

Static Private createMesh

  • createMesh(g: CylinderGeometry | ConeGeometry, m: MeshBasicMaterial, t: Vector3, r: Quaternion): Mesh

Generated using TypeDoc