org.jzy3d.plot3d.primitives.interactive
Interface IInteractive

All Known Implementing Classes:
InteractiveScatter, InteractiveSphere, TexturedCube, TexturedCylinder

public interface IInteractive

An IInteractive object is supposed to be able to compute its projection on the screen according to the Camera settings (viewport, viewpoint, etc). The View provides a mean to update the projection of all IInteractive held by the scene's Graph. Indeed, interaction sources such as an AbstractChartMouseSelector are supposed to call view.project() to query an update of all IInteractive objects' projections. Projection implementation is rather fast but one should consider projecting only when required, i.e. when the actual scene's Graph projection changes, which is: - when view point changes - when view scaling changes - when the objects data (shape) changes So the user is responsible of handling appropriate calls to view.project()

Author:
Martin Pernollet

Method Summary
 java.awt.Polygon getHull2d()
           
 java.util.List<Coord3d> getLastProjection()
           
 void project(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
           
 

Method Detail

project

void project(javax.media.opengl.GL gl,
             javax.media.opengl.glu.GLU glu,
             Camera cam)

getHull2d

java.awt.Polygon getHull2d()

getLastProjection

java.util.List<Coord3d> getLastProjection()