RenderControllerClass
Render Controller
Member Summary
Public Members | ||
public |
axes: * |
|
public |
camera: * |
|
public |
|
|
public |
curState: * |
|
public |
renderer: * |
|
public |
scene: * |
|
public |
spline: * |
|
public |
|
Method Summary
Public Methods | ||
public |
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 |
rerender() it just renders what is in the scene and won't create anything |
|
public |
initialize using three js |
Public Members
public axes: * source
public camera: * source
public curState: * source
public renderer: * source
public scene: * source
public spline: * source
Public Methods
public addCamera(cameraControlAreaElement: object) source
add camera
Params:
Name | Type | Attribute | Description |
cameraControlAreaElement | object | its the element which camera could control in it |
public buildAxes(length: *) source
add 3 Axis
Params:
Name | Type | Attribute | Description |
length | * | determine 3 axis length |
public buildAxis(src: *, dst: *, colorHex: *, dashed: *): * source
Params:
Name | Type | Attribute | Description |
src | * | ||
dst | * | ||
colorHex | * | ||
dashed | * |
Return:
* |
public onStateChange(newState: *) source
it will call back on control changes
Params:
Name | Type | Attribute | Description |
newState | * |