org.jzy3d.plot3d.primitives
Class Quad
- java.lang.Object
-
- All Implemented Interfaces:
- IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw
- Direct Known Subclasses:
- TranslucentQuad
public class Quad extends Polygon
AQuadextends aPolygonin 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.- See Also:
Polygon}
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jzy3d.plot3d.primitives.AbstractGeometry
AbstractGeometry.PolygonMode
-
-
Constructor Summary
Constructors Constructor and Description Quad()Initializes an emptyQuadwith face status defaulting to true, and wireframe status defaulting to false.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Point point)Add a point to the polygon.java.lang.StringtoString(int depth)-
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractGeometry
add, applyGeometryTransform, applyPolygonModeFillGL2, applyPolygonModeFillGLES2, callPointsForFaceGL2, callPointsForFaceGLES2, callPointsForFaceGLES2, callPointsForWireframeGL2, draw, get, getBarycentre, getColor, getColorMapper, getDistance, getLongestDistance, getPoints, getPolygonMode, getShortestDistance, isPolygonOffsetFillEnable, setColor, setColorMapper, setPolygonMode, setPolygonOffsetFillEnable, setPolygonOffsetFillEnable, size, updateBounds
-
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth
-
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, dispose, doTransform, 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 emptyQuadwith face status defaulting to true, and wireframe status defaulting to false.
-
-
Method Detail
-
add
public void add(Point point)
Add a point to the polygon.- Overrides:
addin classAbstractGeometry
-
toString
public java.lang.String toString(int depth)
- Overrides:
toStringin classAbstractGeometry
-
-
DMelt 3.0 © DataMelt by jWork.ORG