| java.lang.Object javax.media.j3d.PickShape javax.media.j3d.PickCylinder javax.media.j3d.PickCylinderRay
PickCylinderRay | final public class PickCylinderRay extends PickCylinder (Code) | | PickCylinderRay is an infinite cylindrical ray pick shape. It can
be used as an argument to the picking methods in BranchGroup and Locale.
See Also: BranchGroup.pickAll See Also: Locale.pickAll since: Java 3D 1.2 |
Constructor Summary | |
public | PickCylinderRay() Constructs an empty PickCylinderRay.
The origin and direction of the cylindrical ray are
initialized to (0,0,0). | public | PickCylinderRay(Point3d origin, Vector3d direction, double radius) Constructs an infinite cylindrical ray pick shape from the specified
parameters. |
Method Summary | |
final boolean | intersect(Bounds bounds, Point4d pickPos) Return true if shape intersect with bounds.
The point of intersection is stored in pickPos.
Parameters: bounds - the bounds object to check Parameters: pickPos - the location of the point of intersection (not used formethod. | public void | set(Point3d origin, Vector3d direction, double radius) Sets the parameters of this PickCylinderRay to the specified values. | PickShape | transform(Transform3D t3d) |
PickCylinderRay | public PickCylinderRay()(Code) | | Constructs an empty PickCylinderRay.
The origin and direction of the cylindrical ray are
initialized to (0,0,0). The radius is initialized
to 0.
|
PickCylinderRay | public PickCylinderRay(Point3d origin, Vector3d direction, double radius)(Code) | | Constructs an infinite cylindrical ray pick shape from the specified
parameters.
Parameters: origin - the origin of the cylindrical ray. Parameters: direction - the direction of the cylindrical ray. Parameters: radius - the radius of the cylindrical ray. |
intersect | final boolean intersect(Bounds bounds, Point4d pickPos)(Code) | | Return true if shape intersect with bounds.
The point of intersection is stored in pickPos.
Parameters: bounds - the bounds object to check Parameters: pickPos - the location of the point of intersection (not used formethod. Provided for compatibility). |
set | public void set(Point3d origin, Vector3d direction, double radius)(Code) | | Sets the parameters of this PickCylinderRay to the specified values.
Parameters: origin - the origin of the cylindrical ray. Parameters: direction - the direction of the cylindrical ray. Parameters: radius - the radius of the cylindrical ray. |
|
|