LevelWidths Class

Table of corresponding levels and widths. Can also be depths and widths.

Definition

Namespace: DHI.Mike1D.StructureModule
Assembly: DHI.Mike1D.StructureModule (in DHI.Mike1D.StructureModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class LevelWidths : ILevelWidths
Inheritance
Object    LevelWidths
Implements
ILevelWidths

Constructors

LevelWidths(ILevelWidths) Sort and cache level and widths for fast interpolation
LevelWidths(IListILevelWidth) Constructor, creating object from list of level-widhts

Properties

Count Number of coefficients
Item Get/set a coefficient set at the specified index

Methods

AdjustLevels Add delta to all levels
AreaFromLevel Calculate area for given water level.
Clone Creates a copy of an instance.
Create Returns an LevelWidths class from an ILevelWidths. If the incoming class is already an LevelWidths, the same class is returned, otherwise data is copied to a new class.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Validate Validates the data. The only constraint is that the levels after sorting must be monotonically increasing.
WidthFromDepth Interpolates/extrapolates width using linear interpolation
WidthFromLevel Interpolates/extrapolates width using linear interpolation

See Also