Class EnlightablePolygon
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.Wireframeable
org.jzy3d.plot3d.primitives.enlightables.AbstractEnlightable
org.jzy3d.plot3d.primitives.enlightables.EnlightablePolygon
- All Implemented Interfaces:
IGLRenderer, ISortableDraw
-
Field Summary
FieldsFields inherited from class AbstractEnlightable
materialAmbiantReflection, materialDiffuseReflection, materialEmission, materialShininess, materialSpecularReflectionFields inherited from class Wireframeable
depthFunctionChangeForWireframe, faceDisplayed, NO_OVERLAP_DEPTH_RATIO, polygonOffsetFactor, polygonOffsetFillEnable, polygonOffsetUnit, polygonWireframeDepthTrick, reflectLight, wireframeColor, wireframeColorFromPolygonPoints, wireframeDisplayed, wireframeWidth, wireframeWithLineLoopFields inherited from class Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
ConstructorsConstructorDescriptionInitializes an emptyPolygonwith face status defaulting to true, and wireframe status defaulting to false. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a point to the polygon.voidapplyGeometryTransform(Transform transform) voidCall OpenGL2 routines for rendering the object.get(int p) Retrieve a point from thePolygon.Return the barycentre of this object, which is computed as the center of its bounding box.getColor()booleanhasAlpha()voidvoidsetColorMapper(ColorMapper mapper) intsize()Indicates the number of points in thisPolygon.toString(int depth) voidprotected voidMethods inherited from class AbstractEnlightable
applyMaterial, getMaterialAmbiantReflection, getMaterialDiffuseReflection, getMaterialEmission, getMaterialShininess, getMaterialSpecularReflection, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflectionMethods inherited from class Wireframeable
applyDepthRangeDefault, applyDepthRangeForOverlying, applyDepthRangeForUnderlying, doDrawBoundsIfDisplayed, getPolygonOffsetFactor, getPolygonOffsetUnit, getWireframeColor, getWireframeWidth, isFaceDisplayed, isPolygonOffsetFillEnable, isPolygonWireframeDepthTrick, isReflectLight, isWireframeColorFromPolygonPoints, isWireframeDisplayed, polygonOffsetFillDisable, polygonOffsetFillEnable, polygonOffsetLineDisable, polygonOffsetLineEnable, setFaceDisplayed, setPolygonOffsetFactor, setPolygonOffsetFillEnable, setPolygonOffsetUnit, setPolygonWireframeDepthTrick, setReflectLight, setWireframeColor, setWireframeColorFromPolygonPoints, setWireframeDisplayed, setWireframeWidthMethods inherited from class Drawable
addDrawableListener, asWireframeable, dispose, doTransform, fireDrawableChanged, fireDrawableChanged, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString
-
Field Details
-
mapper
-
points
-
color
-
center
-
-
Constructor Details
-
EnlightablePolygon
public EnlightablePolygon()Initializes an emptyPolygonwith face status defaulting to true, and wireframe status defaulting to false.
-
-
Method Details
-
draw
-
applyGeometryTransform
- Specified by:
applyGeometryTransformin classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBoundsin classDrawable
-
updateCenter
protected void updateCenter() -
add
Add a point to the polygon. -
hasAlpha
public boolean hasAlpha() -
getBarycentre
Description copied from class:DrawableReturn the barycentre of this object, which is computed as the center of its bounding box. If the bounding box is not available, the returned value isinvalid reference
Coord3d.INVALID- Overrides:
getBarycentrein classDrawable- Returns:
- the center of the bounding box, or
.
invalid reference
Coord3d.INVALID
-
get
-
size
-
setColorMapper
-
getColorMapper
-
setColor
-
getColor
-
toString
-