#include <FlowGeometry.h>

Public Member Functions | |
| bool | getIsFlipped () |
| gv Returns true, if axes are stored flipped in the file (i.e., they need to be flipped on loading!) | |
| vec3 | 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. | |
| vec3 | getNormPos (int vtxID) |
| nk - Returns normalized geom pos of vertex | |
| FlowGeometry () | |
| Contructor. | |
| ~FlowGeometry () | |
| Deletes all allocated storage. | |
| bool | getInterpolationAt_old (vec3 pos, int *vtxID, float *coef) |
| gv Obsolete. Returns true if inside. Stores the vertex indices and interpolation weights for the given position in the arrays | |
| bool | getInterpolationAt (vec3 pos, vec3 *velocityValue, FlowData *data) |
| gv Get interpolated velocity-value at given position for streamlines | |
| 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 (should now be always zero). | |
| float | getMaxX () |
| Returns the maximum in the X dimension. | |
| float | getMinY () |
| Returns the minimum in the Y dimension (should now be always zero). | |
| float | getMaxY () |
| returns the maximum in the Y dimension | |
| vec3 | normalizeCoords (vec3 pos) |
| Compression of coordinates in each dimension separately, returns values in <0,1>. | |
| vec3 | unNormalizeCoords (vec3 pos) |
| Inverts the compression and from values of <0,1> restores the real geometrical coordinates. | |
Friends | |
| class | FlowData |
Definition at line 7 of file FlowGeometry.h.
| FlowGeometry::FlowGeometry | ( | ) |
| FlowGeometry::~FlowGeometry | ( | ) |
| bool FlowGeometry::getIsFlipped | ( | ) |
gv Returns true, if axes are stored flipped in the file (i.e., they need to be flipped on loading!)
Definition at line 174 of file FlowGeometry.cpp.
Referenced by FlowData::loadDataset().
| vec3 FlowGeometry::getPos | ( | int | vtxID | ) | [inline] |
Returns the position of the vertex.
Definition at line 197 of file FlowGeometry.cpp.
Referenced by readFromFile().
| float FlowGeometry::getPosX | ( | int | vtxID | ) | [inline] |
| float FlowGeometry::getPosY | ( | int | vtxID | ) | [inline] |
Returns the y position of the vertex.
Definition at line 207 of file FlowGeometry.cpp.
Referenced by readFromFile().
| vec3 FlowGeometry::getNormPos | ( | int | vtxID | ) |
nk - Returns normalized geom pos of vertex
Definition at line 213 of file FlowGeometry.cpp.
Referenced by Arrows::draw().
| bool FlowGeometry::getInterpolationAt_old | ( | vec3 | pos, | |
| int * | vtxID, | |||
| float * | coef | |||
| ) |
gv Obsolete. Returns true if inside. Stores the vertex indices and interpolation weights for the given position in the arrays
Definition at line 246 of file FlowGeometry.cpp.
Referenced by FlowChannel::getValue().
gv Get interpolated velocity-value at given position for streamlines
gv New interpolation method using binary search
Definition at line 272 of file FlowGeometry.cpp.
| bool FlowGeometry::readFromFile | ( | char * | header, | |
| FILE * | fp, | |||
| bool | bigEndian | |||
| ) |
reads the geometry gris data from a file
Definition at line 32 of file FlowGeometry.cpp.
References getDimX(), getDimY(), getPos(), getPosY(), normalizeCoords(), vec3::v, X, and Y.
Referenced by FlowData::loadDataset().

| int FlowGeometry::getDimX | ( | ) | [inline] |
Returns the number of vertices in X dimension.
Definition at line 697 of file FlowGeometry.cpp.
Referenced by FlowChannel::copyValues(), FlowData::createChannelVectorLength(), FlowChannel::FlowChannel(), FlowData::loadDataset(), FlowChannel::moveMinimumToZero(), FlowData::normalizeVelocityChannels(), readFromFile(), OpenGLWidget::setFlowData(), and Arrows::setFlowData().
| int FlowGeometry::getDimY | ( | ) | [inline] |
Returns the number of vertices in Y dimension.
Definition at line 703 of file FlowGeometry.cpp.
Referenced by FlowChannel::copyValues(), FlowData::createChannelVectorLength(), FlowChannel::FlowChannel(), FlowData::loadDataset(), FlowChannel::moveMinimumToZero(), FlowData::normalizeVelocityChannels(), readFromFile(), OpenGLWidget::setFlowData(), and Arrows::setFlowData().
| int FlowGeometry::getDimZ | ( | ) | [inline] |
Returns the number of vertices in Z dimension, is always 1.
Definition at line 709 of file FlowGeometry.cpp.
| float FlowGeometry::getMinX | ( | ) | [inline] |
Returns the minimum in the X dimension (should now be always zero).
Definition at line 677 of file FlowGeometry.cpp.
| float FlowGeometry::getMaxX | ( | ) | [inline] |
| float FlowGeometry::getMinY | ( | ) | [inline] |
Returns the minimum in the Y dimension (should now be always zero).
Definition at line 687 of file FlowGeometry.cpp.
| float FlowGeometry::getMaxY | ( | ) | [inline] |
Compression of coordinates in each dimension separately, returns values in <0,1>.
Definition at line 766 of file FlowGeometry.cpp.
Referenced by readFromFile().
Inverts the compression and from values of <0,1> restores the real geometrical coordinates.
Definition at line 776 of file FlowGeometry.cpp.
Referenced by FlowChannel::getValueNormPos().
friend class FlowData [friend] |
Definition at line 9 of file FlowGeometry.h.
1.5.4