LuciadCPillar C# 2024.1.04
Luciad.Geometries.Polygon Class Reference

Represents a polygon. More...

Inheritance diagram for Luciad.Geometries.Polygon:
Luciad.Geometries.CompositePatch Luciad.Geometries.Surface Luciad.Geometries.Geometry

Public Member Functions

Luciad.Geometries.Polygon AppendInteriorRing (Luciad.Geometries.PolylineRing interiorRing)
 Creates a new Polygon instance based on this instance, but with a new interior ring appended to the list of interior rings. More...
 
Luciad.Geometries.Polygon RemoveInteriorRing (uint index)
 Creates a new Polygon instance based on this instance, but with the interior ring at location 'index' removed. More...
 
Luciad.Geometries.Polygon ReplaceExteriorRing (Luciad.Geometries.PolylineRing exteriorRing)
 Creates a new Polygon instance using the interior rings from this instance, but with a new exterior ring. More...
 
Luciad.Geometries.Polygon ReplaceInteriorRing (uint index, Luciad.Geometries.PolylineRing interiorRing)
 Creates a new Polygon instance with the exterior and interior rings from this instance, but with a new interior ring at location 'index'. More...
 
- Public Member Functions inherited from Luciad.Geometries.Geometry
void Dispose ()
 

Additional Inherited Members

- Properties inherited from Luciad.Geometries.CompositePatch
Luciad.Geometries.Patch ExteriorPatch [get]
 The exterior patch of this composite patch. More...
 
System.Collections.Generic.IList< Luciad.Geometries.PatchInteriorPatches [get]
 The interior patches of this composite patch. 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 polygon.

See also
GeometryFactory.CreatePolygon

Member Function Documentation

◆ AppendInteriorRing()

Luciad.Geometries.Polygon Luciad.Geometries.Polygon.AppendInteriorRing ( Luciad.Geometries.PolylineRing  interiorRing)
inline

Creates a new Polygon instance based on this instance, but with a new interior ring appended to the list of interior rings.

Parameters
interiorRingthe new interior ring.
Returns
a new Polyline instance, with a new interior ring.
Exceptions
System.ArgumentNullExceptionwhen passing null.
Since
2024.1

◆ RemoveInteriorRing()

Luciad.Geometries.Polygon Luciad.Geometries.Polygon.RemoveInteriorRing ( uint  index)
inline

Creates a new Polygon instance based on this instance, but with the interior ring at location 'index' removed.

Parameters
indexthe index of the interior ring to remove
Returns
a new Polyline instance, with the interior ring at location 'index' removed.
Exceptions
System.ArgumentExceptionfor an invalid index
Since
2024.1

◆ ReplaceExteriorRing()

Luciad.Geometries.Polygon Luciad.Geometries.Polygon.ReplaceExteriorRing ( Luciad.Geometries.PolylineRing  exteriorRing)
inline

Creates a new Polygon instance using the interior rings from this instance, but with a new exterior ring.

Parameters
exteriorRingthe new exterior ring.
Returns
a new Polyline instance.
Exceptions
System.ArgumentNullExceptionwhen passing null.
Since
2024.1

◆ ReplaceInteriorRing()

Luciad.Geometries.Polygon Luciad.Geometries.Polygon.ReplaceInteriorRing ( uint  index,
Luciad.Geometries.PolylineRing  interiorRing 
)
inline

Creates a new Polygon instance with the exterior and interior rings from this instance, but with a new interior ring at location 'index'.

Parameters
indexthe index of the interior ring to replace
interiorRingthe new interior ring.
Returns
a new Polyline instance
Exceptions
System.ArgumentNullExceptionwhen passing null.
System.ArgumentExceptionfor an invalid index
Since
2024.1