DfsuBuilder Class |
The following must be set before calling CreateFile(String): SetProjection(IDfsProjection), SetTimeInfo(DateTime, Double), SetNodes(Double, Double, Single, Int32), SetElements(Int32).
For files with a vertical dimension, the SetNumberOfSigmaLayers(Int32) must also be set.
Other setters are optional, and if not set, default values are written to the file.
Using the SetFromMeshFile(MeshFile) will set the projection, nodes and elements from the mesh file.
Be aware; setting the node and element id's to anything but the default values can cause some tools to fail.
Namespace: DHI.Generic.MikeZero.DFS.dfsu
The DfsuBuilder type exposes the following members.
Name | Description | |
---|---|---|
ApplicationTitle |
Get/Set the title of the application writing the file.
| |
ApplicationVersion |
Set the version number of the application writing the file.
| |
FileTitle |
Get/Set the title of the file.
|
Name | Description | |
---|---|---|
AddDynamicItem |
Add a dynamic item.
| |
Create |
Create a new dfsu builder
| |
CreateFile |
Create and return a dfsu file
| |
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetElementIds |
Set the element id's. Optional. If not set, default values are used (1,2,3,...)
| |
SetElements |
Set element connectivity: For each element is specified which nodes
the element consist of. The node is specified by its index into the list of nodes.
| |
SetFromMeshFile |
Set projection, nodes and elements from mesh file.
This is equivalent to calling SetProjection(IDfsProjection), SetNodes(Double, Double, Single, Int32), SetElements(Int32). | |
SetNodeIds |
Set the node id's. Optional. If not set, default values are used (1,2,3,...)
| |
SetNodes(Double, Double, Single, Int32) |
Set node coordinates and code. Depending on the projection string,
node coordinates are in meters or degrees.
| |
SetNodes(Single, Single, Single, Int32) | Obsolete.
Set node coordinates and code. Depending on the projection string,
node coordinates are in meters or degrees.
| |
SetNumberOfSigmaLayers |
Set the number of sigma layers in a file with a vertical dimension
| |
SetProjection |
Set the geographical projection
| |
SetTimeInfo |
Set time info for the temporal axis.
| |
SetZUnit |
Set unit of the z coordinate. By default the unit is meters, but
the unit can be overridden by setting it explicitly here. The unit
must be a length unit (convertable to meters).
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Validate |
Validate will return a string of issues from the item builder.
When this returns an empty list, the item has been properly build.
|