| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private double | |
| private boolean | |
| private int | |
| private Node | |
| private Point3D | |
| private Point3D | |
| private Point2D |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Point3D | Returns: the intersection pointPick ray used for picking ray, double Distance measured in ray direction magnitudes distance)Helper method for computing intersected point. |
| public final double | Returns: the distance from camera to the intersectionReturns the intersected distance between camera position and the picked Node |
| public final int | |
| public final Node | |
| public final Point3D | Returns: new Point3D presenting the intersected normalReturn the intersected normal in local coordinate of the picked Node |
| public final Point3D | Returns: new Point3D presenting the intersected pointReturn the intersected point in local coordinate of the picked Node |
| public final Point2D | getIntersectedTexCoord()
Return the intersected texture coordinates of the picked Node return new Point2D presenting the intersected TexCoord |
| public boolean | Returns: true if this chooser has been closed.Returns true if this chooser has been closed. |
| public boolean | Returns: true if the given distance is smallerThe distance to compare distance)Returns true if the given distance is smaller than the distance stored in this instance. |
| public boolean | Returns: true if there is no intersection stored in this instance.Returns true if there is no intersection stored in this instance. |
| public boolean | Returns: true if the offered intersection has been usedThe intersected node node, double The intersected distance measured in pickRay direction magnitudes distance, int The intersected face face, Point3D The intersection point point, Point2D The intersected texture coordinates texCoord)Offers an intersection. |
| public boolean | |
| public boolean | Returns: true if the offered intersection has been usedSubScene where the result was picked subScene, PickResult Picking result from the subScene pickResult, double distance from the camera to the intersection point
with the subScene plane distance)Offers an intersection found inside a SubScene. |
| private boolean | Returns: true if the offered intersection has been usedThe intersected node node, Node The node whose depthTest is considered. When
processing subScene pick result we need to consider the inner
picked node but subScene's depth test depthTestNode, double The intersected distance measured in pickRay direction magnitudes distance, Point3D The intersection point point, int The intersected face face, Point3D The intersected normal normal, Point2D The intersected texture coordinates texCoord)Process an offered intersection. |
| public PickResult | Returns: PickResult containing the current values of this chooserConverts the current content of this instance to the unmodifiable PickResult. |
| closed | back to summary |
|---|---|
| private boolean closed | |
| distance | back to summary |
|---|---|
| private double distance | |
| empty | back to summary |
|---|---|
| private boolean empty | |
| face | back to summary |
|---|---|
| private int face | |
| 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 | |
| PickResultChooser | back to summary |
|---|---|
| public PickResultChooser() | |
| computePoint | back to summary |
|---|---|
| public static Point3D computePoint(PickRay ray, double distance) Helper method for computing intersected point. This method would fit better to PickRay but it cannot work with Point3D (dependency issues). | |
| getIntersectedDistance | back to summary |
|---|---|
| public final double getIntersectedDistance() Returns the intersected distance between camera position and the picked Node
| |
| getIntersectedFace | back to summary |
|---|---|
| public final int getIntersectedFace() Returns the intersected face of the picked Node
| |
| getIntersectedNode | back to summary |
|---|---|
| public final Node getIntersectedNode() Returns the intersected Node
| |
| getIntersectedNormal | back to summary |
|---|---|
| public final Point3D getIntersectedNormal() Return the intersected normal in local coordinate of the picked Node
| |
| getIntersectedPoint | back to summary |
|---|---|
| public final Point3D getIntersectedPoint() Return the intersected point in local coordinate of the picked Node
| |
| getIntersectedTexCoord | back to summary |
|---|---|
| public final Point2D getIntersectedTexCoord() Return the intersected texture coordinates of the picked Node return new Point2D presenting the intersected TexCoord | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Returns true if this chooser has been closed. The chooser is closed when it is clear that no further result can be accepted (due to disabled depth testing).
| |
| isCloser | back to summary |
|---|---|
| public boolean isCloser(double distance) Returns true if the given distance is smaller than the distance stored in this instance.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns true if there is no intersection stored in this instance.
| |
| offer | back to summary |
|---|---|
| public boolean offer(Node node, double distance, int face, Point3D point, Point2D texCoord) Offers an intersection. If the given intersection is closer to the camera than the current one (the distance is smaller), this instance is updated to hold the given values.
| |
| offer | back to summary |
|---|---|
| public boolean offer(Node node, double distance, Point3D point) Offers an intersection with a non-Shape3D object. This method is used for 2D objects and for 3D objects with pickOnBounds==true; in both cases face and texCoord make no sense. If the given intersection is closer to the camera than the current one (the distance is smaller), this instance is updated to hold the given values. | |
| offerSubScenePickResult | back to summary |
|---|---|
| public boolean offerSubScenePickResult(SubScene subScene, PickResult pickResult, double distance) Offers an intersection found inside a SubScene.
| |
| processOffer | back to summary |
|---|---|
| private boolean processOffer(Node node, Node depthTestNode, double distance, Point3D point, int face, Point3D normal, Point2D texCoord) Process an offered intersection.
| |
| toPickResult | back to summary |
|---|---|
| public PickResult toPickResult() Converts the current content of this instance to the unmodifiable PickResult.
| |