Represents a polyline that is closed, i.e., the first point and the last point coincide.
More...
Represents a polyline that is closed, i.e., the first point and the last point coincide.
- See also
GeometryFactory.CreatePolylineRing
◆ GetPoint()
Returns the coordinate for the requested index.
- Parameters
-
index | the index of the requested point. |
- Returns
- the point at the index.
- Exceptions
-
System.ArgumentException | when requesting an invalid index. |
◆ InsertPoint()
Creates a new PolylineRing
with an newly inserted control point.
- Parameters
-
index | the index of the newly inserted control point. Should be in [0, getPointCount() ]. For index 0, a new point will be added at the start of the Polyline ring. For index getPointCount() , a new point is added at the end of the Polyline ring. For other index values, a new point will be added between the point at specified (index-1) and the point at the index position. |
newLocation | the location of the new point |
- Returns
- a new geometry
- Exceptions
-
System.ArgumentException | for an invalid index |
- Since
- 2020.1
◆ MovePoint()
Creates a new PolylineRing
with a moved control point.
- Parameters
-
index | the index of the point to move. Should be in [0, getPointCount() - 1]. |
newLocation | the new location of the point |
- Returns
- a new geometry
- Exceptions
-
System.ArgumentException | for an invalid index |
- Since
- 2020.1
◆ RemovePoint()
Creates a new PolylineRing
with a control point removed.
This methods returns a copy of the polyline ring if its point count is less or equal to 3.
- Parameters
-
index | the index of the point to be removed. Should be in [0, getPointCount() - 1]. |
- Returns
- a new geometry
- Exceptions
-
System.ArgumentException | for an invalid index |
- Since
- 2020.1
◆ Translate()
Translates the entire polyline ring.
Note: when the polyline ring is defined in a geodetic reference and uses geodetic interpolation, the translation is not performed by translating the points one by one. Instead, a translation method is used that better preserves the shape of the polyline ring when moving it towards (or away from) the poles.
- Parameters
-
translation | the translation vector |
- Returns
- a new, translated geometry
- Since
- 2020.1
◆ InterpolationType
The interpolation type of the line segment.
[get]
Returns the interpolation type of the line segment. One of
◆ PointCount
uint Luciad.Geometries.PolylineRing.PointCount |
|
get |
The number of points in the polyline ring.
[get]
Returns the number of points in the polyline ring.
◆ Points
The list of points of this polyline ring.
[get]
Returns the list of points of this polyline ring.