Class dnx.lr.SceneObserverEvent
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.SceneObserverEvent
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.util.DNXInstancedObject
|
+----dnx.util.DNXObserverEvent
|
+----dnx.lr.SceneObserverEvent
- public class SceneObserverEvent
- extends DNXObserverEvent
SceneObserverEvent encapsulates a notification of a change in a scene.
Callers request notification of such events by becoming observers of the
scene, through calling addObserver() on the Scene.
SceneObserverEvents have three fields: a type (what happened) and a detail
field.
@see dnx.util.DNXObservable
@see dnx.util.DNXObserver
-
BINDING_EVENT
- The top value on one of the binding stacks was changed.
-
CLEAR_HELP_ECHO_EVENT
- The browser is requested to remove a help-echo.
-
DISPLAY_HELP_ECHO_EVENT
- The browser is requested to display a help-echo (tool tip, etc.)
message, for example when the pointer passes over an Anchor node.
-
EVENT_OUT_CHANGED_EVENT
- An event out field of a node in the scene has changed.
-
EVENT_RECEIVED_EVENT
- An event in was received by a node
-
FIELD_CHANGED_EVENT
- A field of a node in the scene has changed.
-
GET_CURRENT_FRAME_RATE_EVENT
- The observer is requested to return the current viewpoint speed,
if known.
-
GET_CURRENT_SPEED_EVENT
- The observer is requested to return the current viewpoint speed,
if known.
-
LOAD_BEGIN_EVENT
- Scene has begun loading.
-
LOAD_DONE_EVENT
- Scene is done loading.
-
LOAD_ERROR_EVENT
- An error occurred while loading part of a scene.
-
LOAD_STATUS_EVENT
- Periodic status from loading part of a scene, indicating what's
being loaded and how much is loaded.
-
LOAD_URL_EVENT
- The browser is requested to load a URL.
-
SET_ROOT_EVENT
- The root of the scene was changed.
-
VIEWPOINT_ATTACH_EVENT
- A viewpoint instance was attached to the scene.
-
VIEWPOINT_DETACH_EVENT
- A viewpoint instance was detached from the scene.
-
WARNING_EVENT
- Something non-fatal but generally bad occurred during the execution
of a scene.
-
SceneObserverEvent(int, Object)
-
-
getEventInfo()
- Return the detail of the event.
-
getEventTypeName()
-
-
toString()
-
BINDING_EVENT
public final static int BINDING_EVENT
- The top value on one of the binding stacks was changed.
This does *NOT* correspond directly with an isBound event being
sent out, for at least two reasons:
-- Two isBound events are sent out in general when a node is
bound or unbound (a TRUE one for the new top of stack and a FALSE
one for the old top of stack), whereas one BINDING_EVENT will be
sent.
-- It's possible for the node instance on the top of the stack
to change without the node of the instances on the top of the
stack changing. In such a case, no isBound events will be sent
out but a BINDING_EVENT will still be sent.
SET_ROOT_EVENT
public final static int SET_ROOT_EVENT
- The root of the scene was changed. The detail is the new root
node instance.
LOAD_STATUS_EVENT
public final static int LOAD_STATUS_EVENT
- Periodic status from loading part of a scene, indicating what's
being loaded and how much is loaded. The detail is a
SceneLoadStatusDetail object.
LOAD_BEGIN_EVENT
public final static int LOAD_BEGIN_EVENT
- Scene has begun loading. The detail is a SceneLoadBeginDetail
object.
LOAD_DONE_EVENT
public final static int LOAD_DONE_EVENT
- Scene is done loading. The detail is a SceneLoadDoneDetail object.
LOAD_ERROR_EVENT
public final static int LOAD_ERROR_EVENT
- An error occurred while loading part of a scene. The detail is a
SceneLoadErrorDetail object.
WARNING_EVENT
public final static int WARNING_EVENT
- Something non-fatal but generally bad occurred during the execution
of a scene. The detail is a SceneWarningDetail object.
VIEWPOINT_ATTACH_EVENT
public final static int VIEWPOINT_ATTACH_EVENT
- A viewpoint instance was attached to the scene. The detail is
the node instance.
VIEWPOINT_DETACH_EVENT
public final static int VIEWPOINT_DETACH_EVENT
- A viewpoint instance was detached from the scene. The detail
is the node instance.
DISPLAY_HELP_ECHO_EVENT
public final static int DISPLAY_HELP_ECHO_EVENT
- The browser is requested to display a help-echo (tool tip, etc.)
message, for example when the pointer passes over an Anchor node.
The detail is a SceneHelpEchoDetail object.
CLEAR_HELP_ECHO_EVENT
public final static int CLEAR_HELP_ECHO_EVENT
- The browser is requested to remove a help-echo.
The detail is a SceneHelpEchoDetail object.
LOAD_URL_EVENT
public final static int LOAD_URL_EVENT
- The browser is requested to load a URL.
The detail is a SceneLoadURLDetail object.
EVENT_OUT_CHANGED_EVENT
public final static int EVENT_OUT_CHANGED_EVENT
- An event out field of a node in the scene has changed.
The detail is a Field object.
FIELD_CHANGED_EVENT
public final static int FIELD_CHANGED_EVENT
- A field of a node in the scene has changed.
The detail is a Field object.
EVENT_RECEIVED_EVENT
public final static int EVENT_RECEIVED_EVENT
- An event in was received by a node
GET_CURRENT_SPEED_EVENT
public final static int GET_CURRENT_SPEED_EVENT
- The observer is requested to return the current viewpoint speed,
if known.
GET_CURRENT_FRAME_RATE_EVENT
public final static int GET_CURRENT_FRAME_RATE_EVENT
- The observer is requested to return the current viewpoint speed,
if known.
SceneObserverEvent
public SceneObserverEvent(int type,
Object info)
getEventTypeName
public String getEventTypeName()
getEventInfo
public Object getEventInfo()
- Return the detail of the event.
toString
public String toString()
- Overrides:
- toString in class DNXInstancedObject
All Packages Class Hierarchy This Package Previous Next Index