|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VRMLPickingSensorNodeType
A sensor that handles pick intersection tests.
The picking sensor capabilities is an Xj3D extension specification. You can find more details about it at http://www.xj3d.org/extensions/picking.html
| Field Summary | |
|---|---|
static int |
BOX_PICK
The picking type is box |
static int |
CONE_PICK
The picking type is cone |
static int |
CYLINDER_PICK
The picking type is cylinder |
static int |
INTERSECT_BOUNDS
Intersection test type is BOUNDS |
static int |
INTERSECT_GEOMETRY
Intersection test type is GEOMETRY |
static int |
LINE_PICK
The picking type is line |
static int |
POINT_PICK
The picking type is point |
static int |
SORT_ALL
Sort order is ALL |
static int |
SORT_ALL_SORTED
Sort order is ALL_SORTED |
static int |
SORT_ANY
Sort order is ANY |
static int |
SORT_CLOSEST
Sort order is CLOSEST |
static int |
SPHERE_PICK
The picking type is sphere |
static int |
UNDEFINED_PICK
The picking type is not defined because there isn't a pickGeometry given |
static int |
VOLUME_PICK
The picking type is polytope/volume |
| Method Summary | |
|---|---|
int |
getIntersectionType()
Get the intersection type requested for this node |
void |
getObjectType(java.lang.String[] val)
Fetch the number of object type values in use currently. |
VRMLNodeType |
getPickingGeometry()
Fetch the real node that is being used to pick the geometry. |
VRMLNodeType[] |
getPickingTargets()
Get the list of nodes that are used for the target geometry. |
int |
getPickingType()
Get the picking type that this class represents. |
int |
getSortOrder()
Get the intersection type requested for this node |
void |
notifyPickChange(int numPicks,
VRMLNodeType[] nodes,
float[] points,
float[] normals,
float[] texCoords)
Notify the drag sensor that a sensor is currently dragging this device and that it's position and orientation are as given. |
void |
notifyPickEnd()
Notification that this sensor has finished a picking action. |
void |
notifyPickStart(int numPicks,
VRMLNodeType[] nodes,
float[] points,
float[] normals,
float[] texCoords)
Notification that this sensor has just been clicked on to start the pick action. |
int |
numObjectType()
Get the current number of valid object type strings. |
void |
setObjectType(java.lang.String[] types,
int numValid)
Set the list of picking targets that this object corresponds to. |
void |
setPickingGeometry(VRMLNodeType geom)
Set the goemetry used to perform the picking. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLSensorNodeType |
|---|
getEnabled, getIsActive, setEnabled |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
|---|
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
|---|
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
|---|
allEventsComplete |
| Field Detail |
|---|
static final int UNDEFINED_PICK
static final int POINT_PICK
static final int LINE_PICK
static final int SPHERE_PICK
static final int BOX_PICK
static final int CONE_PICK
static final int CYLINDER_PICK
static final int VOLUME_PICK
static final int SORT_CLOSEST
static final int SORT_ALL
static final int SORT_ALL_SORTED
static final int SORT_ANY
static final int INTERSECT_BOUNDS
static final int INTERSECT_GEOMETRY
| Method Detail |
|---|
void setObjectType(java.lang.String[] types,
int numValid)
types - The list of object type strings to usenumValid - The number of valid values to read from the arrayint numObjectType()
void getObjectType(java.lang.String[] val)
val - An array to copy the values toint getPickingType()
int getSortOrder()
int getIntersectionType()
void setPickingGeometry(VRMLNodeType geom)
geom - VRMLGeometryNodeType
InvalidFieldValueException - The geometry is not acceptable for
this picking type.VRMLNodeType getPickingGeometry()
VRMLNodeType[] getPickingTargets()
void notifyPickStart(int numPicks,
VRMLNodeType[] nodes,
float[] points,
float[] normals,
float[] texCoords)
numPicks - The number of items picked in the arraynodes - The geometry that was pickedpoints - Optional array of points that are the intersection pointsnormals - Optional array of normals that are the intersection pointstexCoords - Optional array of texture coordinates that are the intersection points
void notifyPickChange(int numPicks,
VRMLNodeType[] nodes,
float[] points,
float[] normals,
float[] texCoords)
numPicks - The number of items picked in the arraynodes - The geometry that was pickedpoints - Optional array of points that are the intersection pointsnormals - Optional array of normals that are the intersection pointstexCoords - Optional array of texture coordinates that are the intersection pointsvoid notifyPickEnd()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||