| Modifier and Type | Field and Description |
|---|---|
| private double | |
| private int | |
| public static final int | FACE_UNDEFINED
An undefined face. |
| private Node | |
| private Point3D | |
| private Point3D | |
| private Point2D |
| Access | Constructor and Description |
|---|---|
| public | PickResult(Node
The intersected node node, Point3D The intersected point in local coordinate of the picked Node point, double The intersected distance between camera position and the picked Node distance, int The intersected face of the picked Node face, Point2D The intersected texture coordinates of the picked Node texCoord)Creates a new instance of PickResult. |
| public | PickResult(Node
The intersected node node, Point3D The intersected point in local coordinate of the picked Node point, double The intersected distance between camera position and the picked Node distance, int The intersected face of the picked Node face, Point3D The intersected normal of the picked Node normal, Point2D The intersected texture coordinates of the picked Node texCoord)Creates a new instance of PickResult. |
| public | PickResult(Node
The intersected node node, Point3D The intersected point in local coordinate of the picked Node point, double The intersected distance between camera position and the picked Node distance)Creates a new instance of PickResult for a non-3d-shape target. |
| public | PickResult(EventTarget
The picked target (null in case of a Scene) target, double The scene X coordinate sceneX, double The scene Y coordinate sceneY)Creates a pick result for a 2D case where no additional information is needed. |
| Modifier and Type | Method and Description |
|---|---|
| public final double | Returns: the distance from camera to the intersectionReturns the intersected distance between camera position and the intersected point. |
| public final int | Returns: the picked faceReturns the intersected face of the picked Node, FACE_UNDEFINED if the node doesn't have user-specified faces or was picked on bounds. |
| public final Node | Returns: the picked node or null if no node was pickedReturns the intersected node. |
| public final Point3D | Returns: a new Point3D presenting the intersected normalReturn the intersected normal of the picked 3d shape. |
| public final Point3D | Returns: new Point3D presenting the intersected pointReturns the intersected point in local coordinate of the picked Node. |
| public final Point2D | Returns: a new Point2D presenting the intersected TexCoordReturn the intersected texture coordinates of the picked 3d shape. |
| public String |
| distance | back to summary |
|---|---|
| private double distance | |
| face | back to summary |
|---|---|
| private int face | |
| FACE_UNDEFINED | back to summary |
|---|---|
| public static final int FACE_UNDEFINED An undefined face. This value is used for the intersected face if the picked node has no user-specified faces. | |
| node | back to summary |
|---|---|
| private Node node | |
| normal | back to summary |
|---|---|
| private Point3D normal | |
| point | back to summary |
|---|---|
| private Point3D point | |
| texCoord | back to summary |
|---|---|
| private Point2D texCoord | |
| PickResult | back to summary |
|---|---|
| public PickResult(Node node, Point3D point, double distance, int face, Point2D texCoord) Creates a new instance of PickResult.
| |
| PickResult | back to summary |
|---|---|
| public PickResult(Node node, Point3D point, double distance, int face, Point3D normal, Point2D texCoord) Creates a new instance of PickResult.
| |
| PickResult | back to summary |
|---|---|
| public PickResult(Node node, Point3D point, double distance) Creates a new instance of PickResult for a non-3d-shape target. Sets face to FACE_UNDEFINED and texCoord to null. | |
| PickResult | back to summary |
|---|---|
| public PickResult(EventTarget target, double sceneX, double sceneY) 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.
| |
| getIntersectedDistance | back to summary |
|---|---|
| public final double getIntersectedDistance() Returns the intersected distance between camera position and the intersected point.
| |
| getIntersectedFace | back to summary |
|---|---|
| public final int getIntersectedFace() Returns the intersected face of the picked Node, FACE_UNDEFINED if the node doesn't have user-specified faces or was picked on bounds.
| |
| getIntersectedNode | back to summary |
|---|---|
| public final Node getIntersectedNode() Returns the intersected node. Returns null if there was no intersection with any node and the scene was picked.
| |
| getIntersectedNormal | back to summary |
|---|---|
| public final Point3D getIntersectedNormal() Return the intersected normal of the picked 3d shape. If the picked target is not Shape3D or has pickOnBounds==true, it returns null.
| |
| getIntersectedPoint | back to summary |
|---|---|
| public final Point3D getIntersectedPoint() Returns the intersected point in local coordinate of the picked Node. If no node was picked, it returns the intersected point with the projection plane.
| |
| getIntersectedTexCoord | back to summary |
|---|---|
| public final Point2D getIntersectedTexCoord() Return the intersected texture coordinates of the picked 3d shape. If the picked target is not Shape3D or has pickOnBounds==true, it returns null.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |