org.nlogo.agent
Class Observer3D

java.lang.Object
  extended by java.util.Observable
      extended by org.nlogo.agent.Agent
          extended by org.nlogo.agent.Observer
              extended by org.nlogo.agent.Observer3D
All Implemented Interfaces:
Comparable, Agent3D, Agent

public final class Observer3D
extends Observer
implements Agent3D


Field Summary
 
Fields inherited from class org.nlogo.agent.Observer
BIT, FOLLOW, OBSERVE, RIDE, WATCH
 
Fields inherited from class org.nlogo.agent.Agent
id, variables
 
Constructor Summary
Observer3D(World world)
           
 
Method Summary
 double distance(Agent agent)
           
 double distance(double x, double y, double z)
           
 double distance(RenderableTurtle t)
           
 void face(double x, double y, double z)
           
 double followOffsetZ()
           
 Patch3D getPatchAtOffsets(double dx, double dy, double dz)
           
 void home()
           
 void moveto(Agent otherAgent)
           
 void orbitRight(double delta)
           
 void orbitUp(double delta)
           
 void rotatePsi(double delta)
           
 void setRotationPoint(Agent agent)
           
 void translate(double thetaX, double thetaY)
           
 boolean updatePosition()
           
 
Methods inherited from class org.nlogo.agent.Observer
assertVariableConstraint, atHome2D, atHome3D, classDisplayName, dist, distance, dx, dy, dz, face, face, followDistance, followDistance, followOffsetX, followOffsetY, getAgentBit, getAgentClass, getBreedVariable, getImplicitVariables, getLinkBreedVariable, getLinkVariable, getLinkVariableDouble, getObserverVariable, getPatchAtOffsets, getPatchVariable, getPatchVariableDouble, getTurtleOrLinkVariable, getTurtleVariable, getTurtleVariableDouble, getVariable, heading, heading, oxcor, oxcor, oxyandzcor, oycor, oycor, ozcor, ozcor, perspective, perspective, pitch, pitch, resetPerspective, roll, roll, rotationPoint, setBreedVariable, setLinkBreedVariable, setLinkVariable, setLinkVariable, setObserverVariable, setOrientation, setPatchVariable, setPatchVariable, setPerspective, setPerspective, setRotationPoint, setRotationPoint, setTurtleOrLinkVariable, setTurtleVariable, setTurtleVariable, setVariable, targetAgent, targetAgent, toString
 
Methods inherited from class org.nlogo.agent.Agent
compareTo, getVariableCount, variableConstraint, variableConstraint, world
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Observer3D

public Observer3D(World world)
Method Detail

home

public void home()
Overrides:
home in class Observer

updatePosition

public boolean updatePosition()
Overrides:
updatePosition in class Observer

distance

public double distance(Agent agent)

distance

public double distance(RenderableTurtle t)
Overrides:
distance in class Observer

distance

public double distance(double x,
                       double y,
                       double z)

followOffsetZ

public double followOffsetZ()

face

public void face(double x,
                 double y,
                 double z)

moveto

public void moveto(Agent otherAgent)
Overrides:
moveto in class Observer

getPatchAtOffsets

public Patch3D getPatchAtOffsets(double dx,
                                 double dy,
                                 double dz)
                          throws AgentException
Specified by:
getPatchAtOffsets in interface Agent3D
Throws:
AgentException

setRotationPoint

public void setRotationPoint(Agent agent)
Overrides:
setRotationPoint in class Observer

orbitRight

public void orbitRight(double delta)
Overrides:
orbitRight in class Observer

orbitUp

public void orbitUp(double delta)
Overrides:
orbitUp in class Observer

rotatePsi

public void rotatePsi(double delta)
Overrides:
rotatePsi in class Observer

translate

public void translate(double thetaX,
                      double thetaY)
Overrides:
translate in class Observer