FlowGeometry Class Reference

#include <FlowGeometry.h>

Collaboration diagram for FlowGeometry:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 7 of file FlowGeometry.h.


Constructor & Destructor Documentation

FlowGeometry::FlowGeometry (  ) 

Contructor.

Definition at line 15 of file FlowGeometry.cpp.

FlowGeometry::~FlowGeometry (  ) 

Deletes all allocated storage.

Definition at line 22 of file FlowGeometry.cpp.


Member Function Documentation

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]

Returns the x position of the vertex.

Definition at line 202 of file FlowGeometry.cpp.

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().

bool FlowGeometry::getInterpolationAt ( vec3  pos,
vec3 value,
FlowData data 
)

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.

References vec3::v, X, and Y.

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().

Here is the call graph for this function:

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]

Returns the maximum in the X dimension.

Definition at line 682 of file FlowGeometry.cpp.

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]

returns the maximum in the Y dimension

Definition at line 692 of file FlowGeometry.cpp.

vec3 FlowGeometry::normalizeCoords ( vec3  pos  ) 

Compression of coordinates in each dimension separately, returns values in <0,1>.

Definition at line 766 of file FlowGeometry.cpp.

Referenced by readFromFile().

vec3 FlowGeometry::unNormalizeCoords ( vec3  pos  ) 

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().


Friends And Related Function Documentation

friend class FlowData [friend]

Definition at line 9 of file FlowGeometry.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 21 14:50:28 2008 for VisLU by  doxygen 1.5.4