Class BaseGeoViewpoint

java.lang.Object
All Implemented Interfaces:
VRMLNode, FrameStateListener, VRMLBindableNodeType, VRMLChildNodeType, VRMLNavigationInfoNodeType, VRMLNodeType, VRMLTimeDependentNodeType, VRMLViewpointNodeType, VRMLWorldRootChildNodeType
Direct Known Subclasses:
NRGeoViewpoint, OGLGeoViewpoint

public abstract class BaseGeoViewpoint extends BaseBindableNode implements VRMLViewpointNodeType, VRMLNavigationInfoNodeType
Common implementation of a GeoViewpoint node.

This implementation implements both the viewpoint and navInfo interfaces so that it can be internally detected by the system as being functional for both parts of the scene graph. The primary type is defined to be the viewpoint, and the secondaries are the bindable and nav info node types. Hopefully this will allow system to work out what is going on here. Note the following paragraph from the X3D spec:

"The GeoViewpoint node may be implemented as if there is an embedded NavigationInfo node that is bound and unbound with the GeoViewpoint node. As such, a X3D browser should internally set the speed, avatarSize, and visibilityLimit fields to an appropriate value for the viewpoint's elevation."

Viewpoints cannot be shared using DEF/USE. They may be named as such for Anchor purposes, but attempting to reuse them will cause an error. This implementation does not provide any protection against USE of this node and attempting to do so will result in throwing exceptions - most probably in the grouping node that includes this node. TODO: CenterOfRotation is missing from regular viewpoint

Version:
$Revision: 1.28 $
Author:
Alan Hudson, Justin Couch