| java.lang.Object javax.media.j3d.PickShape javax.media.j3d.PickSegment
PickSegment | final public class PickSegment extends PickShape (Code) | | PickSegment is a line segment pick shape. It can
be used as an argument to the picking methods in BranchGroup and Locale.
See Also: BranchGroup.pickAll See Also: Locale.pickAll |
Constructor Summary | |
public | PickSegment() Constructs an empty PickSegment. | public | PickSegment(Point3d start, Point3d end) Constructs a line segment pick shape from the specified
parameters. |
Method Summary | |
public void | get(Point3d start, Point3d end) Gets the parameters from this PickSegment. | int | getPickType() | Point3d | getStartPoint() | final boolean | intersect(Bounds bounds, Point4d pickPos) Return true if shape intersect with bounds. | public void | set(Point3d start, Point3d end) Sets the parameters of this PickSegment to the specified values. | PickShape | transform(Transform3D t3d) |
PickSegment | public PickSegment()(Code) | | Constructs an empty PickSegment.
The start and end points of the line segment are
initialized to (0,0,0).
|
PickSegment | public PickSegment(Point3d start, Point3d end)(Code) | | Constructs a line segment pick shape from the specified
parameters.
Parameters: start - the start point of the line segment. Parameters: end - the end point of the line segment. |
get | public void get(Point3d start, Point3d end)(Code) | | Gets the parameters from this PickSegment.
Parameters: start - the Point3d object into which the startpoint will be copied. Parameters: end - the Point3d object into which the end pointwill be copied. |
getPickType | int getPickType()(Code) | | |
getStartPoint | Point3d getStartPoint()(Code) | | |
intersect | final boolean intersect(Bounds bounds, Point4d pickPos)(Code) | | Return true if shape intersect with bounds.
The point of intersection is stored in pickPos.
|
set | public void set(Point3d start, Point3d end)(Code) | | Sets the parameters of this PickSegment to the specified values.
Parameters: start - the start point of the line segment. Parameters: end - the end point of the line segment. |
|
|