#include <FlowGeometry.h>
Öffentliche Methoden | |
FlowGeometry () | |
~FlowGeometry () | |
deletes the allocated geometry storage | |
bool | getInterpolationAt (CoreVector3 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 (char *header, FILE *fp, bool bigEndian) |
reads the geometry gris data from a file | |
int | getDimX () |
returns the number of vertices in X dimension | |
int | getDimY () |
returns the number of vertices in Y dimension | |
int | getDimZ () |
returns the number of vertices in Z dimension, is always 1 | |
float | getMinX () |
returns the minimum in the X dimension | |
float | getMaxX () |
returns the maximum in the X dimension | |
float | getMinY () |
returns the minimum in the Y dimension | |
float | getMaxY () |
returns the maximum in the Y dimension | |
CoreVector3 | getPos (int vtxID) |
returns the position of the vertex | |
float | getPosX (int vtxID) |
returns the x position of the vertex | |
float | getPosY (int vtxID) |
returns the y position of the vertex | |
CoreVector3 | getNormPos (int vtxID) |
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 | |
CoreVector3 | normalizeCoords (CoreVector3 pos) |
compression of coordinates in each dimension separately, returns values scaled to <0,1> | |
CoreVector3 | unNormalizeCoords (CoreVector3 pos) |
inverts the compression. From values of <0,1> it restores the real geometrical coordinates | |
bool | getFlipped () |
Freundbeziehungen | |
class | FlowData |
FlowGeometry::FlowGeometry | ( | ) |
FlowGeometry::~FlowGeometry | ( | ) |
deletes the allocated geometry storage
int FlowGeometry::getBottomNeigh | ( | int | vtxID | ) |
returns the vertex ID of the neighbour on its bottom
int FlowGeometry::getDimX | ( | ) |
returns the number of vertices in X dimension
int FlowGeometry::getDimY | ( | ) |
returns the number of vertices in Y dimension
int FlowGeometry::getDimZ | ( | ) |
returns the number of vertices in Z dimension, is always 1
bool FlowGeometry::getFlipped | ( | ) | [inline] |
bool FlowGeometry::getInterpolationAt | ( | CoreVector3 | pos, | |
int * | vtxID, | |||
float * | coef | |||
) |
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.
pos | geometrical position for the lookup | |
vtxID | list of surrounding vertices (given by vertex ID) | |
coef | list of surrounding vertex weights (sum == 1.0) |
int FlowGeometry::getLeftNeigh | ( | int | vtxID | ) |
returns the vertex ID of the neighbour on its left
float FlowGeometry::getMaxX | ( | ) |
returns the maximum in the X dimension
float FlowGeometry::getMaxY | ( | ) |
returns the maximum in the Y dimension
float FlowGeometry::getMinX | ( | ) |
returns the minimum in the X dimension
float FlowGeometry::getMinY | ( | ) |
returns the minimum in the Y dimension
CoreVector3 FlowGeometry::getNormPos | ( | int | vtxID | ) |
CoreVector3 FlowGeometry::getPos | ( | int | vtxID | ) |
returns the position of the vertex
float FlowGeometry::getPosX | ( | int | vtxID | ) |
returns the x position of the vertex
float FlowGeometry::getPosY | ( | int | vtxID | ) |
returns the y position of the vertex
int FlowGeometry::getRightNeigh | ( | int | vtxID | ) |
returns the vertex ID of the neighbour on its right
int FlowGeometry::getTopNeigh | ( | int | vtxID | ) |
returns the vertex ID of the neighbour on its top
CoreVector3 FlowGeometry::normalizeCoords | ( | CoreVector3 | pos | ) |
compression of coordinates in each dimension separately, returns values scaled to <0,1>
bool FlowGeometry::readFromFile | ( | char * | header, | |
FILE * | fp, | |||
bool | bigEndian | |||
) |
reads the geometry gris data from a file
CoreVector3 FlowGeometry::unNormalizeCoords | ( | CoreVector3 | pos | ) |
inverts the compression. From values of <0,1> it restores the real geometrical coordinates
friend class FlowData [friend] |