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 TypeMethodDescriptionbooleancanCreateLayer(ILcdGXYLayer aLayer) Determines whether or not this layer factory is capable of creating anILspLayerequivalent of the givenILcdGXYLayer.createLayer(ILcdGXYLayer aLayer) Creates anILspLayerequivalent of the givenILcdGXYLayer.
-
Method Details
-
canCreateLayer
Determines whether or not this layer factory is capable of creating anILspLayerequivalent of the givenILcdGXYLayer. If this method returns false, the result of callingcreateLayer(ILcdGXYLayer)with the same argument is undefined.- Parameters:
aLayer- theILcdGXYLayerfor which anILspLayerequivalent should be created- Returns:
- true if this factory can create a layer for the given GXY layer, false otherwise
-
createLayer
Creates an
ILspLayerequivalent of the givenILcdGXYLayer. The layer must have a validILcdModelXYZWorldTransformationto 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 ofaLayerchanges, the style of the returned Lightspeed layer should be updated as well. Note thataLayershould not be updated if the style of the returned Lightspeed layer has changed.- Parameters:
aLayer- theILcdGXYLayerfor which anILspLayerequivalent should be created- Returns:
- a layer equivalent to
ILcdGXYLayer
-