public final class TLspPaintPhase extends Object
TLspPaintPhase.PaintOpacity
, TLspPaintPhase.PaintDraping
and a TLspPaintPhase.PaintStereo
.
An ILspView
may paint
its layers in multiple phases, depending on rendering techniques which are
used (such as draping over terrain or transparency blending). All the view's
layers may be visited again during every phase. The paint phase can state,
for example, that only opaque objects that are not draped should be painted.
Painters should then comply with the supplied settings and only paint what
is requested.
The paint phase also identifies for which eye the view should be rendered if the view is stereoscopic
(e.g. for a VR headset).Modifier and Type | Class and Description |
---|---|
static class |
TLspPaintPhase.PaintDraping
Identifies how the objects are added to the world: draped on terrain
or not.
|
static class |
TLspPaintPhase.PaintOpacity
Identifies the current paint phase in the transparency algorithm
and hence which objects should be drawn.
|
static class |
TLspPaintPhase.PaintStereo
Identifies for which eye the view should be rendered for a stereoscopic view.
|
Modifier and Type | Method and Description |
---|---|
static TLspPaintPhase |
getInstance(TLspPaintPhase.PaintOpacity aPaintOpacity,
TLspPaintPhase.PaintDraping aPaintDraping)
Returns a TLspPaintPhase combining the passed Paint Opacity and Paint Draping.
|
static TLspPaintPhase |
getInstance(TLspPaintPhase.PaintOpacity aPaintOpacity,
TLspPaintPhase.PaintDraping aPaintDraping,
TLspPaintPhase.PaintStereo aPaintStereo)
Returns a TLspPaintPhase combining the passed Paint Opacity and Paint Draping.
|
TLspPaintPhase.PaintDraping |
getPaintDraping()
Defines which objects need to be drawn based on the fact
whether terrain or not is required.
|
TLspPaintPhase.PaintOpacity |
getPaintOpacity()
Defines which objects need to be drawn based on the object's painting style.
|
TLspPaintPhase.PaintStereo |
getPaintStereo()
Defines that the left or right eye needs to be rendered when a stereoscopic view is used.
|
String |
toString() |
public static TLspPaintPhase getInstance(TLspPaintPhase.PaintOpacity aPaintOpacity, TLspPaintPhase.PaintDraping aPaintDraping)
TLspPaintPhase.PaintStereo.NON_STEREO
.aPaintOpacity
- the Paint OpacityaPaintDraping
- the Paint Drapingpublic static TLspPaintPhase getInstance(TLspPaintPhase.PaintOpacity aPaintOpacity, TLspPaintPhase.PaintDraping aPaintDraping, TLspPaintPhase.PaintStereo aPaintStereo)
aPaintOpacity
- the Paint OpacityaPaintDraping
- the Paint DrapingaPaintStereo
- the Paint Stereopublic TLspPaintPhase.PaintOpacity getPaintOpacity()
public TLspPaintPhase.PaintDraping getPaintDraping()
public TLspPaintPhase.PaintStereo getPaintStereo()