Class Index | File Index

Classes


Class ROS3D.Viewer


Defined in: Viewer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ROS3D.Viewer(options)
A Viewer can be used to render an interactive 3D scene to a HTML5 canvas.
Method Summary
Method Attributes Method Name and Description
 
addObject(object, selectable)
Add the given THREE Object3D to the global scene in the viewer.
<inner>  
draw()
Renders the associated scene to the that.
Class Detail
ROS3D.Viewer(options)
A Viewer can be used to render an interactive 3D scene to a HTML5 canvas.
Parameters:
options
- object with following keys: * divID - the ID of the div to place the viewer in * width - the initial width, in pixels, of the canvas * height - the initial height, in pixels, of the canvas * background (optional) - the color to render the background, like '#efefef' * antialias (optional) - if antialiasing should be used * intensity (optional) - the lighting intensity setting to use
Method Detail
addObject(object, selectable)
Add the given THREE Object3D to the global scene in the viewer.
Parameters:
object
- the THREE Object3D to add
selectable
(optional) - if the object should be added to the selectable list

<inner> draw()
Renders the associated scene to the that.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 03 2013 18:15:58 GMT-0700 (PDT)