Packageaway3d.core.pick
Interfacepublic interface IPicker
Implementors RaycastPicker, ShaderPicker

Provides an interface for picking objects that can pick 3d objects from a view or scene.



Public Properties
 PropertyDefined By
  onlyMouseEnabled : Boolean
Determines whether the picker takes account of the mouseEnabled properties of entities.
IPicker
Public Methods
 MethodDefined By
  
dispose():void
Disposes memory used by the IPicker object
IPicker
  
getSceneCollision(position:Vector3D, direction:Vector3D, scene:Scene3D):PickingCollisionVO
Gets the collision object from the scene position and direction of the picking ray.
IPicker
  
getViewCollision(x:Number, y:Number, view:View3D):PickingCollisionVO
Gets the collision object from the screen coordinates of the picking ray.
IPicker
Property Detail
onlyMouseEnabledproperty
onlyMouseEnabled:Boolean

Determines whether the picker takes account of the mouseEnabled properties of entities. Defaults to true.


Implementation
    public function get onlyMouseEnabled():Boolean
    public function set onlyMouseEnabled(value:Boolean):void
Method Detail
dispose()method
public function dispose():void

Disposes memory used by the IPicker object

getSceneCollision()method 
public function getSceneCollision(position:Vector3D, direction:Vector3D, scene:Scene3D):PickingCollisionVO

Gets the collision object from the scene position and direction of the picking ray.

Parameters

position:Vector3D — The position of the picking ray in scene-space.
 
direction:Vector3D — The direction of the picking ray in scene-space.
 
scene:Scene3D — The scene on which the picking object acts.

Returns
PickingCollisionVO
getViewCollision()method 
public function getViewCollision(x:Number, y:Number, view:View3D):PickingCollisionVO

Gets the collision object from the screen coordinates of the picking ray.

Parameters

x:Number — The x coordinate of the picking ray in screen-space.
 
y:Number — The y coordinate of the picking ray in screen-space.
 
view:View3D — The view on which the picking object acts.

Returns
PickingCollisionVO