Home Reference Source Repository
public class | source

RenderControllerClass

You can directly use an instance of this class. RenderController

Render Controller

Member Summary

Public Members
public

axes: *

public

camera: *

public
public
public
public

scene: *

public

spline: *

public

Method Summary

Public Methods
public

addCamera(cameraControlAreaElement: object)

add camera

public

Make lights

public

buildAxes(length: *)

add 3 Axis

public

buildAxis(src: *, dst: *, colorHex: *, dashed: *): *

public

it will call back on camera changes

public

onStateChange(newState: *)

it will call back on control changes

public

rebuildSpline(data: *)

rebuild spline

public

control the rendering

public

it just renders what is in the scene and won't create anything

public

setup(cameraControlAreaElement: object, width: number, height: number): *

initialize using three js

Public Members

public axes: * source

public camera: * source

public cameraHasChanged: boolean source

public curState: * source

public renderer: * source

public scene: * source

public spline: * source

public stateHasChanged: boolean source

Public Methods

public addCamera(cameraControlAreaElement: object) source

add camera

Params:

NameTypeAttributeDescription
cameraControlAreaElement object

its the element which camera could control in it

public addLights() source

Make lights

public buildAxes(length: *) source

add 3 Axis

Params:

NameTypeAttributeDescription
length *

determine 3 axis length

public buildAxis(src: *, dst: *, colorHex: *, dashed: *): * source

Params:

NameTypeAttributeDescription
src *
dst *
colorHex *
dashed *

Return:

*

public onCameraChange(): boolean source

it will call back on camera changes

Return:

boolean

public onStateChange(newState: *) source

it will call back on control changes

Params:

NameTypeAttributeDescription
newState *

public rebuildSpline(data: *) source

rebuild spline

Params:

NameTypeAttributeDescription
data *

public repeatRendering() source

control the rendering

public rerender() source

it just renders what is in the scene and won't create anything

public setup(cameraControlAreaElement: object, width: number, height: number): * source

initialize using three js

Params:

NameTypeAttributeDescription
cameraControlAreaElement object

its the element which camera could control in it

width number

canvas width

height number

canvas height

Return:

*