SoHandleEventActionGetPickedPoint Method |
Returns the frontmost object hit (as an OIV.Inventor.SoPickedPoint) by performing a pick based on the mouse location specified in the event for which the action is being applied.
Namespace: OIV.Inventor.Actions
The first time this is called for a particular event, an OIV.Inventor.Actions.SoRayPickAction is applied to find this object; subsequent calls for the same event return the same information. The storage for the picked point remains valid as long as the action is not re-applied or deleted.
Note: The applied OIV.Inventor.Actions.SoRayPickAction does not compute texture coordinates and normal vector for the picked point. Thus, OIV.Inventor.Actions.SoHandleEventAction.GetPickedPoint().getNormal() returns (0,0,0) and OIV.Inventor.Actions.SoHandleEventAction.GetPickedPoint().getTextureCoords() returns (0,0,0,0).