ants.move.core.views.camera
Class CameraView

java.lang.Object
  |
  +--ants.move.core.views.DynamicObject
        |
        +--ants.move.core.views.camera.CameraView
All Implemented Interfaces:
CameraListener, ViewInterface, VRMLEventListener

public class CameraView
extends DynamicObject
implements ViewInterface, CameraListener, VRMLEventListener

Implementation of DynamicObject Camera.

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

Constructor Summary
CameraView()
          Sole & void constructor.
 
Method Summary
 void bind(java.lang.String pos, java.lang.String ori)
          Bind camera
 void eventPerformed()
          Executed when a VRML Event is received.
 CameraModel getModel()
           
 void init(java.util.Hashtable ht)
          Initializes necessary parameters to use this class.
 void unBind()
          Unbind camera
 
Methods inherited from class ants.move.core.views.DynamicObject
addListener, catchNode, getBrowser, getName, getNode, getVRMLNodeName, getZone, getZoneName, printMsg, setaddChValue, setaddChValue, setBrowser, setChNodes, setName, setreChValue, setreChValue, setVRMLNodeName, setZoneName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraView

public CameraView()
Sole & void constructor. Used when newInstance() method is called.
Parameters:
params - None
Throws:
exceptions - No exceptions thrown
Method Detail

init

public void init(java.util.Hashtable ht)
Initializes necessary parameters to use this class.
This is the way to implement a dynamicObject through DObjectInterface interface.
Specified by:
init in interface ViewInterface
Parameters:
z - Zone name
b - Reference to VRML browser
n - VRML Node name
d - Object name
s - Elvin4 session
r - Used to dynamically add VRML objects to the scene
Returns:
No return value
Throws:
exceptions - No exceptions thrown

bind

public void bind(java.lang.String pos,
                 java.lang.String ori)
Description copied from interface: CameraListener
Bind camera
Specified by:
bind in interface CameraListener
Following copied from interface: ants.move.core.models.camera.CameraListener
Parameters:
pos - position "x y z"
ori - rotation "x y z o"

unBind

public void unBind()
Description copied from interface: CameraListener
Unbind camera
Specified by:
unBind in interface CameraListener

eventPerformed

public void eventPerformed()
Description copied from interface: VRMLEventListener
Executed when a VRML Event is received.
Specified by:
eventPerformed in interface VRMLEventListener
Overrides:
eventPerformed in class DynamicObject
Following copied from interface: ants.move.core.views.VRMLEventListener
Parameters:
params - None
Returns:
No return value
Throws:
exceptions - No exceptions thrown

getModel

public CameraModel getModel()


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