LuciadCPillar C# 2024.0.04
Luciad.Geometries.Polyline Class Reference

Represents a polyline. More...

Inheritance diagram for Luciad.Geometries.Polyline:
Luciad.Geometries.CompositeCurve Luciad.Geometries.Curve Luciad.Geometries.Geometry

Public Member Functions

Luciad.Cartesian.Coordinate GetPoint (uint index)
 Returns the coordinate for the requested index. More...
 
Luciad.Geometries.Polyline InsertPoint (uint index, Luciad.Cartesian.Coordinate newLocation)
 Creates a new Polyline with an newly inserted control point. More...
 
Luciad.Geometries.Polyline MovePoint (uint index, Luciad.Cartesian.Coordinate newLocation)
 Creates a new Polyline with a moved control point. More...
 
Luciad.Geometries.Polyline RemovePoint (uint index)
 Creates a new Polyline with a control point removed. More...
 
Luciad.Geometries.Polyline Translate (Luciad.Cartesian.Coordinate translation)
 Translates the entire polyline. More...
 
- Public Member Functions inherited from Luciad.Geometries.CompositeCurve
virtual Luciad.Geometries.Curve GetCurveAt (uint index)
 Returns the curve for the requested index. More...
 
- Public Member Functions inherited from Luciad.Geometries.Curve
virtual Luciad.Cartesian.Coordinate ComputePoint (double parameter)
 Computes a point of the curve, defined by the given parameter. More...
 
- Public Member Functions inherited from Luciad.Geometries.Geometry
void Dispose ()
 

Properties

Luciad.Geodesy.LineInterpolationType InterpolationType [get]
 The interpolation type of the line segment. More...
 
uint PointCount [get]
 The number of points in the polyline. More...
 
System.Collections.Generic.IList< Luciad.Cartesian.CoordinatePoints [get]
 The list of points of this polyline. More...
 
- Properties inherited from Luciad.Geometries.CompositeCurve
uint CurveCount [get]
 The number of curves in this composite. More...
 
- Properties inherited from Luciad.Geometries.Curve
double Length2D [get]
 The length of the curve. More...
 
- Properties inherited from Luciad.Geometries.Geometry
Luciad.Geometries.Bounds Bounds [get]
 The bounds for the geometry object. More...
 
Luciad.Geodesy.CoordinateReference Reference [get]
 The coordinate reference of the geometry. More...
 

Detailed Description

Represents a polyline.

See also
GeometryFactory.CreatePolyline

Member Function Documentation

◆ GetPoint()

Luciad.Cartesian.Coordinate Luciad.Geometries.Polyline.GetPoint ( uint  index)
inline

Returns the coordinate for the requested index.

Parameters
indexthe index of the requested point.
Returns
the point at the index.
Exceptions
System.ArgumentExceptionwhen requesting an invalid index.

◆ InsertPoint()

Luciad.Geometries.Polyline Luciad.Geometries.Polyline.InsertPoint ( uint  index,
Luciad.Cartesian.Coordinate  newLocation 
)
inline

Creates a new Polyline with an newly inserted control point.

Parameters
indexthe index of the newly inserted control point. Should be in [0, {@link Luciad.Geometries.Polyline#PointCount getPointCount()}]. For index 0, a new point will be added at the start of the Polyline. For index getPointCount(), a new point will be added at the end of the Polyline. For other index values, a point will be added between 2 other points.
newLocationthe location of the new point
Returns
a new geometry
Exceptions
System.ArgumentExceptionfor an invalid index
Since
2020.1

◆ MovePoint()

Luciad.Geometries.Polyline Luciad.Geometries.Polyline.MovePoint ( uint  index,
Luciad.Cartesian.Coordinate  newLocation 
)
inline

Creates a new Polyline with a moved control point.

Parameters
indexthe index of the point to move. Should be in [0, {@link Luciad.Geometries.Polyline#PointCount getPointCount()} - 1].
newLocationthe new location of the point
Returns
a new geometry
Exceptions
System.ArgumentExceptionfor an invalid index
Since
2020.1

◆ RemovePoint()

Luciad.Geometries.Polyline Luciad.Geometries.Polyline.RemovePoint ( uint  index)
inline

Creates a new Polyline with a control point removed.

This methods returns a copy of the polyline if its point count is less or equal to 2.

Parameters
indexthe index of the point to be removed. Should be in [0, {@link Luciad.Geometries.Polyline#PointCount getPointCount()} - 1].
Returns
a new geometry
Exceptions
System.ArgumentExceptionfor an invalid index
Since
2020.1

◆ Translate()

Luciad.Geometries.Polyline Luciad.Geometries.Polyline.Translate ( Luciad.Cartesian.Coordinate  translation)
inline

Translates the entire polyline.

Note: when the polyline 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 when moving it towards (or away from) the poles.

Parameters
translationthe translation vector
Returns
a new, translated geometry
Since
2020.1

Property Documentation

◆ InterpolationType

Luciad.Geodesy.LineInterpolationType Luciad.Geometries.Polyline.InterpolationType
get

The interpolation type of the line segment.

[get]

Returns the interpolation type of the line segment. One of

◆ PointCount

uint Luciad.Geometries.Polyline.PointCount
get

The number of points in the polyline.

[get]

Returns the number of points in the polyline.

◆ Points

System.Collections.Generic.IList<Luciad.Cartesian.Coordinate> Luciad.Geometries.Polyline.Points
get

The list of points of this polyline.

[get]

Returns the list of points of this polyline.