TwoDLocation Class

Location used when working with 2D or 3D models

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class TwoDLocation : ITwoDLocation, 
	ILocation, IComparable, ICloneable, IEquatable<ILocation>
Inheritance
Object    TwoDLocation
Implements
ILocation, ITwoDLocation, ICloneable, IComparable, IEquatableILocation

Constructors

TwoDLocationInitializes a new instance of the TwoDLocation class

Properties

Branch Branch name. The branch termonology is kept to be used with the cross section collection
Chainage Chainage is not used for the TwoDlocation
CoordinateProjection String representation of projection
Info Used for structure ID
Points 
TopoID TopoID used for looking up cross section database

Methods

Clone ICloneable implementation. deep clone.
CompareTo(Object) IComparable implementation. Hierarchical calls to the CompareTo methods for topo ID, then x1, then y1, x2, y2 comparison (but not Info). String comparisons are case-insensitive and culture-invariant.
CompareTo(ILocation, Double) like IComaparable, but with tolerance for coordinate comparison as an argument. Hierarchical calls to the CompareTo methods for topo ID, then x1, then y1, x2, y2 comparison (but not Info). String comparisons are case-insensitive and culture-invariant.
Equals(ILocation) Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FromString 
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IDCompareTo Compare the ID with the others ID.
IDEquals Check if the ID equals the others ID.
IsNull 
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
NumberofPoints Returns the number of points
Point Returns _points[x]
ToStringReturns a string that represents the current object.
(Inherited from Object)
ToStringInUserUnits 
Weight Returns an array with weights of the form li/L

Extension Methods

ChainageAsDiagnosticsValue Get chainage as DiagnosticsValue (includes unit)
(Defined by GenericExtensions)
ChainageEquals Returns true if the chainage equals, withing LOCATION_EQUAL_TOLERANCE
(Defined by GenericExtensions)
ChainageEquals Returns true if the chainage equals, withing tolerance
(Defined by GenericExtensions)
ChainageIsAfter Returns true if the chainage is after, and more than LOCATION_EQUAL_TOLERANCE after

This is consistent with the ChainageEquals, so that any chainage will only return true for one of the ChainageIsBefore, ChainageEquals, ChainageIsAfter


(Defined by GenericExtensions)
ChainageIsAfter Returns true if the chainage is after, and more than tolerance after

This is consistent with the ChainageEquals, so that any chainage will only return true for one of the ChainageIsBefore, ChainageEquals, ChainageIsAfter


(Defined by GenericExtensions)
ChainageIsBefore Returns true if the chainage is before, and more than LOCATION_EQUAL_TOLERANCE before

This is consistent with the ChainageEquals, so that any chainage will only return true for one of the ChainageIsBefore, ChainageEquals, ChainageIsAfter


(Defined by GenericExtensions)
ChainageIsBefore Returns true if the chainage is before, and more than tolerance before

This is consistent with the ChainageEquals, so that any chainage will only return true for one of the ChainageIsBefore, ChainageEquals, ChainageIsAfter


(Defined by GenericExtensions)

See Also