|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.PickShape
javax.media.j3d.PickCone
javax.media.j3d.PickConeSegment
public final class PickConeSegment
PickConeSegment is a finite cone segment pick shape. It can be used as an argument to the picking methods in BranchGroup and Locale.
BranchGroup.pickAll(javax.media.j3d.PickShape)
,
Locale.pickAll(javax.media.j3d.PickShape)
Field Summary | |
---|---|
(package private) Point3d |
end
|
Fields inherited from class javax.media.j3d.PickCone |
---|
direction, origin, spreadAngle |
Fields inherited from class javax.media.j3d.PickShape |
---|
PICKBOUNDINGBOX, PICKBOUNDINGPOLYTOPE, PICKBOUNDINGSPHERE, PICKCONE, PICKCYLINDER, PICKPOINT, PICKRAY, PICKSEGMENT, PICKUNKNOWN |
Constructor Summary | |
---|---|
PickConeSegment()
Constructs an empty PickConeSegment. |
|
PickConeSegment(Point3d origin,
Point3d end,
double spreadAngle)
Constructs a finite cone pick shape from the specified parameters. |
Method Summary | |
---|---|
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)
|
Methods inherited from class javax.media.j3d.PickCone |
---|
getDirection, getOrigin, getPickType, getRadius, getSpreadAngle, getStartPoint |
Methods inherited from class javax.media.j3d.PickShape |
---|
distance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Point3d end
Constructor Detail |
---|
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 radiansMethod Detail |
---|
public 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)
intersect
in class PickCone
bounds
- the bounds object to checkpickPos
- the location of the point of intersection (not used for
method. Provided for compatibility).PickShape transform(Transform3D t3d)
transform
in class PickShape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |