org.jzy3d.plot3d.primitives
Class Quad
java.lang.Object
   org.jzy3d.plot3d.primitives.AbstractDrawable
org.jzy3d.plot3d.primitives.AbstractDrawable
       org.jzy3d.plot3d.primitives.AbstractWireframeable
org.jzy3d.plot3d.primitives.AbstractWireframeable
           org.jzy3d.plot3d.primitives.Polygon
org.jzy3d.plot3d.primitives.Polygon
               org.jzy3d.plot3d.primitives.Quad
org.jzy3d.plot3d.primitives.Quad
- All Implemented Interfaces: 
- IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw, IWireframeable
- Direct Known Subclasses: 
- TranslucentQuad
- public class Quad 
- extends Polygon
A Quad extends a Polygon in order to provide a specific draw()
 method that relies on a dedicated GL call (GL_QUADS), and to ensure the number of points
 is never greater than 4.
- Author:
- Martin Pernollet
- See Also:
- Polygon}
| Constructor Summary | 
| Quad()Initializes an empty
 Quadwith face status defaulting to true,
 and wireframe status defaulting to false. | 
 
 
 
 
| Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable | 
| addDrawableListener, dispose, getBounds, getFace, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
Quad
public Quad()
- Initializes an empty Quadwith face status defaulting to true,
 and wireframe status defaulting to false.
 
draw
public void draw(javax.media.opengl.GL gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
- Description copied from class: AbstractDrawable
- Call OpenGL routines for rendering the object.
 
- 
- Specified by:
- drawin interface- IGLRenderer
- Overrides:
- drawin class- Polygon
 
- 
- Parameters:
- gl- GL context
- glu- GLU context
- cam- a reference to a shooting Camera.
 
add
public void add(Point point)
- Add a point to the polygon.
 
- 
- Overrides:
- addin class- Polygon
 
- 
 
getDistance
public double getDistance(Camera camera)
- Description copied from class: AbstractDrawable
- Return the distance of the object center to the Camera's eye.
 
- 
- Specified by:
- getDistancein interface- ISortableDraw
- Overrides:
- getDistancein class- Polygon
 
- 
 
getShortestDistance
public double getShortestDistance(Camera camera)
- 
- Specified by:
- getShortestDistancein interface- ISortableDraw
- Overrides:
- getShortestDistancein class- Polygon
 
- 
 
getLongestDistance
public double getLongestDistance(Camera camera)
- 
- Specified by:
- getLongestDistancein interface- ISortableDraw
- Overrides:
- getLongestDistancein class- Polygon
 
- 
 
toString
public java.lang.String toString(int depth)
- 
- Overrides:
- toStringin class- Polygon
 
-