org.jzy3d.plot3d.primitives
Class SimplePolygon

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
          extended by org.jzy3d.plot3d.primitives.Polygon
              extended by org.jzy3d.plot3d.primitives.SimplePolygon
All Implemented Interfaces:
IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw

public class SimplePolygon
extends Polygon
implements ISingleColorable, IMultiColorable

A SimplePolygon makes the simplest possible GL rendering with especially no:

Author:
Martin Pernollet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jzy3d.plot3d.primitives.Polygon
Polygon.PolygonMode
 
Field Summary
 
Fields inherited from class org.jzy3d.plot3d.primitives.Polygon
center, color, mapper, points, polygonMode, polygonOffsetFillEnable
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
facestatus, wfcolor, wfstatus, wfwidth
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
bbox, displayed, hasListeners, legend, legendDisplayed, listeners, transform
 
Constructor Summary
SimplePolygon()
           
 
Method Summary
 void draw(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL2 routines for rendering the object.
 
Methods inherited from class org.jzy3d.plot3d.primitives.Polygon
add, applyPolygonModeFill, applyPolygonModeLine, get, getAll, getBarycentre, getColor, getColorMapper, getDistance, getLongestDistance, getPolygonMode, getShortestDistance, isPolygonOffsetFillEnable, polygonOffseFillEnable, polygonOffsetFillDisable, setColor, setColorMapper, setPolygonMode, setPolygonOffsetFillEnable, setPolygonOffsetFillEnable, size, toString
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, call, call, callWithAlphaFactor, dispose, fireDrawableChanged, fireDrawableChanged, getBounds, getLegend, getTransform, hasLegend, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jzy3d.colors.ISingleColorable
getColor, setColor
 
Methods inherited from interface org.jzy3d.colors.IMultiColorable
getColorMapper, setColorMapper
 

Constructor Detail

SimplePolygon

public SimplePolygon()
Method Detail

draw

public void draw(javax.media.opengl.GL2 gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
Description copied from class: AbstractDrawable
Call OpenGL2 routines for rendering the object.

Specified by:
draw in interface IGLRenderer
Overrides:
draw in class Polygon
Parameters:
gl - GL2 context
glu - GLU context
cam - a reference to a shooting Camera.