ants.move.core.views
Class VRMLZone

ants.move.core.views.VRMLZone

public class VRMLZone

Implementation of EventOutObserver interface.
This class defines a VRML Zone where all objects inside of it will be controlled by the callback() method.

Version:
1.0 Build 2000
Author:
Carles Pairot (cpairot@tinet.org), Oriol Montalà (omontala@tinet.org)

Constructor Summary
VRMLZone()
           
 
Method Summary
 void addVRMLEventListener(VRMLEventListener object, java.lang.String key)
          Adds a VRMLEventListener object to the zone in order to be controlled.
 void callback(ants.move.core.views.EventOut event, double time, java.lang.Object key)
          Executed when an EventOut is produced.
 void removeVRMLEventListener(java.lang.String key)
          Removes a VRMLEventListener object from the zone.
 

Constructor Detail

VRMLZone

public VRMLZone()
Method Detail

callback

public void callback(ants.move.core.views.EventOut event,
                     double time,
                     java.lang.Object key)
Executed when an EventOut is produced.
The same method is used for all objects inside of this zone.
Making use of the object's key, can be known which one has to be called using the eventArrived() method.
Parameters:
event - EventOut received
time - When the EventOut has been received
key - Object's key
Returns:
No return value
Throws:
exceptions - No exceptions thrown

addVRMLEventListener

public void addVRMLEventListener(VRMLEventListener object,
                                 java.lang.String key)
Adds a VRMLEventListener object to the zone in order to be controlled.
Parameters:
object - Object to be added to the zone
key - Object's key
Returns:
No return value
Throws:
exceptions - No exceptions thrown

removeVRMLEventListener

public void removeVRMLEventListener(java.lang.String key)
Removes a VRMLEventListener object from the zone.
Parameters:
key - Object's key
Returns:
No return value
Throws:
exceptions - No exceptions thrown


Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili