Package com.luciad.shape
Class TLcdValuedPolygon
java.lang.Object
com.luciad.shape.TLcdValuedPolygon
- All Implemented Interfaces:
ILcdBounded
,ILcdValuedPolygon
- Direct Known Subclasses:
TLcdContour
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 Summary
ConstructorDescriptionConstructs a newTLcdValuedPolygon
with no projectedPolygon or level set.TLcdValuedPolygon
(ILcdPolygon aPolygon, double aLevel) Constructs a newTLcdValuedPolygon
with no projectedPolygon aPolygon and level aLevel. -
Method Summary
Modifier and TypeMethodDescriptionReturns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.double
Returns the level of the contour line.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 thisTLcdValuedPolygon
.void
setProjectedPolygon
(ILcdPolygon aPolygon) Sets the projectedPolygon of thisTLcdValuedPolygon
.
-
Constructor Details
-
TLcdValuedPolygon
public TLcdValuedPolygon()Constructs a newTLcdValuedPolygon
with no projectedPolygon or level set. Set these properties via their respective set methods. -
TLcdValuedPolygon
Constructs a newTLcdValuedPolygon
with no projectedPolygon aPolygon and level aLevel.- Parameters:
aPolygon
- The projectedPolygon of thisTLcdValuedPolygon
.aLevel
- The level of thisTLcdValuedPolygon
.
-
-
Method Details
-
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 interfaceILcdValuedPolygon
- Returns:
- The projected polygon of the contour line, this is a polygon where all z-coordinates are zero.
- See Also:
-
setProjectedPolygon
Sets the projectedPolygon of thisTLcdValuedPolygon
.- 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 interfaceILcdValuedPolygon
- 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 thisTLcdValuedPolygon
.- Parameters:
aPolygonValue
- The level to be set.- See Also:
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
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 ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded. - See Also:
-