unc.cdva.graphics.models
Interface Object3D

All Known Implementing Classes:
AnimatedObject, RightTriangle, StaticListObject, TextureAnimatedObject

public interface Object3D

Interface of the 3D object of our rendering pipeline. An object has to be able to clone itself, because we don't want to create more that one instance of most of the 3D objects (Prototype Pattern) A 3D object also has to be able to render itself

Author:
Guillaume Conte

Method Summary
 Object3D clone()
          Clone the object (copy all the attributes)
 void render(javax.media.opengl.GL gl)
          Render an object.
 

Method Detail

clone

Object3D clone()
Clone the object (copy all the attributes)

Returns:
cloned object

render

void render(javax.media.opengl.GL gl)
Render an object. By default the object is rendered in the first opengl basis. The transformations are performed in the rendering engine according to the data stored in the corresponding interactive item

Parameters:
gl - gl context