de.jreality.tools
Class FaceDragEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.jreality.tools.FaceDragEvent
All Implemented Interfaces:
Serializable

public class FaceDragEvent
extends EventObject

See Also:
Serialized Form

Constructor Summary
FaceDragEvent(IndexedFaceSet faceSet, int index, double[] translation)
           
 
Method Summary
 int[] getFaceIndices()
          BE CAREFUL: this method uses the face index when the drag started.
 double[][] getFaceVertices()
          BE CAREFUL: this method uses the face index when the drag started.
 int getIndex()
           
 IndexedFaceSet getIndexedFaceSet()
           
 double[] getTranslation()
           
 double getX()
          The x-coordinate of this event's translation.
 double getY()
          The y-coordinate of this event's translation.
 double getZ()
          The z-coordinate of this event's translation.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FaceDragEvent

public FaceDragEvent(IndexedFaceSet faceSet,
                     int index,
                     double[] translation)
Method Detail

getX

public double getX()
The x-coordinate of this event's translation.


getY

public double getY()
The y-coordinate of this event's translation.


getZ

public double getZ()
The z-coordinate of this event's translation.


getTranslation

public double[] getTranslation()

getIndex

public int getIndex()

getFaceIndices

public int[] getFaceIndices()
BE CAREFUL: this method uses the face index when the drag started. So it makes only sense to use it when the combinatorics of the indexed face set was not changed while dragging.

Returns:
an array containing the indices of the face vertices
Throws:
ArrayIndexOutOfBoundsException

getFaceVertices

public double[][] getFaceVertices()
BE CAREFUL: this method uses the face index when the drag started. So it makes only sense to use it when the combinatorics of the indexed face set was not changed while dragging.

Returns:
an array containing the face vertices
Throws:
ArrayIndexOutOfBoundsException

getIndexedFaceSet

public IndexedFaceSet getIndexedFaceSet()