|
|||||||||
| 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.PickRay
public final class PickRay
PickRay is an infinite ray 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) Vector3d |
direction
|
(package private) Point3d |
origin
|
| Fields inherited from class javax.media.j3d.PickShape |
|---|
PICKBOUNDINGBOX, PICKBOUNDINGPOLYTOPE, PICKBOUNDINGSPHERE, PICKCONE, PICKCYLINDER, PICKPOINT, PICKRAY, PICKSEGMENT, PICKUNKNOWN |
| Constructor Summary | |
|---|---|
PickRay()
Constructs an empty PickRay. |
|
PickRay(Point3d origin,
Vector3d direction)
Constructs an infinite ray pick shape from the specified parameters. |
|
| Method Summary | |
|---|---|
void |
get(Point3d origin,
Vector3d direction)
Retrieves the parameters from this PickRay. |
(package private) int |
getPickType()
|
(package private) Point3d |
getStartPoint()
|
(package private) boolean |
intersect(Bounds bounds,
Point4d pickPos)
Return true if shape intersect with bounds. |
void |
set(Point3d origin,
Vector3d direction)
Sets the parameters of this PickRay to the specified values. |
(package private) PickShape |
transform(Transform3D t3d)
|
| 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 origin
Vector3d direction
| Constructor Detail |
|---|
public PickRay()
public PickRay(Point3d origin,
Vector3d direction)
origin - the origin of the ray.direction - the direction of the ray.| Method Detail |
|---|
public void set(Point3d origin,
Vector3d direction)
origin - the origin of the ray.direction - the direction of the ray.
public void get(Point3d origin,
Vector3d direction)
origin - the Point3d object into which the origin will be copied.direction - the Vector3d object into which the direction
will be copied.
final boolean intersect(Bounds bounds,
Point4d pickPos)
intersect in class PickShapePickShape transform(Transform3D t3d)
transform in class PickShapePoint3d getStartPoint()
getStartPoint in class PickShapeint getPickType()
getPickType in class PickShape
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||