public class MouseRotate
extends com.sun.j3d.utils.behaviors.mouse.MouseBehavior
Modifier and Type | Field and Description |
---|---|
private com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback |
callback |
(package private) double |
x_angle |
(package private) double |
x_factor |
(package private) double |
y_angle |
(package private) double |
y_factor |
buttonPress, currXform, enable, flags, invert, INVERT_INPUT, MANUAL_WAKEUP, mouseCriterion, mouseEvents, mouseq, reset, transformGroup, transformX, transformY, wakeUp, x, x_last, y, y_last
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 |
---|
MouseRotate() |
MouseRotate(int flags) |
MouseRotate(javax.media.j3d.TransformGroup transformGroup) |
Modifier and Type | Method and Description |
---|---|
javax.media.j3d.Transform3D |
getcurrXform() |
double |
getXFactor() |
double |
getYFactor() |
void |
initialize() |
void |
processStimulus(java.util.Enumeration criteria) |
void |
set111() |
void |
setFactor(double factor) |
void |
setFactor(double xFactor,
double yFactor)
Set the x-axis amd y-axis movement multipler with xFactor and yFactor respectively.
|
void |
setM4f(javax.vecmath.Matrix4f origen) |
void |
setupCallback(com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback callback)
The transformChanged method in the callback class will be called every time the transform is
updated
|
void |
setX() |
void |
setY() |
void |
setZ() |
void |
transformChanged(javax.media.j3d.Transform3D transform)
Users can overload this method which is called every time the Behavior updates the transform
Default implementation does nothing
|
addListener, getTransformGroup, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, processMouseEvent, setEnable, setTransformGroup, wakeup
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, 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
double x_angle
double y_angle
double x_factor
double y_factor
private com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback callback
public MouseRotate(javax.media.j3d.TransformGroup transformGroup)
public MouseRotate()
public MouseRotate(int flags)
public javax.media.j3d.Transform3D getcurrXform()
public void initialize()
initialize
in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
public double getXFactor()
public double getYFactor()
public void setFactor(double factor)
public void setX()
public void setZ()
public void setY()
public void set111()
public void setM4f(javax.vecmath.Matrix4f origen)
public void setFactor(double xFactor, double yFactor)
public void processStimulus(java.util.Enumeration criteria)
processStimulus
in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
public void transformChanged(javax.media.j3d.Transform3D transform)
public void setupCallback(com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback callback)