< Zurück | Inhalt | Weiter >

16.2 PickShapes

java.lang.Object

|

+−−javax.media.j3d.PickShape


PickShapes are used by the PickTool to provide information about the volume of space, segment, or infinite ray that the objects in the scene should be tested against. Java 3D supports the PickShapes listed in table 16.1:


Table 16.1 PickShapes supported by Java 3D


PickShapes

Description

PickBounds

PickBounds is a finite pick shape defined with a Bounds object.

PickConeRay

PickConeRay is an infinite cone ray pick shape.

PickConeSegment

PickConeSegment is a finite cone segment pick shape.

PickCylinderRay

PickCylinderRay is an infinite cylindrical ray pick shape.

PickCylinderSegment

PickCylinderSegment is a finite cylindrical segment pick shape.

PickPoint

PickPoint is a pick shape defined as a single point.

PickRay

PickRay is an infinite ray pick shape.

PickSegment

PickSegment is a line segment pick shape.

By using the appropriate PickShape you can find the objects in your scene that


Fall within a given volume (PickBounds)

Intersect with an infinite cone, such as a ray of light shining from a torch (PickConeRay)

Intersect with a finite length cone, such as the objects within a torch ray, within a given distance (PickConeSegment)

Intersect with a laser beam (PickCylinderRay)

Intersect with a blind−man’s stick (PickCylinderSegment)

Intersect with a point (PickPoint)

Intersect with a very narrow laser beam (PickRay)

Intersect with a very narrow blind−man’s stick (PickSegment)