public final class PickConeSegment extends PickCone
BranchGroup.pickAll(javax.media.j3d.PickShape),
Locale.pickAll(javax.media.j3d.PickShape)| Modifier and Type | Field and Description |
|---|---|
(package private) Point3d |
end |
direction, origin, spreadAnglePICKBOUNDINGBOX, PICKBOUNDINGPOLYTOPE, PICKBOUNDINGSPHERE, PICKCONE, PICKCYLINDER, PICKPOINT, PICKRAY, PICKSEGMENT, PICKUNKNOWN| Constructor and Description |
|---|
PickConeSegment()
Constructs an empty PickConeSegment.
|
PickConeSegment(Point3d origin,
Point3d end,
double spreadAngle)
Constructs a finite cone pick shape from the specified
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
calcDirection()
Calculates the direction for this PickCylinderSegment, based on start
and end points.
|
void |
getEnd(Point3d end)
Gets the end point of this PickConeSegment.
|
(package private) boolean |
intersect(Bounds bounds,
Point4d pickPos)
Return true if shape intersect with bounds.
|
void |
set(Point3d origin,
Point3d end,
double spreadAngle)
Sets the parameters of this PickCone to the specified values.
|
(package private) PickShape |
transform(Transform3D t3d) |
getDirection, getOrigin, getPickType, getRadius, getSpreadAngle, getStartPointPoint3d end
public PickConeSegment()
PI/64 radians.public PickConeSegment(Point3d origin, Point3d end, double spreadAngle)
origin - the origin of the coneend - the end of the cone along the direction vectorspreadAngle - the spread angle of the cone in radianspublic void set(Point3d origin, Point3d end, double spreadAngle)
origin - the origin of the coneend - the end of the conespreadAngle - the spread angle of the cone in radianspublic void getEnd(Point3d end)
end - the Point3d object into which the end point
will be copied.private void calcDirection()
final boolean intersect(Bounds bounds, Point4d pickPos)
PickShape transform(Transform3D t3d)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.