Waterflow
Visualize water in terrain
mapdata Struct Reference

Contains information about the loaded terrain. More...

#include <readData.h>

List of all members.

Public Attributes

float cellsize
 Scaling for each cell, currently unused.
std::vector< float > data
 The terrain data is stored in a std::vector.
float max_value
 Maximum input, used to scale.
float min_value
 Minimum input, used to scale.
int ncols
 Width of the terrain data.
int nelem
 Total number of terrain data.
float NODATA_value
 Value of input with no data, used to filter.
int nrows
 Height of the terrain data.
float xllcorner
 Dont know what this is.
float yllcorner
 Dont know what this is.

Detailed Description

Contains information about the loaded terrain.

After loading the terrain the input will be stored in a mapdata struct. The data should be rescaled after loading to lie between 0.0 and 1.0 to work correctly should you want to use any OpenGL filters on the data.

Definition at line 17 of file readData.h.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Enumerations