Class/Object

scalafx.scene.input

PickResult

Related Docs: object PickResult | package input

Permalink

class PickResult extends SFXDelegate[javafx.scene.input.PickResult]

A container for the result of a pick event. Wrapper for JavaFX's PickResult.

Source
PickResult.scala
Linear Supertypes
SFXDelegate[javafx.scene.input.PickResult], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PickResult
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PickResult(node: Node, point: Point3D, distance: Double, face: Int, texCoord: Point2D)

    Permalink

    Creates a new instance of PickResult.

    Creates a new instance of PickResult.

    node

    - The intersected node

    point

    - The intersected point in local coordinate of the picked Node

    distance

    - The intersected distance between camera position and the picked Node

    face

    - The intersected face of the picked Node

    texCoord

    - The intersected texture coordinates of the picked Node

  2. new PickResult(node: Node, point: Point3D, distance: Double)

    Permalink

    Creates a new instance of PickResult for a non-3d-shape target.

    Creates a new instance of PickResult for a non-3d-shape target.

    Sets face to FACE_UNDEFINED and texCoord to null.

    node

    - The intersected node

    point

    - The intersected point in local coordinate of the picked Node

    distance

    - The intersected distance between camera position and the picked Node

  3. new PickResult(target: EventTarget, sceneX: Double, sceneY: Double)

    Permalink

    Creates a pick result for a 2D case where no additional information is needed.

    Creates a pick result for a 2D case where no additional information is needed.

    Converts the given scene coordinates to the target's local coordinate space and stores the value as the intersected point. Sets intersected node to the given target, distance to 1.0, face to FACE_UNDEFINED and texCoord to null.

    target

    - The picked target (null in case of a Scene)

    sceneX

    - The scene X coordinate

    sceneY

    - The scene Y coordinate

  4. new PickResult(delegate: javafx.scene.input.PickResult)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val delegate: javafx.scene.input.PickResult

    Permalink

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    PickResultSFXDelegate
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(ref: Any): Boolean

    Permalink

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    Definition Classes
    SFXDelegate → AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  12. def intersectedDistance: Double

    Permalink

    Returns the intersected distance between camera position and the intersected point.

  13. def intersectedFace: Int

    Permalink

    Returns the intersected face of the picked Node, FACE_UNDEFINED if the node doesn't have user-specified faces or was picked on bounds.

  14. def intersectedNode: Option[Node]

    Permalink

    Returns the intersected node.

    Returns the intersected node. Returns None if there was no intersection with any node and the scene was picked.

  15. def intersectedPoint: Point3D

    Permalink

    Returns the intersected point in local coordinate of the picked Node.

  16. def intersectedTexCoord: Option[Point2D]

    Permalink

    Return the intersected texture coordinates of the picked 3d shape.

    Return the intersected texture coordinates of the picked 3d shape. If the picked target is not Shape3D or has pickOnBounds==true, it returns None.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

    Definition Classes
    SFXDelegate → AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SFXDelegate[javafx.scene.input.PickResult]

Inherited from AnyRef

Inherited from Any

Ungrouped