|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.renderer.aviatrix3d.navigation.ViewpointTransition
public class 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(TransformGroup viewTg,
javax.vecmath.Matrix4f 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 transitionpublic void transitionTo(TransformGroup viewTg, javax.vecmath.Matrix4f 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)public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- The event that caused this action to be called
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |