| java.lang.Object javax.media.j3d.PickShape javax.media.j3d.PickCone javax.media.j3d.PickConeSegment
PickConeSegment | final public class PickConeSegment extends PickCone (Code) | | PickConeSegment is a finite cone 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 | PickConeSegment() Constructs an empty PickConeSegment.
The origin and end point of the cone are
initialized to (0,0,0). | public | PickConeSegment(Point3d origin, Point3d end, double spreadAngle) Constructs a finite cone pick shape from the specified
parameters. |
Method Summary | |
public void | getEnd(Point3d end) Gets the end point of this PickConeSegment. | 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, Point3d end, double spreadAngle) Sets the parameters of this PickCone to the specified values. | PickShape | transform(Transform3D t3d) |
PickConeSegment | public PickConeSegment()(Code) | | Constructs an empty PickConeSegment.
The origin and end point of the cone are
initialized to (0,0,0). The spread angle is initialized
to PI/64 radians.
|
PickConeSegment | public PickConeSegment(Point3d origin, Point3d end, double spreadAngle)(Code) | | Constructs a finite cone pick shape from the specified
parameters.
Parameters: origin - the origin of the cone Parameters: end - the end of the cone along the direction vector Parameters: spreadAngle - the spread angle of the cone in radians |
getEnd | public void getEnd(Point3d end)(Code) | | Gets the end point of this PickConeSegment.
Parameters: end - the Point3d object into which the end pointwill be copied. |
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, Point3d end, double spreadAngle)(Code) | | Sets the parameters of this PickCone to the specified values.
Parameters: origin - the origin of the cone Parameters: end - the end of the cone Parameters: spreadAngle - the spread angle of the cone in radians |
|
|