Shapes 3D
3.0
|
Public Member Functions | |
Picked (Shape3D shape, int part, int partFlag) | |
boolean | equals (Object o) |
int | hashCode () |
int | compareTo (Picked o) |
Public Attributes | |
final Shape3D | shape |
final int | part |
final int | partFlag |
A simple immutable class to record the shape and part number returned by the Shape3D.pick(...) method.
It has 3 public attributes
shape3d - the object reference for the picked shape
part - the picked part number i.e. 0,1,2,3,..,7 depending on number of shape parts
partFlag - the bit flag for the picked part 1,2,4,8,..,128
Note: partFlag = 1 << part
Objects of this class have natural ordering so when sorting the results of a marquee selection Picked objects are grouped by shape and then ordered by part number.
shapes3d.utils.Picked.Picked | ( | Shape3D | shape, |
int | part, | ||
int | partFlag | ||
) |
Create an instance of Picked that can be returned to the user
shape | the picked shape |
part | the part picked (0,1,2,3,..,7 depending on number of shape parts) |
partFlag | the bit mask used to identify the picked part (1,2,4,8,..,128 depending on number of shape parts) |