camera3d.event
Class ObjectAddedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycamera3d.event.VcEvent
          extended bycamera3d.event.SceneObjectsChangedEvent
              extended bycamera3d.event.ObjectAddedEvent
All Implemented Interfaces:
java.io.Serializable

public class ObjectAddedEvent
extends SceneObjectsChangedEvent

This is a class which signals that an object has been added to the scene graph.

Author:
Fábio Roberto de Miranda e Carlos da Silva dos Santos
See Also:
Serialized Form

Field Summary
 
Fields inherited from class camera3d.event.SceneObjectsChangedEvent
OBJECT_ADDED, OBJECT_REMOVED, UNKNOWN_TYPE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ObjectAddedEvent(java.lang.Object source)
          Constructs a new ObjectAddedEvent
ObjectAddedEvent(java.lang.Object source, VcObject vcObject)
          Constructs a new ObjectAddedEvent
 
Method Summary
 VcObject getObject()
          Returns the object added to the scene.
 void setObject(VcObject vcObject)
          Sets the object added to the scene.
 
Methods inherited from class camera3d.event.SceneObjectsChangedEvent
getType, setType
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectAddedEvent

public ObjectAddedEvent(java.lang.Object source)
Constructs a new ObjectAddedEvent

Parameters:
source - the object which generated the change in the scene

ObjectAddedEvent

public ObjectAddedEvent(java.lang.Object source,
                        VcObject vcObject)
Constructs a new ObjectAddedEvent

Parameters:
source - the object which generated the change in the scene
vcObject - VcObject that has been added to the scene
Method Detail

getObject

public VcObject getObject()
Returns the object added to the scene.

Returns:
the new object

setObject

public void setObject(VcObject vcObject)
Sets the object added to the scene.

Returns:
the new object


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.