Class ALcyLspShapeSupplier
Provides the shapes specific functionality to a TLcyLspSLDDomainObjectSupplier. This
shape specific functionality consists of an ILspShapeDiscretizer and an ILspEditor.
All style-related functionality is taken care of in the TLcyLspSLDDomainObjectSupplier
class which uses this ALcyLspShapeSupplier.
- Since:
- 2012.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation) Creates the shape discretizer for the shapes of this supplier instance.createShapeEditor(TLspPaintRepresentation aPaintRepresentation) Creates theILspEditorfor the shapes of this supplier instance.
-
Constructor Details
-
ALcyLspShapeSupplier
public ALcyLspShapeSupplier()
-
-
Method Details
-
createShapeDiscretizer
Creates the shape discretizer for the shapes of this supplier instance. This discretizer should only accept the shapes created by this supplier, and throw a
TLspDiscretizationExceptionfor unknown shapes (as specified in theILspShapeDiscretizerinterface).This method may return
null. In that case, the fallback discretizer set by the drawing layer factory will be used.The default implementation returns
null.Warning: unlike its GXY counterpart, this shape supplier can be asked to discretize shapes other than the ones created by the GXY counterpart. More specifically, if the
TLcySLDDomainObjectSupplierextruded the shape of theALcyShapeSupplier, the object that must be discretized can be anILcdExtrudedShapewith the original shape as base shape. This is similar to theALcyGLShapeSupplier.- Parameters:
aPaintRepresentation- the paint representation to create a discretizer for- Returns:
- the shape discretizer for the shapes of this supplier instance. May be
nullin which case the fallback discretizer of theTLcyLspSLDDomainObjectSupplierwill be used. - See Also:
-
createShapeEditor
Creates the
ILspEditorfor the shapes of this supplier instance.The
TLspEditContextpassed to the editor will contain theTLcySLDDomainObjectas domain object, and the shape created by this supplier as geometry (or the extruded version of this shape).The default implementation returns a
TLspShapeEditorfor theTLspPaintRepresentation.BODYrepresentation.Warning: unlike its GXY counterpart, this shape supplier can be asked to edit shapes other than the ones created by the GXY counterpart. More specifically, if the
TLcySLDDomainObjectSupplierextruded the shape of theALcyShapeSupplier, the object that must be edited can be anILcdExtrudedShapewith the original shape as base shape.- Parameters:
aPaintRepresentation- the paint representation to create an editor for- Returns:
- the
ILspEditorfor the shapes of this supplier instance, ornullwhen editing is not supported for this shape - See Also:
-