Package org.jzy3d.plot3d.primitives
Class Quad
- All Implemented Interfaces:
IMultiColorable
,ISingleColorable
,IGLRenderer
,ISortableDraw
- Direct Known Subclasses:
TranslucentQuad
A
method
that relies on a dedicated GL2 call (GL_QUADS), and to ensure the number of points is never
greater than 4.
Quad
extends a Polygon
in order to provide a specific
invalid @link
draw()
- 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a point to the polygon.protected void
Invoke GL begin with the actual geometry typeinvalid @link
GL#GL_POINTS
invalid @link
GL#GL_LINES
invalid @link
GL#GL_TRIANGLES
invalid @link
GL2#GL_POLYGON
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 Details
-
Quad
public Quad()Initializes an emptyQuad
with face status defaulting to true, and wireframe status defaulting to false.
-
-
Method Details
-
begin
Description copied from class:Geometry
Invoke GL begin with the actual geometry typeinvalid @link
GL#GL_POINTS
invalid @link
GL#GL_LINES
invalid @link
GL#GL_TRIANGLES
invalid @link
GL2#GL_POLYGON
-
add
Add a point to the polygon. -
toString
-