public class TLcdValuedPolygon extends Object implements ILcdValuedPolygon
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 and Description |
---|
TLcdValuedPolygon()
Constructs a new
TLcdValuedPolygon with no projectedPolygon or level
set. |
TLcdValuedPolygon(ILcdPolygon aPolygon,
double aLevel)
Constructs a new
TLcdValuedPolygon with no projectedPolygon aPolygon
and level aLevel. |
Modifier and Type | Method and Description |
---|---|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
double |
getPolygonValue()
Returns the level of the contour line.
|
ILcdPolygon |
getProjectedPolygon()
Returns the projected polygon of the contour line, this is a polygon
where all z-coordinates are zero.
|
void |
setPolygonValue(double aPolygonValue)
Sets the level of this
TLcdValuedPolygon . |
void |
setProjectedPolygon(ILcdPolygon aPolygon)
Sets the projectedPolygon of this
TLcdValuedPolygon . |
public TLcdValuedPolygon()
TLcdValuedPolygon
with no projectedPolygon or level
set. Set these properties via their respective set methods.public TLcdValuedPolygon(ILcdPolygon aPolygon, double aLevel)
TLcdValuedPolygon
with no projectedPolygon aPolygon
and level aLevel.aPolygon
- The projectedPolygon of this TLcdValuedPolygon
.aLevel
- The level of this TLcdValuedPolygon
.public ILcdPolygon getProjectedPolygon()
ILcdValuedPolygon
getProjectedPolygon
in interface ILcdValuedPolygon
ILcdValuedPolygon
public void setProjectedPolygon(ILcdPolygon aPolygon)
TLcdValuedPolygon
.aPolygon
- The projectedPolygon to be set.getProjectedPolygon()
public double getPolygonValue()
ILcdValuedPolygon
getPolygonValue
in interface ILcdValuedPolygon
ILcdValuedPolygon
public void setPolygonValue(double aPolygonValue)
TLcdValuedPolygon
.aPolygonValue
- The level to be set.getPolygonValue()
public ILcdBounds getBounds()
ILcdBounded
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
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.ILcdBounded