org.selman.java3d.book.myjava3d
Class RotatingGeometryUpdater

java.lang.Object
  |
  +--org.selman.java3d.book.myjava3d.RotatingGeometryUpdater
All Implemented Interfaces:
GeometryUpdater

public class RotatingGeometryUpdater
extends java.lang.Object
implements GeometryUpdater

Implementation of the GeometryUpdater interface. That rotates the scene by changing the viewer position and the scale factor for the model.


Constructor Summary
RotatingGeometryUpdater()
           
 
Method Summary
 boolean update(java.awt.Graphics graphics, org.selman.java3d.book.myjava3d.RenderingEngine engine, javax.media.j3d.GeometryArray geometry, int index, long frameNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotatingGeometryUpdater

public RotatingGeometryUpdater()
Method Detail

update

public boolean update(java.awt.Graphics graphics,
                      org.selman.java3d.book.myjava3d.RenderingEngine engine,
                      javax.media.j3d.GeometryArray geometry,
                      int index,
                      long frameNumber)
Specified by:
update in interface GeometryUpdater