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)
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. |
VRMLZone
public VRMLZone()
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 receivedtime
- When the EventOut has been receivedkey
- 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 zonekey
- 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