| |
|
| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Leaf javax.media.j3d.Behavior com.db.behaviors.ViewerBehavior com.db.behaviors.FlyViewerBehavior
FlyViewerBehavior | public class FlyViewerBehavior extends ViewerBehavior (Code) | | FlyViewerBehavior is a utility class that creates a "flying style"
navigation semantic.
|
Constructor Summary | |
public | FlyViewerBehavior() Constructs a new walk behavior that converts mouse actions
into rotations and translations. | public | FlyViewerBehavior(Component parent) Constructs a new walk behavior that converts mouse actions
into rotations and translations. | public | FlyViewerBehavior(TransformGroup transformGroup) Constructs a new walk behavior that converts mouse actions
into rotations and translations. | public | FlyViewerBehavior(TransformGroup transformGroup, Component parent) Constructs a new walk behavior that converts mouse actions
into rotations and translations. |
DEFAULT_YROTATION_ANIMATION_FACTOR | final public static double DEFAULT_YROTATION_ANIMATION_FACTOR(Code) | | Default Rotation and translation scaling factors for
animated movements (Button 1 press).
|
DEFAULT_ZACCELERATION_FACTOR | final public static double DEFAULT_ZACCELERATION_FACTOR(Code) | | |
DEFAULT_ZROTATION_FACTOR | final public static double DEFAULT_ZROTATION_FACTOR(Code) | | |
DEFAULT_ZTRANSLATION_ANIMATION_FACTOR | final public static double DEFAULT_ZTRANSLATION_ANIMATION_FACTOR(Code) | | |
YRotationAnimationFactor | protected double YRotationAnimationFactor(Code) | | |
ZRotationFactor | protected double ZRotationFactor(Code) | | |
ZTranslationAnimationFactor | protected double ZTranslationAnimationFactor(Code) | | |
initialX | protected int initialX(Code) | | |
initialY | protected int initialY(Code) | | |
previousX | protected int previousX(Code) | | |
previousY | protected int previousY(Code) | | |
velocity | protected double velocity(Code) | | |
zAccelerationFactor | protected double zAccelerationFactor(Code) | | |
FlyViewerBehavior | public FlyViewerBehavior()(Code) | | Constructs a new walk behavior that converts mouse actions
into rotations and translations. Rotations and translations
are written into a TransformGroup that must be set using the
setTransformGroup method. The cursor will be changed during
mouse actions if the parent frame is set using the
setParentComponent method.
a new WalkViewerBehavior that needs itsTransformGroup and parent Component set |
FlyViewerBehavior | public FlyViewerBehavior(Component parent)(Code) | | Constructs a new walk behavior that converts mouse actions
into rotations and translations. Rotations and translations
are written into a TransformGroup that must be set using the
setTransformGroup method. The cursor will be changed within
the given AWT parent Component during mouse drags.
Parameters: parent - a parent AWT Component within which the cursorwill change during mouse drags a new WalkViewerBehavior that needs itsTransformGroup and parent Component set |
FlyViewerBehavior | public FlyViewerBehavior(TransformGroup transformGroup)(Code) | | Constructs a new walk behavior that converts mouse actions
into rotations and translations. Rotations and translations
are written into the given TransformGroup. The cursor will
be changed during mouse actions if the parent frame is set
using the setParentComponent method.
Parameters: transformGroup - a TransformGroup whos transform isread and written by the behavior a new WalkViewerBehavior that needs itsTransformGroup and parent Component set |
FlyViewerBehavior | public FlyViewerBehavior(TransformGroup transformGroup, Component parent)(Code) | | Constructs a new walk behavior that converts mouse actions
into rotations and translations. Rotations and translations
are written into the given TransformGroup. The cursor will be
changed within the given AWT parent Component during mouse drags.
Parameters: transformGroup - a TransformGroup whos transform isread and written by the behavior Parameters: parent - a parent AWT Component within which the cursorwill change during mouse drags a new WalkViewerBehavior that needs itsTransformGroup and parent Component set |
getZAccelerationFactor | public double getZAccelerationFactor()(Code) | | Get the current acceleration scaling factor for Z-axis translations.
|
getZRotationFactor | public double getZRotationFactor()(Code) | | Get the current Z rotation scaling factor for Z-axis rotations.
|
onButton1 | public void onButton1(MouseEvent mev)(Code) | | Respond to a button1 event (press, release, or drag).
Parameters: mouseEvent - A MouseEvent to respond to. |
onButton2 | public void onButton2(MouseEvent mev)(Code) | | Respond to a button2 event (press, release, or drag).
Parameters: mouseEvent - A MouseEvent to respond to. |
onButton3 | public void onButton3(MouseEvent mev)(Code) | | Responds to a button3 event (press, release, or drag).
On a drag, the difference between the current and previous
cursor location provides a delta that controls the amount by
which to translate in X and Y.
Parameters: mouseEvent - the MouseEvent to respond to |
onElapsedFrames | public void onElapsedFrames(WakeupOnElapsedFrames timeEvent)(Code) | | Respond to an elapsed frames event (assuming subclass has set up a
wakeup criterion for it).
Parameters: time - A WakeupOnElapsedFrames criterion to respond to. |
setZAccelerationFactor | public void setZAccelerationFactor(double factor)(Code) | | Set the acceleration scaling factor for Z-axis translations.
Parameters: factor - The new scaling factor. |
setZRotationFactor | public void setZRotationFactor(double factor)(Code) | | Set the Z rotation scaling factor for Z-axis rotations.
Parameters: factor - The new scaling factor. |
|
|
|