javax.media.j3d
Class PickBounds

java.lang.Object
  extended by javax.media.j3d.PickShape
      extended by javax.media.j3d.PickBounds

public final class PickBounds
extends PickShape

PickBounds is a finite pick shape defined with a Bounds object. It can be used as an argument to the picking methods in BranchGroup and Locale.

See Also:
BranchGroup.pickAll(javax.media.j3d.PickShape), Locale.pickAll(javax.media.j3d.PickShape)

Field Summary
(package private)  Bounds bounds
           
 
Fields inherited from class javax.media.j3d.PickShape
PICKBOUNDINGBOX, PICKBOUNDINGPOLYTOPE, PICKBOUNDINGSPHERE, PICKCONE, PICKCYLINDER, PICKPOINT, PICKRAY, PICKSEGMENT, PICKUNKNOWN
 
Constructor Summary
PickBounds()
          Constructs an empty PickBounds.
PickBounds(Bounds boundsObject)
          Constructs a PickBounds from the specified bounds object.
 
Method Summary
 Bounds get()
          Gets the bounds object from this PickBounds.
(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(Bounds boundsObject)
          Sets the bounds object of this PickBounds to the specified object.
(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

bounds

Bounds bounds
Constructor Detail

PickBounds

public PickBounds()
Constructs an empty PickBounds. The bounds object is set to null.


PickBounds

public PickBounds(Bounds boundsObject)
Constructs a PickBounds from the specified bounds object.

Parameters:
boundsObject - the bounds of this PickBounds.
Method Detail

set

public void set(Bounds boundsObject)
Sets the bounds object of this PickBounds to the specified object.

Parameters:
boundsObject - the new bounds of this PickBounds.

get

public Bounds get()
Gets the bounds object from this PickBounds.

Returns:
the bounds.

intersect

final boolean intersect(Bounds bounds,
                        Point4d pickPos)
Return true if shape intersect with bounds. The point of intersection is stored in pickPos.

Specified by:
intersect in class PickShape

transform

PickShape transform(Transform3D t3d)
Specified by:
transform in class PickShape

getStartPoint

Point3d getStartPoint()
Specified by:
getStartPoint in class PickShape

getPickType

int getPickType()
Specified by:
getPickType in class PickShape


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.