FlowGrid Class Reference
A class that encapasulates and samples the velocity and position data from the datafile.
More...
#include <FlowGrid.h>
List of all members.
Public Member Functions |
float | RealXToNC (float realX) const |
float | RealYToNC (float realY) const |
float | RealXToRNC (float realX) const |
float | RealYToRNC (float realY) const |
float | NCXToReal (float ncX) const |
float | NCYToReal (float ncY) const |
float | RNCXToReal (float rncX) const |
float | RNCYToReal (float rncY) const |
float | NCXToRNCX (float ncX) const |
float | NCYToRNCY (float ncY) const |
float | RNCXToNCX (float rncX) const |
float | RNCYToNCY (float rncY) const |
float | GetValue (int x, int y, int cnt) const |
float | GetValueX (int *coords) |
float | GetValueY (int *coords) |
float | Interpolate (int cnt, float x, float y, int *tl, int *bl, int *br, int *tr) const |
| FlowGrid () |
void | Initialize (float widthRR, float heightRR, int width, int height, int sampleSize, float *data) |
float | GetVelocityMagnitudeRNC (float x, float y) const |
float | GetVelocityMagnitudeNC (float x, float y) const |
float | GetVelocityMagnitude (float x, float y) const |
float | GetVelocityMagnitudeRR (float x, float y) const |
cml::vector2f | GetVelocityVector (float x, float y) const |
cml::vector2f | GetVelocityVectorRNC (float x, float y) const |
cml::vector2f | GetVelocityVectorNC (float x, float y) const |
cml::vector2f | GetVelocityVectorRR (float x, float y) const |
cml::vector2f | GetRRFromNC (cml::vector2f ncCoords) const |
cml::vector2f | GetNCFromRR (cml::vector2f rrCoords) const |
float | GetX (float x, float y) const |
float | GetY (float x, float y) const |
float | GetXNC (float x, float y) const |
float | GetYNC (float x, float y) const |
float | GetXRNC (float x, float y) const |
float | GetYRNC (float x, float y) const |
bool | IsValidRR (cml::vector2f rrCoords) |
int | GetWidth () const |
int | GetHeight () const |
float | GetWidthRNC () const |
float | GetHeightRNC () const |
float | GetWidthNC () const |
float | GetHeightNC () const |
float | GetWidthRR () const |
float | GetHeightRR () const |
Public Attributes |
float * | m_data |
| Actual float data.
|
float | m_width |
| Number of samples horizontally of the dataset, is an integer in fact.
|
float | m_height |
| Number of samples vertically of the dataset, is an integer in fact.
|
float | m_sampleSize |
| Number of "channels".
|
float | m_xNCcoef |
float | m_yNCcoef |
float | m_widthRR |
float | m_heightRR |
| RR - really real size of the dataset.
|
float | m_aspectRatio |
| RR - really real size of the dataset.
|
Detailed Description
A class that encapasulates and samples the velocity and position data from the datafile.
A container for the flow data. There are 4 coordinate system: 1) NC - normalized coordinates, the larger dimension is 0.0-1.0, the smaller is scaled proportionally, so 0.0-x, x <= 1.0 2) RNC - rectangular normalized coordinates, both axes are 0.0-1.0, just like a regular opengl texture 3) RR - really real coordinates, ie 0.0-actual dataset width x 0.0-actual dataset height 4) the samples space (ie in the number of steps)
Constructor & Destructor Documentation
Member Function Documentation
int FlowGrid::GetHeight |
( |
|
) |
const |
float FlowGrid::GetHeightNC |
( |
|
) |
const |
float FlowGrid::GetHeightRNC |
( |
|
) |
const |
float FlowGrid::GetHeightRR |
( |
|
) |
const [inline] |
cml::vector2f FlowGrid::GetNCFromRR |
( |
cml::vector2f |
rrCoords |
) |
const |
cml::vector2f FlowGrid::GetRRFromNC |
( |
cml::vector2f |
ncCoords |
) |
const |
float FlowGrid::GetValue |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
cnt | |
|
) |
| | const |
float FlowGrid::GetValueX |
( |
int * |
coords |
) |
[inline] |
float FlowGrid::GetValueY |
( |
int * |
coords |
) |
[inline] |
float FlowGrid::GetVelocityMagnitude |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetVelocityMagnitudeNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetVelocityMagnitudeRNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetVelocityMagnitudeRR |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
cml::vector2f FlowGrid::GetVelocityVector |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
cml::vector2f FlowGrid::GetVelocityVectorNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
cml::vector2f FlowGrid::GetVelocityVectorRNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
cml::vector2f FlowGrid::GetVelocityVectorRR |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
int FlowGrid::GetWidth |
( |
|
) |
const |
float FlowGrid::GetWidthNC |
( |
|
) |
const |
float FlowGrid::GetWidthRNC |
( |
|
) |
const |
float FlowGrid::GetWidthRR |
( |
|
) |
const [inline] |
float FlowGrid::GetX |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetXNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetXRNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetY |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetYNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
float FlowGrid::GetYRNC |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | const |
void FlowGrid::Initialize |
( |
float |
widthRR, |
|
|
float |
heightRR, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
sampleSize, |
|
|
float * |
data | |
|
) |
| | |
float FlowGrid::Interpolate |
( |
int |
cnt, |
|
|
float |
x, |
|
|
float |
y, |
|
|
int * |
tl, |
|
|
int * |
bl, |
|
|
int * |
br, |
|
|
int * |
tr | |
|
) |
| | const |
bool FlowGrid::IsValidRR |
( |
cml::vector2f |
rrCoords |
) |
[inline] |
float FlowGrid::NCXToReal |
( |
float |
ncX |
) |
const |
float FlowGrid::NCXToRNCX |
( |
float |
ncX |
) |
const |
float FlowGrid::NCYToReal |
( |
float |
ncY |
) |
const |
float FlowGrid::NCYToRNCY |
( |
float |
ncY |
) |
const |
float FlowGrid::RealXToNC |
( |
float |
realX |
) |
const |
float FlowGrid::RealXToRNC |
( |
float |
realX |
) |
const |
float FlowGrid::RealYToNC |
( |
float |
realY |
) |
const |
float FlowGrid::RealYToRNC |
( |
float |
realY |
) |
const |
float FlowGrid::RNCXToNCX |
( |
float |
rncX |
) |
const |
float FlowGrid::RNCXToReal |
( |
float |
rncX |
) |
const |
float FlowGrid::RNCYToNCY |
( |
float |
rncY |
) |
const |
float FlowGrid::RNCYToReal |
( |
float |
rncY |
) |
const |
Member Data Documentation
RR - really real size of the dataset.
Number of samples vertically of the dataset, is an integer in fact.
RR - really real size of the dataset.
Number of samples horizontally of the dataset, is an integer in fact.
The documentation for this class was generated from the following files:
- C:/Documents and Settings/benesova/Plocha/FlowVis/vislab2/FlowGrid.h
- C:/Documents and Settings/benesova/Plocha/FlowVis/vislab2/FlowGrid.cpp