Class ALcyLspShapeSupplier

java.lang.Object
com.luciad.lucy.addons.drawing.lightspeed.ALcyLspShapeSupplier

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.

Since:
2012.1
See Also:
  • Constructor Details

    • ALcyLspShapeSupplier

      public ALcyLspShapeSupplier()
  • Method Details

    • createShapeDiscretizer

      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.

      Parameters:
      aPaintRepresentation - the paint representation to create a discretizer for
      Returns:
      the shape discretizer for the shapes of this supplier instance. May be null in which case the fallback discretizer of the TLcyLspSLDDomainObjectSupplier will be used.
      See Also:
    • createShapeEditor

      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.

      Parameters:
      aPaintRepresentation - the paint representation to create an editor for
      Returns:
      the ILspEditor for the shapes of this supplier instance, or null when editing is not supported for this shape
      See Also: