Interface TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory
- Enclosing class:
TLcyGXYLspAsynchronousFormatWrapper
A factory that can create an ILspLayer
equivalent of a given ILcdGXYLayer
.
It is up to the implementor of this factory to keep the style of the ILspLayer
in
sync with the provided ILcdGXYLayer
.
- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreateLayer
(ILcdGXYLayer aLayer) Determines whether or not this layer factory is capable of creating anILspLayer
equivalent of the givenILcdGXYLayer
.createLayer
(ILcdGXYLayer aLayer) Creates anILspLayer
equivalent of the givenILcdGXYLayer
.
-
Method Details
-
canCreateLayer
Determines whether or not this layer factory is capable of creating anILspLayer
equivalent of the givenILcdGXYLayer
. If this method returns false, the result of callingcreateLayer(ILcdGXYLayer)
with the same argument is undefined.- Parameters:
aLayer
- theILcdGXYLayer
for which anILspLayer
equivalent should be created- Returns:
- true if this factory can create a layer for the given GXY layer, false otherwise
-
createLayer
Creates an
ILspLayer
equivalent of the givenILcdGXYLayer
. The layer must have a validILcdModelXYZWorldTransformation
to be usable by the view. Note that this method should not be called ifcanCreateLayer(ILcdGXYLayer)
returns false; the results are undefined in this case.Additionally, the style of the created Lightspeed layer should be kept in sync with the style of
aLayer
: if the style ofaLayer
changes, the style of the returned Lightspeed layer should be updated as well. Note thataLayer
should not be updated if the style of the returned Lightspeed layer has changed.- Parameters:
aLayer
- theILcdGXYLayer
for which anILspLayer
equivalent should be created- Returns:
- a layer equivalent to
ILcdGXYLayer
-