Package org.jzy3d.plot3d.primitives
Class Polygon
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.Wireframeable
-
- org.jzy3d.plot3d.primitives.Geometry
-
- org.jzy3d.plot3d.primitives.Polygon
-
- All Implemented Interfaces:
IMultiColorable
,ISingleColorable
,IGLRenderer
,ISortableDraw
- Direct Known Subclasses:
ColoredWireframePolygon
,PickablePolygon
,Quad
,SimplePolygon
public class Polygon extends Geometry
Supports additional settings- 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
Constructors Constructor Description Polygon()
Initializes an emptyPolygon
with face status defaulting to true, and wireframe status defaulting to false.Polygon(List<Point> points)
Polygon(Color wire, boolean wireDisplayed, Point... points)
Polygon(Color wire, Color face)
Polygon(Color wire, Color face, Coord3d... points)
Polygon(Color wire, Point... points)
Polygon(Point... points)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
begin(IPainter painter)
Invoke GL begin with the actual geometry typeGL#GL_POINTS
,GL#GL_LINES
,GL#GL_TRIANGLES
,GL2#GL_POLYGON
...-
Methods inherited from class org.jzy3d.plot3d.primitives.Geometry
add, 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, toString, 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
-
-