de.jreality.scene.event
Class SceneGraphComponentEvent
java.lang.Object
java.util.EventObject
de.jreality.scene.event.SceneEvent
de.jreality.scene.event.SceneGraphComponentEvent
- All Implemented Interfaces:
- Serializable
public class SceneGraphComponentEvent
- extends SceneEvent
- Author:
- holger
- See Also:
- Serialized Form
CHILD_TYPE_APPEARANCE
public static final int CHILD_TYPE_APPEARANCE
- See Also:
- Constant Field Values
CHILD_TYPE_CAMERA
public static final int CHILD_TYPE_CAMERA
- See Also:
- Constant Field Values
CHILD_TYPE_COMPONENT
public static final int CHILD_TYPE_COMPONENT
- See Also:
- Constant Field Values
CHILD_TYPE_GEOMETRY
public static final int CHILD_TYPE_GEOMETRY
- See Also:
- Constant Field Values
CHILD_TYPE_LIGHT
public static final int CHILD_TYPE_LIGHT
- See Also:
- Constant Field Values
CHILD_TYPE_TRANSFORMATION
public static final int CHILD_TYPE_TRANSFORMATION
- See Also:
- Constant Field Values
CHILD_TYPE_AUDIONODE
public static final int CHILD_TYPE_AUDIONODE
- See Also:
- Constant Field Values
CHILD_TYPE_NONE
public static final int CHILD_TYPE_NONE
- See Also:
- Constant Field Values
EVENT_TYPE_ADDED
public static final int EVENT_TYPE_ADDED
- See Also:
- Constant Field Values
EVENT_TYPE_REMOVED
public static final int EVENT_TYPE_REMOVED
- See Also:
- Constant Field Values
EVENT_TYPE_REPLACED
public static final int EVENT_TYPE_REPLACED
- See Also:
- Constant Field Values
EVENT_TYPE_VISIBILITY_CHANGED
public static final int EVENT_TYPE_VISIBILITY_CHANGED
- See Also:
- Constant Field Values
EVENT_TYPE_PICKABILITY_CHANGED
public static final int EVENT_TYPE_PICKABILITY_CHANGED
- See Also:
- Constant Field Values
SceneGraphComponentEvent
public SceneGraphComponentEvent(SceneGraphComponent source,
int evType,
int childNodeType,
SceneGraphNode oldChild,
SceneGraphNode newChild,
int index)
SceneGraphComponentEvent
public SceneGraphComponentEvent(SceneGraphComponent source,
int childNodeType,
SceneGraphNode oldChild,
SceneGraphNode newChild)
SceneGraphComponentEvent
public SceneGraphComponentEvent(SceneGraphComponent source,
int type)
getChildIndex
public int getChildIndex()
- Returns the childIndex or
0
for singleton child types.
getSceneGraphComponent
public SceneGraphComponent getSceneGraphComponent()
getChildType
public int getChildType()
- Get the CHILD_TYPE_xxx constant reflecting the current modification.
getEventType
public int getEventType()
- Get the event type either added, removed or replaced.
getNewChildElement
public SceneGraphNode getNewChildElement()
- Get the new child for added or replaced or
null
for removed.
getOldChildElement
public SceneGraphNode getOldChildElement()
- Get the new child for removed or replaced or
null
for added.