public class MouseZoom
extends com.sun.j3d.utils.behaviors.mouse.MouseBehavior
Modifier and Type | Field and Description |
---|---|
private com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback |
callback |
private float |
scale |
(package private) double |
z_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 |
---|
MouseZoom()
Creates a default mouse zoom behavior.
|
MouseZoom(int flags)
Creates a zoom behavior.
|
MouseZoom(javax.media.j3d.TransformGroup transformGroup)
Creates a zoom behavior given the transform group.
|
Modifier and Type | Method and Description |
---|---|
javax.media.j3d.Transform3D |
getcurrXform() |
double |
getFactor()
Return the y-axis movement multipler.
|
float |
getScale() |
float |
getTranslation() |
void |
initialize() |
void |
processStimulus(java.util.Enumeration criteria) |
void |
set111() |
void |
setFactor(double factor)
Set the y-axis movement multipler with factor.
|
void |
setM4f(javax.vecmath.Matrix4f origen) |
void |
setScale(float translation_z,
float scale) |
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 z_factor
private com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback callback
private float scale
public MouseZoom(javax.media.j3d.TransformGroup transformGroup)
transformGroup
- The transformGroup to operate on.public MouseZoom()
public MouseZoom(int flags)
flags
- public javax.media.j3d.Transform3D getcurrXform()
public float getScale()
public float getTranslation()
public void setScale(float translation_z, float scale)
public void setX()
public void setZ()
public void setY()
public void set111()
public void setM4f(javax.vecmath.Matrix4f origen)
public void initialize()
initialize
in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
public double getFactor()
public void setFactor(double factor)
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)