|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.renderer.java3d.navigation.ViewpointTransition
This class will create smooth transitions from one viewpoint to another.
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 Summary | |
ViewpointTransition()
Construct a new transition object ready to work. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Process an action event from the timer. |
void |
setFrameUpdateListener(FrameUpdateListener l)
Set the listener for frame update notifications. |
void |
transitionTo(javax.media.j3d.View view,
javax.media.j3d.TransformGroup viewTg,
javax.media.j3d.Transform3D endTx,
int totalTime)
Transition between two locations represented by the initial TranformGroup and the destination transform information starting immediately. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ViewpointTransition()
| Method Detail |
public void setFrameUpdateListener(FrameUpdateListener l)
l - The listener to use for this transition
public void transitionTo(javax.media.j3d.View view,
javax.media.j3d.TransformGroup viewTg,
javax.media.j3d.Transform3D endTx,
int totalTime)
view - The view that is associated with this transformviewTg - 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)public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerevt - The event that caused this action to be called
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||