| java.lang.Object javax.media.j3d.PickShape javax.media.j3d.PickCylinder javax.media.j3d.PickCylinderSegment
PickCylinderSegment | final public class PickCylinderSegment extends PickCylinder (Code) | | PickCylinderSegment is a finite cylindrical segment 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 | PickCylinderSegment() Constructs an empty PickCylinderSegment.
The origin and end points of the cylindrical segment are
initialized to (0,0,0). | public | PickCylinderSegment(Point3d origin, Point3d end, double radius) Constructs a finite cylindrical segment pick shape from the specified
parameters. |
Method Summary | |
public void | getEnd(Point3d end) Gets the end point of this PickCylinderSegment. | final boolean | intersect(Bounds bounds, Point4d pickPos) Returns 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, Point3d end, double radius) Sets the parameters of this PickCylinderSegment to the specified values. | PickShape | transform(Transform3D t3d) |
PickCylinderSegment | public PickCylinderSegment()(Code) | | Constructs an empty PickCylinderSegment.
The origin and end points of the cylindrical segment are
initialized to (0,0,0). The radius is initialized
to 0.
|
PickCylinderSegment | public PickCylinderSegment(Point3d origin, Point3d end, double radius)(Code) | | Constructs a finite cylindrical segment pick shape from the specified
parameters.
Parameters: origin - the origin point of the cylindrical segment. Parameters: end - the end point of the cylindrical segment. Parameters: radius - the radius of the cylindrical segment. |
getEnd | public void getEnd(Point3d end)(Code) | | Gets the end point of this PickCylinderSegment.
Parameters: end - the Point3d object into which the end pointwill be copied. |
intersect | final boolean intersect(Bounds bounds, Point4d pickPos)(Code) | | Returns 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, Point3d end, double radius)(Code) | | Sets the parameters of this PickCylinderSegment to the specified values.
Parameters: origin - the origin point of the cylindrical segment. Parameters: end - the end point of the cylindrical segment. Parameters: radius - the radius of the cylindrical segment. |
|
|