Package org.xj3d.core.eventmodel
Interface OriginManager
public interface OriginManager
Defines the requirements for the manager of the origin for nodes
that will dynamically shift.
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether Geo* nodes should use this manager as their source for origin data.javax.vecmath.Vector3d
Return the coordinate to be used as the origin.boolean
updateViewPosition
(javax.vecmath.Vector3f position) Notify the manager of a change in view position, return whether this change has caused a recalculation of the origin.
-
Method Details
-
getOrigin
javax.vecmath.Vector3d getOrigin()Return the coordinate to be used as the origin.- Returns:
- The object containing the origin, or null if one has not been calculated.
-
updateViewPosition
boolean updateViewPosition(javax.vecmath.Vector3f position) Notify the manager of a change in view position, return whether this change has caused a recalculation of the origin.- Parameters:
position
- The new view position- Returns:
- true if the origin has changed, false otherwise.
-
getEnabled
boolean getEnabled()Return whether Geo* nodes should use this manager as their source for origin data. If disabled, then Geo* nodes should use the GeoOrigin node for data.- Returns:
- true if Geo* nodes should use this manager. false if nodes should the GeoOrigin node.
-