Class LinePickSensor

java.lang.Object
All Implemented Interfaces:
X3DChildNode, X3DNode, X3DSensorNode, LinePickSensor, X3DPickSensorNode

public class LinePickSensor extends X3DConcreteNode implements LinePickSensor
LinePickSensor uses one or more pickingGeometry line segments to compute intersections with pickTarget shapes.

Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the org.web3d.x3d.jsail classes. LinePickSensor node tooltip: (X3D version 3.2 or later) [X3DPickSensorNode] LinePickSensor uses one or more pickingGeometry line segments to compute intersections with pickTarget shapes. As each line intersection generates a known point in space, useful event information is returned including normal, geometry and texCoord values.
  • Hint: sort order for line picking is based on each pair of coordinates that defining a line segment, with first declared vertex of the segment defined to be the start of the line to which the intersection points are closest.
  • Hint: when the picking line segment intersects a coplanar polygon, computed intersection point(s) are illustrated in Figure 38.1 https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS /Part01/components/picking.html#f-LineIntersection
  • Hint: picking is performed between rendered frames of the event model. An author sets up the picking request in one frame by placing a LinePickSensor in the desired location. At the start of the next frame, any picking intersections are reported by the pick sensor.
  • Hint: picking notification is performed at the start of the frame for all enabled pick sensors once all other sensors are processed.
  • Hint: event timing details are explained in X3D Specification 4.4.8.3 Execution model https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS /Part01/concepts.html#ExecutionModel
  • Warning: order of contained nodes is significant, single pickingGeometry node must precede pickTarget node array.
  • Hint: IndexedLineSet or Lineset can be used for pickingGeometry node.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also: