Main Page   Compound List   File List   Compound Members  

FlowDataSet Class Reference

A Class to load and access data from a flow dataset. More...

#include <FlowDataSet.h>

List of all members.

Public Methods

int getAddCount ()
 Returns the number of additional datasets.

float getDataAspectRatio ()
 Returns the dataset aspect ratio.

float getGridY ()
 Returns the grid size in y direction.

float getGridX ()
 Returns the grid size in x direction.

float getGridAspectRatio ()
 Returns the aspect ratio of the underlying grid.

int loadDataset (CString geomPathName, CString dataPathName)
 Loads a dataset.

 FlowDataSet (CString geomPathName, CString dataPathName)
 constructor taking the names of the grid and data file

 FlowDataSet ()
 standard constructor

virtual ~FlowDataSet ()
 destructor


Protected Methods

RsData calcRsData (float x, float y)
 Calculates the resampled data at x,y position.

float * getAddDataPointer (int dataindex, int x, int y, int z=0)
 Accesses the original additional data.

GridDatagetGridDataPointer (int x, int y, int z=0)
 Accesses the original grid data.

FlowDatagetFlowDataPointer (int x, int y, int z=0)
 Accesses the original flow data.

void deallocateResampleMemory ()
 allocates the memory needed to store the resampled data

void allocateResampleMemory ()
 deallocates the memory needed to store the resampled data

int deallocateMemory ()
 frees all allocated memory to load the dataset

int allocateMemory ()
 allocates all necessary memory to load the dataset


Protected Attributes

CFlowVisApp * m_App
 pointer to the application class

int dataX
 elementcount of the dataset in x direction

int dataY
 elementcount of the dataset in y direction

int dataZ
 elementcount of the dataset in z direction

float dataAspect
 aspect ratio of the dataset

float minX
 smallest grid value in x direction

float minY
 smallest grid value in y direction

float maxX
 largest grid value in x direction

float maxY
 largest grid value in y direction

float gridX
 grid size of the dataset in x direction

float gridY
 grid size of the dataset in y direction

float gridAspect
 aspect ratio of the grid

int elements
 element count of the dataset

int rsSizeX
 size of the resampled data in x direction

int rsSizeY
 size of the resampled data in y direction

int rsElements
 element count of the resampled dataset

int addCount
 number of additional datasets

RsFlowDatarsFlowData
 pointer to resampled flow data structure

RsAddDatarsSpeed
 pointer to Additional Speed Data class

RsAddDatarsSpeedGradient
 pointer to Additional Speed Gradient Data class

RsAddDatarsAddData [MAX_ADDITIONAL_DATA]
 pointers to further Additional Data classes

GridDatagData
 pointer to grid data structure

FlowDatafData
 pointer to flow data structure

float * aData [MAX_ADDITIONAL_DATA]
 pointer to additional data structure


Detailed Description

A Class to load and access data from a flow dataset.


Constructor & Destructor Documentation

FlowDataSet::FlowDataSet CString    geomPathName,
CString    dataPathName
 

constructor taking the names of the grid and data file

Parameters:
geomPathName  path of the geometry (*.gri) file
dataPathName  path of the data (*.dat) file


Member Function Documentation

float * FlowDataSet::getAddDataPointer int    dataindex,
int    x,
int    y,
int    z = 0
[protected]
 

Accesses the original additional data.

Parameters:
dataindex  which additional data shall be accessed
x  x location of data to be accessed
y  y location of data to be accessed
z  z location of data to be accessed (optional)
Returns:
pointer to according data if dataindex smaller than aCount and x,y,z in range, NULL otherwise

FlowData * FlowDataSet::getFlowDataPointer int    x,
int    y,
int    z = 0
[protected]
 

Accesses the original flow data.

Parameters:
x  x location of data to be accessed
y  y location of data to be accessed
z  z location of data to be accessed (optional)
Returns:
pointer to according flow data if x,y,z in range, NULL otherwise

GridData * FlowDataSet::getGridDataPointer int    x,
int    y,
int    z = 0
[protected]
 

Accesses the original grid data.

Parameters:
x  x location of data to be accessed
y  y location of data to be accessed
z  z location of data to be accessed (optional)
Returns:
pointer to according grid data if x,y,z in range, NULL otherwise

int FlowDataSet::loadDataset CString    geomPathName,
CString    dataPathName
 

Loads a dataset.

Parameters:
geomPathName  path of the geometry (*.gri) file
dataPathName  path of the data (*.dat) file
Returns:
Returns 0 if the files could be loaded, -1 otherwise


The documentation for this class was generated from the following files:
Generated on Wed Jan 21 13:19:25 2004 for FlowVis by doxygen1.2.18