|
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.ViewpointManager
A handler for viewpoint information for a given canvas.
| Constructor Summary | |
ViewpointManager()
Create a new manager for the viewpoint information with no handlers or information set and the default transition time of 2 seconds. |
|
ViewpointManager(int time)
Create a new manager for the viewpoint information with no handlers or information set and the the given transition time. |
|
| Method Summary | |
void |
setFrameUpdateListener(FrameUpdateListener l)
Set the listener for frame update notifications. |
void |
setToolbar(ViewpointToolbar tbr)
Set the toolbar instance to use. |
void |
setTransitionTime(int time)
Change the transition time between viewpoints. |
void |
setViewInfo(javax.media.j3d.View view,
javax.media.j3d.TransformGroup tg)
Set the view and it's related transform group to use. |
void |
viewpointSelected(ViewpointData vp)
A new viewpoint has been selected and this is it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ViewpointManager()
public ViewpointManager(int time)
throws java.lang.IllegalArgumentException
time - The time to transit when changing
java.lang.IllegalArgumentException - The time was negative| Method Detail |
public void setToolbar(ViewpointToolbar tbr)
tbr - The new toolbar instance to usepublic void setTransitionTime(int time)
time - The new time to use in milliseconds
java.lang.IllegalArgumentException - The time was negative
public void setViewInfo(javax.media.j3d.View view,
javax.media.j3d.TransformGroup tg)
view - is the View object that we're modifying.tg - The transform group above the view object that should be usedpublic void setFrameUpdateListener(FrameUpdateListener l)
l - The listener to use for this transitionpublic void viewpointSelected(ViewpointData vp)
viewpointSelected in interface ViewpointSelectionListenervp - The new viewpoint to use
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||