Package com.luciad.view.lightspeed
Class TLspPaintPhase
java.lang.Object
com.luciad.view.lightspeed.TLspPaintPhase
Class that describes the current paint phase. A paint phase consists of a
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).- Since:
- 2012.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Identifies how the objects are added to the world: draped on terrain or not.static enum
Identifies the current paint phase in the transparency algorithm and hence which objects should be drawn.static enum
Identifies for which eye the view should be rendered for a stereoscopic view. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Defines which objects need to be drawn based on the fact whether terrain or not is required.Defines which objects need to be drawn based on the object's painting style.Defines that the left or right eye needs to be rendered when a stereoscopic view is used.toString()
-
Method Details
-
getInstance
public static TLspPaintPhase getInstance(TLspPaintPhase.PaintOpacity aPaintOpacity, TLspPaintPhase.PaintDraping aPaintDraping) Returns a TLspPaintPhase combining the passed Paint Opacity and Paint Draping. The Paint stereo is set toTLspPaintPhase.PaintStereo.NON_STEREO
.- Parameters:
aPaintOpacity
- the Paint OpacityaPaintDraping
- the Paint Draping- Returns:
- a TLspPaintPhase
-
getInstance
public static TLspPaintPhase getInstance(TLspPaintPhase.PaintOpacity aPaintOpacity, TLspPaintPhase.PaintDraping aPaintDraping, TLspPaintPhase.PaintStereo aPaintStereo) Returns a TLspPaintPhase combining the passed Paint Opacity and Paint Draping.- Parameters:
aPaintOpacity
- the Paint OpacityaPaintDraping
- the Paint DrapingaPaintStereo
- the Paint Stereo- Returns:
- a TLspPaintPhase
-
getPaintOpacity
Defines which objects need to be drawn based on the object's painting style.- Returns:
- whether transparent, opaque, or all objects should be painted
-
getPaintDraping
Defines which objects need to be drawn based on the fact whether terrain or not is required.- Returns:
- whether objects to be draped, to be not draped, or all objects should be painted.
-
getPaintStereo
Defines that the left or right eye needs to be rendered when a stereoscopic view is used.- Returns:
- whether the left or right eye is to be rendered or that no stereoscopic rendering is needed.
-
toString
-