org.jzy3d.plot3d.rendering.canvas
Class Quality

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.canvas.Quality

public class Quality
extends java.lang.Object

Provides 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 the View makes its GL initialization. The Quality may also activate an AbstractOrderingStrategy algorithm 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 (GL alpha blending + polygon ordering in scene graph) Nicest: - include Advanced mode abilities - Anti aliasing on wires

Author:
Martin Pernollet

Field Summary
static Quality Advanced
           
static Quality Fastest
           
static Quality Intermediate
           
static Quality Nicest
           
 
Constructor Summary
Quality(boolean depthActivated, boolean alphaActivated, boolean smoothColor, boolean smoothPoint, boolean smoothLine, boolean smoothPolygon, boolean disableDepth)
          Initialize a Quality configuration for a View.
 
Method Summary
 boolean isAlphaActivated()
           
 boolean isDepthActivated()
           
 boolean isDisableDepthBufferWhenAlpha()
           
 boolean isSmoothColor()
           
 boolean isSmoothLine()
           
 boolean isSmoothPoint()
           
 boolean isSmoothPolygon()
           
 void setAlphaActivated(boolean alphaActivated)
           
 void setDepthActivated(boolean depthActivated)
           
 void setDisableDepthBufferWhenAlpha(boolean disableDepthBufferWhenAlpha)
           
 void setSmoothColor(boolean smoothColor)
           
 void setSmoothEdge(boolean smoothLine)
           
 void setSmoothPoint(boolean smoothPoint)
           
 void setSmoothPolygon(boolean smoothPolygon)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Nicest

public static final Quality Nicest

Advanced

public static final Quality Advanced

Intermediate

public static final Quality Intermediate

Fastest

public static final Quality Fastest
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)