Package org.jzy3d.plot3d.primitives
Class Wireframeable
- java.lang.Object
- 
- org.jzy3d.plot3d.primitives.Drawable
- 
- org.jzy3d.plot3d.primitives.Wireframeable
 
 
- 
- All Implemented Interfaces:
- IGLRenderer,- ISortableDraw
 - Direct Known Subclasses:
- AbstractEnlightable,- CompileableComposite,- Composite,- CubeGLUT,- Disk,- Geometry,- LineStrip,- Parallelepiped,- Sphere,- Tube
 
 public abstract class Wireframeable extends Drawable AnWireframeableis aDrawablethat has a wireframe mode for display. Defining an object asWireframeablemeans this object may have a wireframe mode status (on/off), a wireframe color, and a wireframe width. As a consequence of beingWireframeable, a 3d object may have his faces displayed or not bysetFaceDisplayed(boolean).- Author:
- Martin Pernollet
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanfaceDisplayedprotected floatpolygonOffsetFactorprotected booleanpolygonOffsetFillEnableprotected floatpolygonOffsetUnitprotected booleanpolygonWireframeDepthTrickprotected ColorwireframeColorprotected booleanwireframeColorFromPolygonPointsprotected booleanwireframeDisplayedprotected floatwireframeWidth- 
Fields inherited from class org.jzy3d.plot3d.primitives.Drawablebbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
 
- 
 - 
Constructor SummaryConstructors Constructor Description Wireframeable()Initialize the wireframeable with a white color and width of 1 for wires, hidden wireframe, and displayed faces.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyDepthRangeForOverlying(IPainter painter)protected voidapplyDepthRangeForUnderlying(IPainter painter)booleangetFaceDisplayed()Get the face display status to on or off.floatgetPolygonOffsetFactor()floatgetPolygonOffsetUnit()ColorgetWireframeColor()Get the wireframe color.booleangetWireframeDisplayed()Get the wireframe display status to on or off.floatgetWireframeWidth()Get the wireframe width.booleanisPolygonOffsetFillEnable()booleanisPolygonWireframeDepthTrick()booleanisWireframeColorFromPolygonPoints()protected voidpolygonOffseFillEnable(IPainter painter)protected voidpolygonOffsetFillDisable(IPainter painter)protected voidpolygonOffsetLineDisable(IPainter painter)protected voidpolygonOffsetLineEnable(IPainter painter)voidsetFaceDisplayed(boolean status)Set the face display status to on or off.voidsetPolygonOffsetFactor(float polygonOffsetFactor)voidsetPolygonOffsetFillEnable(boolean polygonOffsetFillEnable)Enable offset fill, which let a polygon with a wireframe render cleanly without weird depth uncertainty between face polygon and wireframe polygon.voidsetPolygonOffsetUnit(float polygonOffsetUnit)voidsetPolygonWireframeDepthTrick(boolean polygonWireframeDepthTrick)May be used as alternative tosetPolygonOffsetFillEnable(boolean)in case it is not supported by underlying OpenGL version (Polygon offset appears as off version 2).voidsetWireframeColor(Color color)Set the wireframe color.voidsetWireframeColorFromPolygonPoints(boolean wireframeColorFromPolygonPoints)voidsetWireframeDisplayed(boolean status)Set the wireframe display status to on or off.voidsetWireframeWidth(float width)Set the wireframe width.- 
Methods inherited from class org.jzy3d.plot3d.primitives.DrawableaddDrawableListener, applyGeometryTransform, dispose, doDrawBoundsIfDisplayed, doTransform, draw, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString, updateBounds
 
- 
 
- 
- 
- 
Field Detail- 
wireframeColorprotected Color wireframeColor 
 - 
wireframeWidthprotected float wireframeWidth 
 - 
wireframeDisplayedprotected boolean wireframeDisplayed 
 - 
wireframeColorFromPolygonPointsprotected boolean wireframeColorFromPolygonPoints 
 - 
faceDisplayedprotected boolean faceDisplayed 
 - 
polygonWireframeDepthTrickprotected boolean polygonWireframeDepthTrick 
 - 
polygonOffsetFillEnableprotected boolean polygonOffsetFillEnable 
 - 
polygonOffsetFactorprotected float polygonOffsetFactor 
 - 
polygonOffsetUnitprotected float polygonOffsetUnit 
 
- 
 - 
Method Detail- 
isWireframeColorFromPolygonPointspublic boolean isWireframeColorFromPolygonPoints() 
 - 
setWireframeColorFromPolygonPointspublic void setWireframeColorFromPolygonPoints(boolean wireframeColorFromPolygonPoints) 
 - 
setWireframeColorpublic void setWireframeColor(Color color) Set the wireframe color.
 - 
setWireframeDisplayedpublic void setWireframeDisplayed(boolean status) Set the wireframe display status to on or off.
 - 
setWireframeWidthpublic void setWireframeWidth(float width) Set the wireframe width.
 - 
setFaceDisplayedpublic void setFaceDisplayed(boolean status) Set the face display status to on or off.
 - 
getWireframeColorpublic Color getWireframeColor() Get the wireframe color.
 - 
getWireframeDisplayedpublic boolean getWireframeDisplayed() Get the wireframe display status to on or off.
 - 
getWireframeWidthpublic float getWireframeWidth() Get the wireframe width.
 - 
getFaceDisplayedpublic boolean getFaceDisplayed() Get the face display status to on or off.
 - 
polygonOffseFillEnableprotected void polygonOffseFillEnable(IPainter painter) 
 - 
polygonOffsetFillDisableprotected void polygonOffsetFillDisable(IPainter painter) 
 - 
polygonOffsetLineEnableprotected void polygonOffsetLineEnable(IPainter painter) 
 - 
polygonOffsetLineDisableprotected void polygonOffsetLineDisable(IPainter painter) 
 - 
isPolygonOffsetFillEnablepublic boolean isPolygonOffsetFillEnable() 
 - 
setPolygonOffsetFillEnablepublic void setPolygonOffsetFillEnable(boolean polygonOffsetFillEnable) Enable offset fill, which let a polygon with a wireframe render cleanly without weird depth uncertainty between face polygon and wireframe polygon.
 - 
getPolygonOffsetFactorpublic float getPolygonOffsetFactor() 
 - 
setPolygonOffsetFactorpublic void setPolygonOffsetFactor(float polygonOffsetFactor) 
 - 
getPolygonOffsetUnitpublic float getPolygonOffsetUnit() 
 - 
setPolygonOffsetUnitpublic void setPolygonOffsetUnit(float polygonOffsetUnit) 
 - 
setPolygonWireframeDepthTrickpublic void setPolygonWireframeDepthTrick(boolean polygonWireframeDepthTrick) May be used as alternative tosetPolygonOffsetFillEnable(boolean)in case it is not supported by underlying OpenGL version (Polygon offset appears as off version 2).
 - 
isPolygonWireframeDepthTrickpublic boolean isPolygonWireframeDepthTrick() 
 - 
applyDepthRangeForUnderlyingprotected void applyDepthRangeForUnderlying(IPainter painter) 
 - 
applyDepthRangeForOverlyingprotected void applyDepthRangeForOverlying(IPainter painter) 
 
- 
 
-