Class TLcdValuedPolygon

java.lang.Object
com.luciad.shape.TLcdValuedPolygon
All Implemented Interfaces:
ILcdBounded, ILcdValuedPolygon
Direct Known Subclasses:
TLcdContour

public class TLcdValuedPolygon extends Object implements ILcdValuedPolygon
This class provides an implementation of ILcdValuedPolygon.

This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.

  • Constructor Details

    • TLcdValuedPolygon

      public TLcdValuedPolygon()
      Constructs a new TLcdValuedPolygon with no projectedPolygon or level set. Set these properties via their respective set methods.
    • TLcdValuedPolygon

      public TLcdValuedPolygon(ILcdPolygon aPolygon, double aLevel)
      Constructs a new TLcdValuedPolygon with no projectedPolygon aPolygon and level aLevel.
      Parameters:
      aPolygon - The projectedPolygon of this TLcdValuedPolygon.
      aLevel - The level of this TLcdValuedPolygon.
  • Method Details

    • getProjectedPolygon

      public ILcdPolygon getProjectedPolygon()
      Description copied from interface: ILcdValuedPolygon
      Returns the projected polygon of the contour line, this is a polygon where all z-coordinates are zero.
      Specified by:
      getProjectedPolygon in interface ILcdValuedPolygon
      Returns:
      The projected polygon of the contour line, this is a polygon where all z-coordinates are zero.
      See Also:
    • setProjectedPolygon

      public void setProjectedPolygon(ILcdPolygon aPolygon)
      Sets the projectedPolygon of this TLcdValuedPolygon.
      Parameters:
      aPolygon - The projectedPolygon to be set.
      See Also:
    • getPolygonValue

      public double getPolygonValue()
      Description copied from interface: ILcdValuedPolygon
      Returns the level of the contour line. The level may represent an altitude, a color coding, etc.
      Specified by:
      getPolygonValue in interface ILcdValuedPolygon
      Returns:
      The level of the contour line. The level may represent an altitude, a color coding, etc.
      See Also:
    • setPolygonValue

      public void setPolygonValue(double aPolygonValue)
      Sets the level of this TLcdValuedPolygon.
      Parameters:
      aPolygonValue - The level to be set.
      See Also:
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the ILcdBounds by which the geometry of this ILcdBounded object is bounded.

      If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an undefined bounds. You can create undefined bounds using the default constructors of TLcdLonLatBounds or TLcdXYBounds.

      Specified by:
      getBounds in interface ILcdBounded
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
      See Also: