public class ViewpointTransition extends Object implements ActionListener
The transition effects start when a new set of transform groups are used to drive the view. To provide the driving factor, a Swing Timer object is used rather than using the Java 3D behaviour system.
| Constructor and Description |
|---|
ViewpointTransition()
Construct a new transition object ready to work.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt)
Process an action event from the timer.
|
void |
setFrameUpdateListener(FrameUpdateListener l)
Set the listener for frame update notifications.
|
void |
transitionTo(TransformGroup viewTg,
org.j3d.maths.vector.Matrix4d endTx,
int totalTime)
Transition between two locations represented by the initial
TranformGroup and the destination transform information starting
immediately.
|
public ViewpointTransition()
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerevt - The event that caused this action to be calledpublic void setFrameUpdateListener(FrameUpdateListener l)
l - The listener to use for this transitionpublic void transitionTo(TransformGroup viewTg, org.j3d.maths.vector.Matrix4d endTx, int totalTime)
viewTg - is the transformgroup to be transitioned that holds
the view.endTx - is the final state to be transitioned tototalTime - The time to be spent with this transition
(in miliseconds)
Copyright © 2001 - 2015 j3d.org