public abstract class ALcyLspShapeSupplier extends Object
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
.
TLcyLspSLDDomainObjectSupplier
Constructor and Description |
---|
ALcyLspShapeSupplier() |
Modifier and Type | Method and Description |
---|---|
ILspShapeDiscretizer |
createShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation)
Creates the shape discretizer for the shapes of this supplier instance.
|
ILspEditor |
createShapeEditor(TLspPaintRepresentation aPaintRepresentation)
Creates the
ILspEditor for the shapes of this supplier instance. |
public ILspShapeDiscretizer createShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation)
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 TLspDiscretizationException
for unknown shapes (as specified in the ILspShapeDiscretizer
interface).
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
TLcySLDDomainObjectSupplier
extruded the shape of the
ALcyShapeSupplier
, the object that must be discretized can be an
ILcdExtrudedShape
with the original shape as base shape. This is similar to the
ALcyGLShapeSupplier
.
aPaintRepresentation
- the paint representation to create a discretizer fornull
in which case the fallback discretizer of the TLcyLspSLDDomainObjectSupplier
will be used.ILspShapeDiscretizer
,
ALcyLspDomainObjectSupplier.createShapeDiscretizer(com.luciad.view.lightspeed.layer.TLspPaintRepresentation)
public ILspEditor createShapeEditor(TLspPaintRepresentation aPaintRepresentation)
Creates the ILspEditor
for the shapes of this supplier instance.
The TLspEditContext
passed to the
editor will contain the TLcySLDDomainObject
as domain object, and the shape created by this supplier as geometry (or
the extruded version of this shape).
The default implementation returns a TLspShapeEditor
for the
TLspPaintRepresentation.BODY
representation.
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
TLcySLDDomainObjectSupplier
extruded the shape of the
ALcyShapeSupplier
, the object that must be edited can be an
ILcdExtrudedShape
with the original shape as base shape.
aPaintRepresentation
- the paint representation to create an editor forILspEditor
for the shapes of this supplier instance, or null
when
editing is not supported for this shapeILspEditor