31 std::vector<int> data;
57 maxVal = std::numeric_limits<int>::min();
58 minVal = std::numeric_limits<int>::max();
73 data.resize(cols * rows);
76 maxVal = std::numeric_limits<int>::min();
77 minVal = std::numeric_limits<int>::max();
91 int yll,
float cellsize,
int maxVal,
int minVal) {
93 data.resize(cols * rows);
141 return data[r * cols + c];
152 minVal = std::min(minVal, val);
153 maxVal = std::max(maxVal, val);
155 data[r * cols + c] = val;
225 cellSize = cell_size;
Class that hold elevation data.
Definition: ElevationData.h:27
void setRows(int r)
Definition: ElevationData.h:171
vector< int > getData()
Definition: ElevationData.h:130
int getyll() const
Definition: ElevationData.h:197
int getCols() const
Definition: ElevationData.h:115
~ElevationData()
Definition: ElevationData.h:106
int getMinVal() const
Definition: ElevationData.h:250
int getRows() const
Definition: ElevationData.h:162
int getxll() const
Definition: ElevationData.h:179
void setyll(int y_ll)
Definition: ElevationData.h:206
ElevationData()
Definition: ElevationData.h:52
int getVal(int r, int c) const
Definition: ElevationData.h:140
int getMaxVal() const
Definition: ElevationData.h:233
ElevationData(int r, int c)
Definition: ElevationData.h:70
void setxll(int x_ll)
Definition: ElevationData.h:189
void setVal(int r, int c, int val)
Definition: ElevationData.h:151
void setCellSize(float cell_size)
Definition: ElevationData.h:224
void setMinVal(int min_val)
Definition: ElevationData.h:259
float getCellSize() const
Definition: ElevationData.h:215
void setCols(int c)
Definition: ElevationData.h:123
ElevationData(int cols, int rows, int xll, int yll, float cellsize, int maxVal, int minVal)
Definition: ElevationData.h:90
void setMaxVal(int max_val)
Definition: ElevationData.h:242
Support for drawing Bar charts.
Definition: alltypes.h:4