synergynetframework.jme.pickingsystem.data
Class ThreeDPickResultData

java.lang.Object
  extended by synergynetframework.jme.pickingsystem.data.PickResultData
      extended by synergynetframework.jme.pickingsystem.data.ThreeDPickResultData

public class ThreeDPickResultData
extends PickResultData

The Class ThreeDPickResultData.


Constructor Summary
ThreeDPickResultData(long originatingCursorID, com.jme.math.Vector2f cursorScreenPositionAtPick, com.jme.scene.Spatial pickedSpatial)
          Instantiates a new three d pick result data.
 
Method Summary
 com.jme.math.Vector2f getCursorScreenPositionAtPick()
          Position of the cursor when the spatial was picked.
 com.jme.math.Vector2f getCursorToSpatialScreenOffset()
          Difference between the screen location of the spatial and the screen location of the cursor.
 com.jme.math.Vector3f getPointOfSelection()
          Where, in world coordinates, the pick was made.
 com.jme.math.Vector2f getSpatialScreenLocationAtPick()
          Screen position of the picked spatial when it was picked.
 void setPointOfSelection(com.jme.math.Vector3f pointOfSelection)
          Where, in world coordinates, the pick was made.
 
Methods inherited from class synergynetframework.jme.pickingsystem.data.PickResultData
getDistanceWhenPicked, getOriginatingCursorID, getPickedSpatial, getPickedSpatialName, setDistanceWhenPicked, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreeDPickResultData

public ThreeDPickResultData(long originatingCursorID,
                            com.jme.math.Vector2f cursorScreenPositionAtPick,
                            com.jme.scene.Spatial pickedSpatial)
Instantiates a new three d pick result data.

Parameters:
originatingCursorID - the originating cursor id
cursorScreenPositionAtPick - the cursor screen position at pick
pickedSpatial - the picked spatial
Method Detail

getCursorScreenPositionAtPick

public com.jme.math.Vector2f getCursorScreenPositionAtPick()
Position of the cursor when the spatial was picked.

Returns:
the cursor screen position at pick

getCursorToSpatialScreenOffset

public com.jme.math.Vector2f getCursorToSpatialScreenOffset()
Difference between the screen location of the spatial and the screen location of the cursor.

Returns:
the cursor to spatial screen offset

getPointOfSelection

public com.jme.math.Vector3f getPointOfSelection()
Where, in world coordinates, the pick was made.

Returns:
the point of selection

getSpatialScreenLocationAtPick

public com.jme.math.Vector2f getSpatialScreenLocationAtPick()
Screen position of the picked spatial when it was picked.

Returns:
the spatial screen location at pick

setPointOfSelection

public void setPointOfSelection(com.jme.math.Vector3f pointOfSelection)
Where, in world coordinates, the pick was made.

Parameters:
pointOfSelection - the new point of selection