Class for handling the geometry == rectangular grids organized in vertices and cells.
More...
List of all members.
Public Member Functions |
| FlowGeometry () |
| Initializes a new instanze of the FlowGeometry class.
|
bool | getInterpolationAt (Vec3 pos, int[] vtxID, float[] coef) |
| Returns true if inside. Stores the vertex indices and interpolation weights for the given position in the arrays.
|
bool | readFromFile (string header, BinaryReader fp) |
| reads the geometry gris data from a file
|
int | getRightNeigh (int vtxID) |
| returns the vertex ID of the neighbour on its right
|
int | getTopNeigh (int vtxID) |
| returns the vertex ID of the neighbour on its top
|
int | getLeftNeigh (int vtxID) |
| returns the vertex ID of the neighbour on its left
|
int | getBottomNeigh (int vtxID) |
| returns the vertex ID of the neighbour on its bottom
|
Vec3 | normalizeCoords (Vec3 pos) |
| compression of coordinates in each dimension separately, returns values scaled to <0,1>
|
Vec3 | unNormalizeCoords (Vec3 pos) |
| inverts the compression. From values of <0,1> it restores the real geometrical coordinates
|
float | getNiquistLengthX () |
| Niquist-Distanz entlang der X-Achse.
|
float | getNiquistLengthY () |
| Niquist-Distanz entlang der Y-Achse.
|
Properties |
int | DimX [get] |
| returns the number of vertices in X dimension
|
int | DimY [get] |
| returns the number of vertices in Y dimension
|
int | getDimZ [get] |
| returns the number of vertices in Z dimension, is always 1
|
float | MinX [get] |
| returns the minimum in the X dimension
|
float | MaxX [get] |
| returns the maximum in the X dimension
|
float | MinY [get] |
| returns the minimum in the Y dimension
|
float | MaxY [get] |
| returns the maximum in the Y dimension
|
Vec3[] | GeometryData [get] |
| geometry data
|
Detailed Description
Class for handling the geometry == rectangular grids organized in vertices and cells.
Constructor & Destructor Documentation
FlowMarkt::FlowGeometry::FlowGeometry |
( |
) |
[inline] |
Member Function Documentation
int FlowMarkt::FlowGeometry::getBottomNeigh |
( |
int |
vtxID ) |
[inline] |
returns the vertex ID of the neighbour on its bottom
- Parameters:
-
- Returns:
bool FlowMarkt::FlowGeometry::getInterpolationAt |
( |
Vec3 |
pos, |
|
|
int[] |
vtxID, |
|
|
float[] |
coef |
|
) |
| [inline] |
Returns true if inside. Stores the vertex indices and interpolation weights for the given position in the arrays.
Stores the indexes and weights of vertices surrounding the given position. This information can be used later on for interpolation of channel values.
- Parameters:
-
pos | geometrical position for the lookup |
vtxID | list of surrounding vertices (given by vertex ID) |
coef | list of surrounding vertex weights (sum == 1.0) |
- Returns:
- true if the given position is inside of the geometrical boundaries
int FlowMarkt::FlowGeometry::getLeftNeigh |
( |
int |
vtxID ) |
[inline] |
returns the vertex ID of the neighbour on its left
- Parameters:
-
- Returns:
float FlowMarkt::FlowGeometry::getNiquistLengthX |
( |
) |
[inline] |
Niquist-Distanz entlang der X-Achse.
- Returns:
- Halbierter Minimalabstand zweier benachbarter Gitterpunkte
float FlowMarkt::FlowGeometry::getNiquistLengthY |
( |
) |
[inline] |
Niquist-Distanz entlang der Y-Achse.
- Returns:
- Halbierter Minimalabstand zweier benachbarter Gitterpunkte
int FlowMarkt::FlowGeometry::getRightNeigh |
( |
int |
vtxID ) |
[inline] |
returns the vertex ID of the neighbour on its right
- Parameters:
-
- Returns:
int FlowMarkt::FlowGeometry::getTopNeigh |
( |
int |
vtxID ) |
[inline] |
returns the vertex ID of the neighbour on its top
- Parameters:
-
- Returns:
Vec3 FlowMarkt::FlowGeometry::normalizeCoords |
( |
Vec3 |
pos ) |
[inline] |
compression of coordinates in each dimension separately, returns values scaled to <0,1>
- Parameters:
-
- Returns:
bool FlowMarkt::FlowGeometry::readFromFile |
( |
string |
header, |
|
|
BinaryReader |
fp |
|
) |
| [inline] |
reads the geometry gris data from a file
- Parameters:
-
- Returns:
- True if everything was successfull
Vec3 FlowMarkt::FlowGeometry::unNormalizeCoords |
( |
Vec3 |
pos ) |
[inline] |
inverts the compression. From values of <0,1> it restores the real geometrical coordinates
- Parameters:
-
- Returns:
Property Documentation
int FlowMarkt::FlowGeometry::DimX [get] |
returns the number of vertices in X dimension
int FlowMarkt::FlowGeometry::DimY [get] |
returns the number of vertices in Y dimension
Vec3 [] FlowMarkt::FlowGeometry::GeometryData [get] |
int FlowMarkt::FlowGeometry::getDimZ [get] |
returns the number of vertices in Z dimension, is always 1
float FlowMarkt::FlowGeometry::MaxX [get] |
returns the maximum in the X dimension
float FlowMarkt::FlowGeometry::MaxY [get] |
returns the maximum in the Y dimension
float FlowMarkt::FlowGeometry::MinX [get] |
returns the minimum in the X dimension
float FlowMarkt::FlowGeometry::MinY [get] |
returns the minimum in the Y dimension
The documentation for this class was generated from the following file:
- D:/Matthias/studium/6sem/visualisierung/workdir/Vislucsgl/FlowMarkt/FlowGeometry.cs