Represents a triangulated irregular network which may be displayed in the map. More...
Public Member Functions | |
bool | Close () |
Closes the TIN. More... | |
bool | CreateNew (Grid Grid, double Deviation, SplitMethod SplitTest, double STParam, int MeshDivisions, int MaximumTriangles, ICallback cBack) |
Creates a new TIN object from the specified grid. More... | |
bool | CreateTinFromPoints (Array Points) |
Creates a TIN from the array of points. More... | |
string | get_ErrorMsg (int ErrorCode) |
Retrieves the error message associated with the specified error code. More... | |
bool | get_IsNDTriangle (int TriIndex) |
Gets whether or not a triangle is a no-data triangle. More... | |
void | Max (out double x, out double y, out double Z) |
Gets the maximum x, y, and z values of the TIN's extents. More... | |
void | max (out double x, out double y, out double Z) |
void | Min (out double x, out double y, out double Z) |
Gets the minimum x, y, and z values of the TIN's extents. More... | |
void | min (out double x, out double y, out double Z) |
bool | Open (string TinFile, ICallback cBack) |
Opens a TIN from the specified file. More... | |
bool | Save (string TinFilename, ICallback cBack) |
Saves the TIN object under the specified filename. More... | |
bool | Select (ref int TriangleHint, double x, double y, out double Z) |
Checks if there is a triangle in the TIN at the specified x and y coordinate. More... | |
void | Triangle (int TriIndex, out int vtx1Index, out int vtx2Index, out int vtx3Index) |
Gets the vertex indices of the specified triangle in the TIN. More... | |
void | TriangleNeighbors (int TriIndex, ref int triIndex1, ref int triIndex2, ref int triIndex3) |
Gets the indices of the specified triangle's neighboring triangles in the TIN. More... | |
void | Vertex (int VtxIndex, out double x, out double y, out double Z) |
Gets the x, y, and Z projected map coordinates of the specified vertex in the TIN. More... | |
Properties | |
string | CdlgFilter [get] |
The string for common open dialog for filtering files which may be used as a source for TIN (*.tin). More... | |
string | Filename [get] |
The filename associated with the object. More... | |
ICallback | GlobalCallback [get, set] |
The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications. More... | |
string | Key [get, set] |
The key may be used by the programmer to store any string data associated with the object. More... | |
int | LastErrorCode [get] |
int | NumTriangles [get] |
Returns the number of the triangles in the TIN. More... | |
int | NumVertices [get] |
Returns the number of the vertices in the TIN. More... | |
Represents a triangulated irregular network which may be displayed in the map.
A tin may be created from a grid, or opened from file.
bool Tin.Close | ( | ) |
Closes the TIN.
bool Tin.CreateNew | ( | Grid | Grid, |
double | Deviation, | ||
SplitMethod | SplitTest, | ||
double | STParam, | ||
int | MeshDivisions, | ||
int | MaximumTriangles, | ||
ICallback | cBack | ||
) |
Creates a new TIN object from the specified grid.
Grid | The grid to be used to create the new TIN. |
Deviation | If the distance between the grid elevation and the triangle surface elevation at any given point is greater than this value, the triangle will be split at this location. This value is in projected map coordinates. |
SplitTest | The method to use when splitting triangles. |
STParam | Split Test Parameter. This value depends on the SplitMethod specified. It will either be the smallest inscribed radius allowed measured in projected map coordinates, or it will be the /// smallest angle allowed measured in degrees. |
MeshDivisions | This is the number of dividers used to create an initial mesh for the algorithm. Each cell in the initial mesh is subdivided into smaller triangles depending on the deviation within the cell. |
MaximumTriangles | Optional. The maximum number of triangles allowed in the TIN. The default value is 1073741824. |
cBack | Optional. The ICallback object which will receive progress and error messages while the TIN is being created. |
bool Tin.CreateTinFromPoints | ( | Array | Points | ) |
Creates a TIN from the array of points.
Points | An array of Point type. |
string Tin.get_ErrorMsg | ( | int | ErrorCode | ) |
Retrieves the error message associated with the specified error code.
ErrorCode |
bool Tin.get_IsNDTriangle | ( | int | TriIndex | ) |
Gets whether or not a triangle is a no-data triangle.
TriIndex | The index of the triangle to be tested whether or not it is a no-data triangle. |
void Tin.Max | ( | out double | x, |
out double | y, | ||
out double | Z | ||
) |
Gets the maximum x, y, and z values of the TIN's extents.
x | Returns the maximum x value of the TIN's extents. |
y | Returns the maximum y value of the TIN's extents. |
Z | Returns the maximum Z value of the TIN's extents. |
void Tin.max | ( | out double | x, |
out double | y, | ||
out double | Z | ||
) |
void Tin.Min | ( | out double | x, |
out double | y, | ||
out double | Z | ||
) |
Gets the minimum x, y, and z values of the TIN's extents.
x | Returns the minimum x value of the TIN's extents. |
y | Returns the minimum y value of the TIN's extents |
Z | Returns the minimum Z value of the TIN's extents. |
void Tin.min | ( | out double | x, |
out double | y, | ||
out double | Z | ||
) |
bool Tin.Open | ( | string | TinFile, |
ICallback | cBack | ||
) |
Opens a TIN from the specified file.
TinFile | The filename of the TIN to be opened. |
cBack | .Optional. The ICallback object which will receive progress and error messages while the TIN is being opened. |
bool Tin.Save | ( | string | TinFilename, |
ICallback | cBack | ||
) |
Saves the TIN object under the specified filename.
TinFilename | The filename to be used to save the TIN. |
cBack | Optional. The ICallback object which will receive progress and error messages while the TIN is being saved. |
bool Tin.Select | ( | ref int | TriangleHint, |
double | x, | ||
double | y, | ||
out double | Z | ||
) |
Checks if there is a triangle in the TIN at the specified x and y coordinate.
The index of any triangle at that location is returned through TriangleHint, and the z coordinate for the triangle surface at the specified location is returned through Z.
TriangleHint | The index of the triangle to start the search with. If the triangle hint is a good guess, the search can be much faster. |
x | The x projected map coordinate of the point that is being used to test if it lies within a TIN triangle. |
y | The y projected map coordinate of the point that is being used to test if it lies within a TIN triangle. |
Z | The z projected map coordinate of the selected triangle's surface will be returned by this parameter. |
void Tin.Triangle | ( | int | TriIndex, |
out int | vtx1Index, | ||
out int | vtx2Index, | ||
out int | vtx3Index | ||
) |
Gets the vertex indices of the specified triangle in the TIN.
TriIndex | The index of the triangle in the TIN for which the vertex indices are required. |
vtx1Index | The index of the first vertex in the specified triangle in the TIN. |
vtx2Index | The index of the second vertex in the specified triangle in the TIN. |
vtx3Index | The index of the third vertex in the specified triangle in the TIN. |
void Tin.TriangleNeighbors | ( | int | TriIndex, |
ref int | triIndex1, | ||
ref int | triIndex2, | ||
ref int | triIndex3 | ||
) |
Gets the indices of the specified triangle's neighboring triangles in the TIN.
TriIndex | The index of the triangle to get the neighbors of in the TIN. |
triIndex1 | The index of the first neighbor the specified triangle. |
triIndex2 | The index of the second neighbor the specified triangle. |
triIndex3 | The index of the third neighbor the specified triangle. |
void Tin.Vertex | ( | int | VtxIndex, |
out double | x, | ||
out double | y, | ||
out double | Z | ||
) |
Gets the x, y, and Z projected map coordinates of the specified vertex in the TIN.
VtxIndex | The index of the vertex for which the x, y, and Z coordinates are required. |
x | Returns the x projected map coordinate of the specified vertex in the TIN. |
y | Returns the x projected map coordinate of the specified vertex in the TIN. |
Z | Returns the x projected map coordinate of the specified vertex in the TIN. |
|
get |
The string for common open dialog for filtering files which may be used as a source for TIN (*.tin).
|
get |
The filename associated with the object.
|
getset |
The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications.
|
getset |
The key may be used by the programmer to store any string data associated with the object.
|
get |
|
get |
Returns the number of the triangles in the TIN.
|
get |
Returns the number of the vertices in the TIN.