Class Depth
- Namespace
- NetTopologySuite.GeometriesGraph
- Assembly
- NetTopologySuite.dll
A Depth object records the topological depth of the sides of an Edge for up to two Geometries.
public class Depth
- Inheritance
-
Depth
- Inherited Members
Constructors
Depth()
public Depth()
Properties
this[int, Positions]
Calls GetDepth and SetDepth.
[Obsolete("Use GetDepth, SetDepth")]
public int this[int geomIndex, Positions posIndex] { get; set; }
Parameters
Property Value
Methods
Add(Label)
public void Add(Label lbl)
Parameters
lbl
Label
Add(int, Positions, Location)
[Obsolete("This method is not used and will be removed in a later release.")]
public void Add(int geomIndex, Positions posIndex, Location _location)
Parameters
DepthAtLocation(Location)
public static int DepthAtLocation(Location _location)
Parameters
_location
Location
Returns
GetDelta(int)
public int GetDelta(int geomIndex)
Parameters
geomIndex
int
Returns
GetDepth(int, Position)
public int GetDepth(int geomIndex, Position posIndex)
Parameters
Returns
GetDepth(int, Positions)
[Obsolete("Use GetDepth(int, Geometries.Position)")]
public int GetDepth(int geomIndex, Positions posIndex)
Parameters
Returns
GetLocation(int, Position)
public Location GetLocation(int geomIndex, Position posIndex)
Parameters
Returns
GetLocation(int, Positions)
[Obsolete("Use GetLocation(int, Geometries.Position)")]
public Location GetLocation(int geomIndex, Positions posIndex)
Parameters
Returns
IsNull()
A Depth object is null (has never been initialized) if all depths are null.
public bool IsNull()
Returns
- bool
true
if depth is null (has never been initialized)
IsNull(int)
public bool IsNull(int geomIndex)
Parameters
geomIndex
int
Returns
IsNull(int, Position)
public bool IsNull(int geomIndex, Position posIndex)
Parameters
Returns
IsNull(int, Positions)
[Obsolete("Use IsNull(int, Geometries.Position)")]
public bool IsNull(int geomIndex, Positions posIndex)
Parameters
Returns
Normalize()
Normalize the depths for each point, if they are non-null. A normalized depth has depth values in the set { 0, 1 }. Normalizing the depths involves reducing the depths by the same amount so that at least one of them is 0. If the remaining value is > 0, it is set to 1.
public void Normalize()
SetDepth(int, Position, int)
public void SetDepth(int geomIndex, Position posIndex, int depthValue)
Parameters
SetDepth(int, Positions, int)
[Obsolete("Use SetDepth(int, Geometries.Position, int)")]
public void SetDepth(int geomIndex, Positions posIndex, int depthValue)
Parameters
ToString()
public override string ToString()