Class TLspPlotPaintingHints.Builder
java.lang.Object
com.luciad.view.lightspeed.layer.plots.TLspPlotPaintingHints.Builder
- Enclosing class:
TLspPlotPaintingHints
Builder for TLspPlotPaintingHints objects.
- Since:
- 2012.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a new TLspPlotPaintingHints instance with this builder's current settings.Specifies whether the plot layer should perform higher quality transparency blending.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Creates a new TLspPlotPaintingHints instance with this builder's current settings.- Returns:
- a new plot painting hints object
-
transparencyBlending
Specifies whether the plot layer should perform higher quality transparency blending. For performance reasons, the default behavior of plot layers is to draw all plots in theOPAQUE
painting pass. This is okay as long as the plots use opaque icons on a fully transparent background. If the icons contain semi-transparent pixels, however, rendering artifacts can occur in 3D due to the use of depth testing. Setting the transparency blending hint to ELspQualityHint.NICEST will cause the plot layer to perform two rendering passes. The opaque pixels in the plot icons will be drawn in theOPAQUE
paint phase, whereas all translucent pixels will be drawn in theTRANSPARENT
phase. This implies that all points are rendered twice, which obviously has some performance impact. Note that the blending hint has no effect in 2D views, where single-pass rendering is always sufficient. The default setting is ELspQualityHint.AUTOMATIC.- Parameters:
aHint
- the transparency blending quality- Returns:
this
-