public class TLspDrapingToggleStyler extends ALspToggleStyler
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.ILspWorldElevationStyle.ElevationMode.OBJECT_DEPENDENT
Constructor and Description |
---|
TLspDrapingToggleStyler(ILspStyler aRegularStyler,
ILspStyler aDrapingStyler)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isUseSpecialStyler(Object aObject,
TLspContext aContext)
Returns
true for all ILcdBounded objects at 0 altitude
and with 0 depth. |
addStyleChangeListener, getRegularStyler, getSpecialStyler, removeStyleChangeListener, style
fireStyleChangeEvent, fireStyleChangeEvent
public TLspDrapingToggleStyler(ILspStyler aRegularStyler, ILspStyler aDrapingStyler)
aRegularStyler
- The styler that will be used for objects that are not suitable for
drapingaDrapingStyler
- The styler that will be used for draped objectsprotected boolean isUseSpecialStyler(Object aObject, TLspContext aContext)
true
for all ILcdBounded
objects at 0 altitude
and with 0 depth.isUseSpecialStyler
in class ALspToggleStyler
aObject
- the objectaContext
- provides context informationtrue
for all ILcdBounded
objects at 0 altitude
and with 0 depth, false
otherwise.