public class Quad extends Polygon
Quad
extends a Polygon
in order to provide a specific
draw()
method that relies on a dedicated GL2 call (GL_QUADS), and to
ensure the number of points is never greater than 4.Polygon}
AbstractGeometry.PolygonMode
center, color, mapper, points, polygonMode, polygonOffsetFillEnable
facestatus, wfcolor, wfstatus, wfwidth
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
Constructor and Description |
---|
Quad()
Initializes an empty
Quad with face status defaulting to true,
and wireframe status defaulting to false. |
Modifier and Type | Method and Description |
---|---|
void |
add(Point point)
Add a point to the polygon.
|
protected void |
begin(com.jogamp.opengl.GL gl) |
String |
toString(int depth) |
add, applyGeometryTransform, applyPolygonModeFill, applyPolygonModeFillGL2, applyPolygonModeFillGLES2, applyPolygonModeLine, applyPolygonModeLineGL2, applyPolygonModeLineGLES2, callPointForWireframe, callPointsForFace, callPointsForFaceGL2, callPointsForFaceGLES2, callPointsForFaceGLES2, callPointsForWireframeGL2, draw, end, get, getBarycentre, getColor, getColorMapper, getDistance, getLongestDistance, getPoints, getPolygonMode, getShortestDistance, isPolygonOffsetFillEnable, polygonOffseFillEnable, polygonOffsetFillDisable, setColor, setColorMapper, setPolygonMode, setPolygonOffsetFillEnable, setPolygonOffsetFillEnable, size, updateBounds
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth
addDrawableListener, call, call, callWithAlphaFactor, colorGL2, colorGLES2, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBoundingBoxColor, getBounds, getLegend, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, vertexGL2, vertexGLES2
public Quad()
Quad
with face status defaulting to true,
and wireframe status defaulting to false.public void add(Point point)
add
in class AbstractGeometry
public String toString(int depth)
toString
in class AbstractGeometry
Copyright © 2016. All rights reserved.