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
ConstructorsConstructorDescriptionConstructs a newTLcdValuedPolygonwith no projectedPolygon or level set.TLcdValuedPolygon(ILcdPolygon aPolygon, double aLevel) Constructs a newTLcdValuedPolygonwith no projectedPolygon aPolygon and level aLevel. -
Method Summary
Modifier and TypeMethodDescriptionReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.doubleReturns the level of the contour line.Returns the projected polygon of the contour line, this is a polygon where all z-coordinates are zero.voidsetPolygonValue(double aPolygonValue) Sets the level of thisTLcdValuedPolygon.voidsetProjectedPolygon(ILcdPolygon aPolygon) Sets the projectedPolygon of thisTLcdValuedPolygon.
-
Constructor Details
-
TLcdValuedPolygon
public TLcdValuedPolygon()Constructs a newTLcdValuedPolygonwith no projectedPolygon or level set. Set these properties via their respective set methods. -
TLcdValuedPolygon
Constructs a newTLcdValuedPolygonwith no projectedPolygon aPolygon and level aLevel.- Parameters:
aPolygon- The projectedPolygon of thisTLcdValuedPolygon.aLevel- The level of thisTLcdValuedPolygon.
-
-
Method Details
-
getProjectedPolygon
Description copied from interface:ILcdValuedPolygonReturns the projected polygon of the contour line, this is a polygon where all z-coordinates are zero.- Specified by:
getProjectedPolygonin 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:ILcdValuedPolygonReturns the level of the contour line. The level may represent an altitude, a color coding, etc.- Specified by:
getPolygonValuein 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:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded. - See Also:
-