org.jzy3d.plot3d.rendering.canvas
Class Quality
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.canvas.Quality
-
public class Quality extends java.lang.ObjectProvides a structure for setting the rendering quality, i.e., the tradeoff between computation speed, and graphic quality. Following mode have an impact on the way theViewmakes its GL2 initialization. TheQualitymay also activate anAbstractOrderingStrategyalgorithm that enables clean alpha results. Fastest: - No transparency, no color shading, just handle depth buffer. Intermediate: - include Fastest mode abilities - Color shading, mainly usefull to have interpolated colors on polygons. Advanced: - include Intermediate mode abilities - Transparency (GL2 alpha blending + polygon ordering in scene graph) Nicest: - include Advanced mode abilities - Anti aliasing on wires Toggling rendering model: one may either choose to have a repaint-on-demand or repaint-continuously model. Setting isAnimated(false) will desactivate a theAnimatorupdating the choosenICanvasimplementation. setAutoSwapBuffer(false) will equaly configure theICanvas.
-
-
Field Summary
Fields Modifier and Type Field and Description static QualityAdvancedEnables alpha and color interpolation.static booleanDEFAULT_PRESERVE_VIEWPORTstatic QualityFastestMinimal quality to allow fastest rendering (no alpha, interpolation or antialiasing).static QualityIntermediateEnables color interpolation.static QualityNicestEnables alpha, color interpolation and antialiasing on lines, points, and polygons.
-
Constructor Summary
Constructors Constructor and Description Quality(boolean depthActivated, boolean alphaActivated, boolean smoothColor, boolean smoothPoint, boolean smoothLine, boolean smoothPolygon, boolean disableDepth)Initialize a Quality configuration for a View.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisAlphaActivated()booleanisAnimated()booleanisAutoSwapBuffer()booleanisDepthActivated()booleanisDisableDepthBufferWhenAlpha()booleanisPreserveViewportSize()booleanisSmoothColor()booleanisSmoothLine()booleanisSmoothPoint()booleanisSmoothPolygon()voidsetAlphaActivated(boolean alphaActivated)voidsetAnimated(boolean isAnimated)voidsetAutoSwapBuffer(boolean isAutoSwapBuffer)voidsetDepthActivated(boolean depthActivated)voidsetDisableDepthBufferWhenAlpha(boolean disableDepthBufferWhenAlpha)voidsetPreserveViewportSize(boolean preserveViewportSize)voidsetSmoothColor(boolean smoothColor)voidsetSmoothEdge(boolean smoothLine)voidsetSmoothPoint(boolean smoothPoint)voidsetSmoothPolygon(boolean smoothPolygon)
-
-
-
Field Detail
-
Nicest
public static final Quality Nicest
Enables alpha, color interpolation and antialiasing on lines, points, and polygons.
-
Advanced
public static final Quality Advanced
Enables alpha and color interpolation.
-
Intermediate
public static final Quality Intermediate
Enables color interpolation.
-
Fastest
public static final Quality Fastest
Minimal quality to allow fastest rendering (no alpha, interpolation or antialiasing).
-
DEFAULT_PRESERVE_VIEWPORT
public static boolean DEFAULT_PRESERVE_VIEWPORT
-
-
Constructor Detail
-
Quality
public Quality(boolean depthActivated, boolean alphaActivated, boolean smoothColor, boolean smoothPoint, boolean smoothLine, boolean smoothPolygon, boolean disableDepth)Initialize a Quality configuration for a View.
-
-
Method Detail
-
isDepthActivated
public boolean isDepthActivated()
-
setDepthActivated
public void setDepthActivated(boolean depthActivated)
-
isAlphaActivated
public boolean isAlphaActivated()
-
setAlphaActivated
public void setAlphaActivated(boolean alphaActivated)
-
isSmoothColor
public boolean isSmoothColor()
-
setSmoothColor
public void setSmoothColor(boolean smoothColor)
-
isSmoothLine
public boolean isSmoothLine()
-
setSmoothEdge
public void setSmoothEdge(boolean smoothLine)
-
isSmoothPoint
public boolean isSmoothPoint()
-
setSmoothPoint
public void setSmoothPoint(boolean smoothPoint)
-
isSmoothPolygon
public boolean isSmoothPolygon()
-
setSmoothPolygon
public void setSmoothPolygon(boolean smoothPolygon)
-
isDisableDepthBufferWhenAlpha
public boolean isDisableDepthBufferWhenAlpha()
-
setDisableDepthBufferWhenAlpha
public void setDisableDepthBufferWhenAlpha(boolean disableDepthBufferWhenAlpha)
-
isAnimated
public boolean isAnimated()
-
setAnimated
public void setAnimated(boolean isAnimated)
-
isAutoSwapBuffer
public boolean isAutoSwapBuffer()
-
setAutoSwapBuffer
public void setAutoSwapBuffer(boolean isAutoSwapBuffer)
-
isPreserveViewportSize
public boolean isPreserveViewportSize()
-
setPreserveViewportSize
public void setPreserveViewportSize(boolean preserveViewportSize)
-
-
DMelt 3.0 © DataMelt by jWork.ORG