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.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| 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.
|
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.