|
Public Member Functions |
| Data (const std::string &aFilename) |
| Filename should not include the extension.
|
| ~Data () |
unsigned int | xdim () const |
| Size (Indices) in x dimension.
|
unsigned int | ydim () const |
| Size (Indices) in y dimension.
|
Vector< float > | getData (unsigned int aX, unsigned int aY) const |
| Gets the flow value for a specific data index.
|
int | getDataCount () |
float | getDataPiece (float aX, float aY, unsigned int aDataIndex) const |
Vector< float > | getFlow (float aX, float aY) const |
unsigned int | countDataPieces () const |
| Number of available data pieces.
|
Vector< float > | minPos () const |
| Smallest coordinate value of the data.
|
Vector< float > | maxPos () const |
| Largest coordinate value of the data.
|
std::pair< float, float > | getDataRange (unsigned int aDataIndex) const |
| Gets the range of the data piece aDataIndex.
|
Private Types |
typedef std::vector< std::pair<
float, float > > | RangeType |
Private Member Functions |
DataPoint & | getDataPoint (unsigned int aX, unsigned int aY) const |
float | getDataPiece (unsigned int aX, unsigned int aY, unsigned int aDataIndex) const |
| Gets the value of the data piece aDataIndex.
|
Vector< float > | getPosition (unsigned int aX, unsigned int aY) const |
| Gets the grid-Position.
|
Vector< float > | getFlow (unsigned int aX, unsigned int aY) const |
void | newDataIndex (float aX, float aY) const |
| Transforms world-coords in data-indizes.
|
| Data (const Data &other) |
Data & | operator= (Data &other) |
Private Attributes |
DataPoint * | mData |
float * | mXCellDiff |
float * | mYCellDiff |
unsigned int | mCurrentX |
unsigned int | mCurrentY |
RangeType | mDataRanges |
unsigned int | mX |
unsigned int | mY |
unsigned int | mDataCount |