org.jzy3d.plot3d.primitives.selectable
Interface Selectable

All Known Implementing Classes:
SelectableScatter, SelectableSphere, TexturedCube, TexturedCylinder

public interface Selectable

An Selectable 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 Selectable held by the scene's Graph. Indeed, interaction sources such as an AbstractMouseSelector are supposed to call view.project() to query an update of all Selectable 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
 Polygon getHull2d()
           
 List<Coord3d> getLastProjection()
           
 void project(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera cam)
           
 

Method Detail

project

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

getHull2d

Polygon getHull2d()

getLastProjection

List<Coord3d> getLastProjection()