Class Index | File Index

Classes


Class c3dl.PickingResult

c3dl.PickingResult is contains the result of the user picking something in the scene. This object is created within the library and sent to the picking callback function. You can query things such as which objects were picked, which canvas and which button was used for the pick.
Defined in: pickingresult.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Get the mouse button that was used for the pick.
 
Get the canvas the user clicked on.
 
Get the list of objects which were picked.
Class Detail
c3dl.PickingResult()
Method Detail
{int} getButtonUsed()
Get the mouse button that was used for the pick.
Returns:
{int} the mouse button used for the pick.

{HTMLComponent} getCanvas()
Get the canvas the user clicked on.
Returns:
{HTMLComponent} the canvas the user clicked on.

{Array} getObjects()
Get the list of objects which were picked. This list contains points, lines and collada objects.
Returns:
{Array} References to objects which have been picked.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 19 2010 17:58:41 GMT-0500 (EST)