public class Quality extends Object
View
makes its GL2 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 (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
the Animator
updating the choosen ICanvas
implementation.
setAutoSwapBuffer(false) will equaly configure the ICanvas
.Modifier and Type | Field and Description |
---|---|
static Quality |
Advanced
Enables alpha and color interpolation.
|
protected boolean |
disableDepthBufferWhenAlpha |
static Quality |
Fastest
Minimal quality to allow fastest rendering (no alpha, interpolation or antialiasing).
|
static Quality |
Intermediate
Enables color interpolation.
|
protected boolean |
isAnimated |
protected boolean |
isAutoSwapBuffer |
static Quality |
Nicest
Enables alpha, color interpolation and antialiasing on lines, points, and polygons.
|
protected boolean |
preserveViewportSize |
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlphaActivated() |
boolean |
isAnimated() |
boolean |
isAutoSwapBuffer() |
boolean |
isDepthActivated() |
boolean |
isDisableDepthBufferWhenAlpha() |
boolean |
isPreserveViewportSize() |
boolean |
isSmoothColor() |
boolean |
isSmoothLine() |
boolean |
isSmoothPoint() |
boolean |
isSmoothPolygon() |
void |
setAlphaActivated(boolean alphaActivated) |
void |
setAnimated(boolean isAnimated) |
void |
setAutoSwapBuffer(boolean isAutoSwapBuffer) |
void |
setDepthActivated(boolean depthActivated) |
void |
setDisableDepthBufferWhenAlpha(boolean disableDepthBufferWhenAlpha) |
void |
setPreserveViewportSize(boolean preserveViewportSize) |
void |
setSmoothColor(boolean smoothColor) |
void |
setSmoothEdge(boolean smoothLine) |
void |
setSmoothPoint(boolean smoothPoint) |
void |
setSmoothPolygon(boolean smoothPolygon) |
public static final Quality Nicest
public static final Quality Advanced
public static final Quality Intermediate
public static final Quality Fastest
protected boolean disableDepthBufferWhenAlpha
protected boolean isAnimated
protected boolean isAutoSwapBuffer
protected boolean preserveViewportSize
public Quality(boolean depthActivated, boolean alphaActivated, boolean smoothColor, boolean smoothPoint, boolean smoothLine, boolean smoothPolygon, boolean disableDepth)
public boolean isDepthActivated()
public void setDepthActivated(boolean depthActivated)
public boolean isAlphaActivated()
public void setAlphaActivated(boolean alphaActivated)
public boolean isSmoothColor()
public void setSmoothColor(boolean smoothColor)
public boolean isSmoothLine()
public void setSmoothEdge(boolean smoothLine)
public boolean isSmoothPoint()
public void setSmoothPoint(boolean smoothPoint)
public boolean isSmoothPolygon()
public void setSmoothPolygon(boolean smoothPolygon)
public boolean isDisableDepthBufferWhenAlpha()
public void setDisableDepthBufferWhenAlpha(boolean disableDepthBufferWhenAlpha)
public boolean isAnimated()
public void setAnimated(boolean isAnimated)
public boolean isAutoSwapBuffer()
public void setAutoSwapBuffer(boolean isAutoSwapBuffer)
public boolean isPreserveViewportSize()
public void setPreserveViewportSize(boolean preserveViewportSize)
Copyright © 2016. All rights reserved.