public class Mouse6DPointerBehavior extends Behavior
SensorEventAgent
Modifier and Type | Class and Description |
---|---|
class |
Mouse6DPointerBehavior.EchoReadListener
This member class updates the echo transform in response to sensor
reads.
|
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
Constructor and Description |
---|
Mouse6DPointerBehavior(Sensor sensor,
double size,
boolean enableLighting)
Constructs the behavior with a default echo.
|
Mouse6DPointerBehavior(Sensor sensor,
TransformGroup tg)
Constructs the behavior with an echo parented by the specified
TransformGroup.
|
Modifier and Type | Method and Description |
---|---|
TransformGroup |
getEcho()
Gets the echo used by this behavior.
|
Sensor |
getSensor()
Gets the sensor used by this behavior.
|
SensorEventAgent |
getSensorEventAgent()
Gets the SensorEventAgent used by this behavior.
|
void |
initialize()
Initializes the behavior.
|
void |
processStimulus(Enumeration criteria)
Processes a stimulus meant for this behavior.
|
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
public Mouse6DPointerBehavior(Sensor sensor, double size, boolean enableLighting)
The default echo is a solid 6-pointed star where each point is aligned with the axes of the local coordinate system of the sensor, and with the center of the star at the location of the sensor hotspot.
sensor
- a 6 degree of freedom Sensor which generates position
and orientation relative to the tracker base.size
- the physical width of the echo in centimeters.enableLighting
- a boolean indicating whether the echo geometry
should have lighting enabled.public Mouse6DPointerBehavior(Sensor sensor, TransformGroup tg)
sensor
- a 6 degree of freedom Sensor which generates position
and orientation relative to the tracker base.tg
- a TransformGroup with a child defining the visible echo
which will track the Sensor position and orientation; the Transform3D
associated with the TransformGroup will be updated in order to effect
the behavior, so it must have the ALLOW_TRANSFORM_WRITE capability
set before the scene graph is set livepublic Sensor getSensor()
public TransformGroup getEcho()
public SensorEventAgent getSensorEventAgent()
public void initialize()
initialize
in class Behavior
public void processStimulus(Enumeration criteria)
processStimulus
in class Behavior
criteria
- an enumeration of triggered wakeup criteria for this
behaviorCopyright © 2016–2022 SciJava. All rights reserved.