|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.graphic.probe.AbstractPickSensor
A full implementation of the PickSensor interface. The default implementation assumes 2D picking, with a point as the picker shape and the input space as the pickable.
Constructor Summary | |
AbstractPickSensor(java.util.Set specs,
PickEngine engine)
Creates an instance, with the specified pickables. |
Method Summary | |
protected PickResult |
doPick(java.util.Set specs,
PickEngine engine)
Called by the system to perform a pick operation before outputting a result. |
BooleanField.EventIn |
getPickActiveIn()
While false, picking geometry inputs are assumed invalid, with pick requests generating a null pick result. |
BooleanField.EventIn |
getPickDiscreteIn()
If true, a pick occurs only when a pick request is received (getPickRequestIn()); otherwise, a pick request is generated each time the pick geometry (position, orientation) changes. |
BooleanField.EventIn |
getPickEnableIn()
Enables/disables this sensor. |
Point3Field.EventIn |
getPickPositionIn()
The position of the picker shape's origin relative to the pick space input. |
NotifyNode.EventIn |
getPickRequestIn()
A pick is performed using the current pick geometry. |
PickResultField.EventOut |
getPickResultOut()
Sends an event each time a pick is requested. |
SpaceNodeField.EventIn |
getPickSpaceIn()
The reference space for the pick position input. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractPickSensor(java.util.Set specs, PickEngine engine)
specs
- Pick specs that are compatible with the pick engine.
None if null.engine
- Reference to a pick engine that can handle a Point3
picker and IntersectableGraphic pickables (such as AbstractPickEngine).
Never nullMethod Detail |
protected PickResult doPick(java.util.Set specs, PickEngine engine)
specs
- Pick specs provided at construction time. Never null.engine
- Pick engine provided at construction time. Never null.
public BooleanField.EventIn getPickEnableIn()
PickSensor
getPickEnableIn
in interface PickSensor
public BooleanField.EventIn getPickActiveIn()
PickSensor
getPickActiveIn
in interface PickSensor
public BooleanField.EventIn getPickDiscreteIn()
PickSensor
getPickDiscreteIn
in interface PickSensor
public NotifyNode.EventIn getPickRequestIn()
PickSensor
getPickRequestIn
in interface PickSensor
public SpaceNodeField.EventIn getPickSpaceIn()
PickSensor
getPickSpaceIn
in interface PickSensor
public Point3Field.EventIn getPickPositionIn()
PickSensor
getPickPositionIn
in interface PickSensor
public PickResultField.EventOut getPickResultOut()
PickSensor
getPickResultOut
in interface PickSensor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |