Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.utils.Picked Class Reference
Inheritance diagram for shapes3d.utils.Picked:

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
 

Detailed Description

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.

Author
Peter Lager

Constructor & Destructor Documentation

shapes3d.utils.Picked.Picked ( Shape3D  shape,
int  part,
int  partFlag 
)

Create an instance of Picked that can be returned to the user

Parameters
shapethe picked shape
partthe part picked (0,1,2,3,..,7 depending on number of shape parts)
partFlagthe bit mask used to identify the picked part (1,2,4,8,..,128 depending on number of shape parts)

The documentation for this class was generated from the following file: