Interface Xj3DNavigationUIListener
These callback methods provide information for changes within an existing scene. For bulk changes, such as the change of scene, please use the base browser listener interface from the SAI.
- Version:
- $Revision: 1.4 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptionvoid
availableNavigationStatesChanged
(String[] states) The list of available navigation states has changed to this new list.void
availableViewpointsChanged
(Xj3DViewpoint[] viewpoints) The list of active viewpoints have been changed to this new list.void
Notification that the currently selected navigation state has changed to this new value.void
Notification that the selected viewpoint has been changed to this new instance.void
Notification that this viewpoint has been appended to the list of available viewpoints.void
Notification that this viewpoint has been removed from the list of available viewpoints.
-
Method Details
-
availableViewpointsChanged
The list of active viewpoints have been changed to this new list. A new list can be given due to either a new world being loaded, or the active navigation layer has been changed. This method is not called if a single viewpoint is added or removed from the scene.If the scene contains no viewpoints at all (except the default bindable), then this will be called with a null parameter.
On scene or navigation layer change, it is guaranteed that this method will be called before the notification of the actual bound viewpoint.
- Parameters:
viewpoints
- An array of exactly the number of viewpoints in the list
-
selectedViewpointChanged
Notification that the selected viewpoint has been changed to this new instance. There are many different reasons this could happen - new node bound, world changed or even active navigation layer has changed and this is the default in that new layer.If the file contains no viewpoints or the default viewpoint is bound (due to unbinding all real viewpoints on the stack) then this will be called with a null parameter.
It is guaranteed that this will always contain something from the currently active viewpoint list. If all change, that callback will be called before this one, to ensure consistency.
- Parameters:
vp
- The viewpoint instance that is now selected or null
-
viewpointAdded
Notification that this viewpoint has been appended to the list of available viewpoints.- Parameters:
vp
- The viewpoint instance that was added
-
viewpointRemoved
Notification that this viewpoint has been removed from the list of available viewpoints.- Parameters:
vp
- The viewpoint instance that was added
-