Class TLspDrapingToggleStyler
java.lang.Object
com.luciad.view.lightspeed.style.styler.ALspStyler
com.luciad.view.lightspeed.style.styler.ALspToggleStyler
com.luciad.view.lightspeed.style.styler.TLspDrapingToggleStyler
- All Implemented Interfaces:
ILspStyler
Uses one of two stylers, depending on the object's bounds (assuming the
object implements
ILcdBounded
). Note that this behavior can be
achieved more easily by using ILspWorldElevationStyle.ElevationMode.OBJECT_DEPENDENT
.
The second (or special) styler is used for flat shapes at zero altitude
(i.e., shapes that are to be draped on terrain). The first (or regular)
styler is used for all other shapes.
An object that does not implement ILcdBounded
is not draped on
terrain.- Since:
- 2012.0
- See Also:
-
Constructor Summary
ConstructorDescriptionTLspDrapingToggleStyler
(ILspStyler aRegularStyler, ILspStyler aDrapingStyler) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isUseSpecialStyler
(Object aObject, TLspContext aContext) Returnstrue
for allILcdBounded
objects at 0 altitude and with 0 depth.Methods inherited from class com.luciad.view.lightspeed.style.styler.ALspToggleStyler
addStyleChangeListener, getRegularStyler, getSpecialStyler, removeStyleChangeListener, style
Methods inherited from class com.luciad.view.lightspeed.style.styler.ALspStyler
fireStyleChangeEvent, fireStyleChangeEvent
-
Constructor Details
-
TLspDrapingToggleStyler
Default constructor.- Parameters:
aRegularStyler
- The styler that will be used for objects that are not suitable for drapingaDrapingStyler
- The styler that will be used for draped objects
-
-
Method Details
-
isUseSpecialStyler
Returnstrue
for allILcdBounded
objects at 0 altitude and with 0 depth.- Specified by:
isUseSpecialStyler
in classALspToggleStyler
- Parameters:
aObject
- the objectaContext
- provides context information- Returns:
true
for allILcdBounded
objects at 0 altitude and with 0 depth,false
otherwise.
-