Package org.jzy3d.plot3d.primitives
Class Quad
-
- All Implemented Interfaces:
IMultiColorable
,ISingleColorable
,IGLRenderer
,ISortableDraw
- Direct Known Subclasses:
TranslucentQuad
public class Quad extends Polygon
AQuad
extends aPolygon
in order to provide a specificdraw()
method that relies on a dedicated GL2 call (GL_QUADS), and to ensure the number of points is never greater than 4.- Author:
- Martin Pernollet
-
-
Field Summary
-
Fields inherited from class org.jzy3d.plot3d.primitives.Geometry
center, color, mapper, NORMAL_AUTO_DEFAULT, NORMAL_END_COLOR, NORMAL_LINE_WIDTH, NORMAL_POINT_WIDTH, NORMAL_START_COLOR, NORMALIZE_NORMAL_DEFAULT, normalizeNormals, normalPer, normalProcessingAutomatic, normals, points, polygonMode, SHOW_NORMALS, SPLIT_TRIANGLE_DEFAULT, splitInTriangles
-
Fields inherited from class org.jzy3d.plot3d.primitives.Wireframeable
depthFunctionChangeForWireframe, faceDisplayed, materialAmbiantReflection, materialDiffuseReflection, materialEmission, materialShininess, materialSpecularReflection, NO_OVERLAP_DEPTH_RATIO, polygonOffsetFactor, polygonOffsetFillEnable, polygonOffsetUnit, polygonWireframeDepthTrick, reflectLight, wireframeColor, wireframeColorFromPolygonPoints, wireframeDisplayed, wireframeWidth, wireframeWithLineLoop
-
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Point point)
Add a point to the polygon.protected void
begin(IPainter painter)
Invoke GL begin with the actual geometry typeGL#GL_POINTS
,GL#GL_LINES
,GL#GL_TRIANGLES
,GL2#GL_POLYGON
...String
toString(int depth)
-
Methods inherited from class org.jzy3d.plot3d.primitives.Geometry
add, add, add, add, add, add, add, applyGeometryTransform, applyPointOrMapperColor, callPointForWireframe, callPointsForFace, callPointsForFace_NoSplit, callPointsForFace_NoSplit_NoNormal, callPointsForFace_NoSplit_NormalAuto, callPointsForFace_NoSplit_NormalSupplied, callPointsForFace_SplitInTriangle, callPointsForFace_SplitInTriangle_NormalAuto, callPointsForFace_SplitInTriangle_NormalSupplied, computeNormalAutomatic, computeNormalAutomatic, draw, drawFace, drawNormal, drawPolygonNormal, drawPolygonNormal, drawTriangleNormal, drawTriangleNormal, drawWireframe, equals, get, getBarycentre, getColor, getColorMapper, getCoordArray, getCoordList, getCoordSet, getDistance, getLongestDistance, getNormals, getPoints, getPointSet, getPolygonMode, getShortestDistance, hashCode, isNormalizeNormals, isNormalProcessingAutomatic, isSplitInTriangles, setColor, setColorMapper, setNormal, setNormalizeNormals, setNormalProcessingAutomatic, setNormals, setPolygonMode, setReflectLight, setSplitInTriangles, size, updateBounds
-
Methods inherited from class org.jzy3d.plot3d.primitives.Wireframeable
applyDepthRangeDefault, applyDepthRangeForOverlying, applyDepthRangeForUnderlying, applyMaterial, doDrawBoundsIfDisplayed, getMaterialAmbiantReflection, getMaterialDiffuseReflection, getMaterialEmission, getMaterialShininess, getMaterialSpecularReflection, getPolygonOffsetFactor, getPolygonOffsetUnit, getWireframeColor, getWireframeWidth, isFaceDisplayed, isPolygonOffsetFillEnable, isPolygonWireframeDepthTrick, isReflectLight, isWireframeColorFromPolygonPoints, isWireframeDisplayed, polygonOffsetFillDisable, polygonOffsetFillEnable, polygonOffsetLineDisable, polygonOffsetLineEnable, setFaceDisplayed, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflection, setPolygonOffsetFactor, setPolygonOffsetFillEnable, setPolygonOffsetUnit, setPolygonWireframeDepthTrick, setWireframeColor, setWireframeColorFromPolygonPoints, setWireframeDisplayed, setWireframeWidth
-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doTransform, fireDrawableChanged, fireDrawableChanged, getBoundingBoxColor, getBounds, getLegend, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString
-
-
-
-
Constructor Detail
-
Quad
public Quad()
Initializes an emptyQuad
with face status defaulting to true, and wireframe status defaulting to false.
-
-