PickResult

scalafx.scene.input.PickResult
See thePickResult companion object
class PickResult(val delegate: PickResult) extends SFXDelegate[PickResult]

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

Attributes

Companion
object
Graph
Supertypes
trait SFXDelegate[PickResult]
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(target: EventTarget, sceneX: Double, sceneY: Double)

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.

Value parameters

sceneX
  • The scene X coordinate
sceneY
  • The scene Y coordinate
target
  • The picked target (null in case of a Scene)

Attributes

def this(node: Node, point: Point3D, distance: Double)

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.

Value parameters

distance
  • The intersected distance between camera position and the picked Node
node
  • The intersected node
point
  • The intersected point in local coordinate of the picked Node

Attributes

def this(node: Node, point: Point3D, distance: Double, face: Int, texCoord: Point2D)

Creates a new instance of PickResult.

Creates a new instance of PickResult.

Value parameters

distance
  • The intersected distance between camera position and the picked Node
face
  • The intersected face of the picked Node
node
  • The intersected node
point
  • The intersected point in local coordinate of the picked Node
texCoord
  • The intersected texture coordinates of the picked Node

Attributes

Concrete methods

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

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

Attributes

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

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

Attributes

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

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

Attributes

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

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

Attributes

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

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

Attributes

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: PickResult

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes