Search Results for

    Show / Hide Table of Contents

    Class Depth

    A Depth object records the topological depth of the sides of an Edge for up to two Geometries.

    Inheritance
    object
    Depth
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    public class Depth

    Constructors

    | Edit this page View Source

    Depth()

    Declaration
    public Depth()

    Properties

    | Edit this page View Source

    this[int, Positions]

    Calls GetDepth and SetDepth.

    Declaration
    [Obsolete("Use GetDepth, SetDepth")]
    public int this[int geomIndex, Positions posIndex] { get; set; }
    Parameters
    Type Name Description
    int geomIndex
    Positions posIndex
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Add(Label)

    Declaration
    public void Add(Label lbl)
    Parameters
    Type Name Description
    Label lbl
    | Edit this page View Source

    Add(int, Positions, Location)

    Declaration
    [Obsolete("This method is not used and will be removed in a later release.")]
    public void Add(int geomIndex, Positions posIndex, Location _location)
    Parameters
    Type Name Description
    int geomIndex
    Positions posIndex
    Location _location
    | Edit this page View Source

    DepthAtLocation(Location)

    Declaration
    public static int DepthAtLocation(Location _location)
    Parameters
    Type Name Description
    Location _location
    Returns
    Type Description
    int
    | Edit this page View Source

    GetDelta(int)

    Declaration
    public int GetDelta(int geomIndex)
    Parameters
    Type Name Description
    int geomIndex
    Returns
    Type Description
    int
    | Edit this page View Source

    GetDepth(int, Position)

    Declaration
    public int GetDepth(int geomIndex, Position posIndex)
    Parameters
    Type Name Description
    int geomIndex
    Position posIndex
    Returns
    Type Description
    int
    | Edit this page View Source

    GetDepth(int, Positions)

    Declaration
    [Obsolete("Use GetDepth(int, Geometries.Position)")]
    public int GetDepth(int geomIndex, Positions posIndex)
    Parameters
    Type Name Description
    int geomIndex
    Positions posIndex
    Returns
    Type Description
    int
    | Edit this page View Source

    GetLocation(int, Position)

    Declaration
    public Location GetLocation(int geomIndex, Position posIndex)
    Parameters
    Type Name Description
    int geomIndex
    Position posIndex
    Returns
    Type Description
    Location
    | Edit this page View Source

    GetLocation(int, Positions)

    Declaration
    [Obsolete("Use GetLocation(int, Geometries.Position)")]
    public Location GetLocation(int geomIndex, Positions posIndex)
    Parameters
    Type Name Description
    int geomIndex
    Positions posIndex
    Returns
    Type Description
    Location
    | Edit this page View Source

    IsNull()

    A Depth object is null (has never been initialized) if all depths are null.

    Declaration
    public bool IsNull()
    Returns
    Type Description
    bool

    true if depth is null (has never been initialized)

    | Edit this page View Source

    IsNull(int)

    Declaration
    public bool IsNull(int geomIndex)
    Parameters
    Type Name Description
    int geomIndex
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsNull(int, Position)

    Declaration
    public bool IsNull(int geomIndex, Position posIndex)
    Parameters
    Type Name Description
    int geomIndex
    Position posIndex
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsNull(int, Positions)

    Declaration
    [Obsolete("Use IsNull(int, Geometries.Position)")]
    public bool IsNull(int geomIndex, Positions posIndex)
    Parameters
    Type Name Description
    int geomIndex
    Positions posIndex
    Returns
    Type Description
    bool
    | Edit this page View Source

    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.

    Declaration
    public void Normalize()
    | Edit this page View Source

    SetDepth(int, Position, int)

    Declaration
    public void SetDepth(int geomIndex, Position posIndex, int depthValue)
    Parameters
    Type Name Description
    int geomIndex
    Position posIndex
    int depthValue
    | Edit this page View Source

    SetDepth(int, Positions, int)

    Declaration
    [Obsolete("Use SetDepth(int, Geometries.Position, int)")]
    public void SetDepth(int geomIndex, Positions posIndex, int depthValue)
    Parameters
    Type Name Description
    int geomIndex
    Positions posIndex
    int depthValue
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX