|
| LayeredGrid (const Grid< T > &grid) |
|
| LayeredGrid () |
|
bool | isValid () const |
|
QRectF | cellRect (const QPoint &p) const |
|
QRectF | metricRect () const |
|
float | cellsize () const |
|
int | sizeX () const |
|
int | sizeY () const |
|
virtual double | value (const T &data, const int index) const =0 |
|
double | value (const T *ptr, const int index) const |
|
double | value (const int grid_index, const int index) const |
|
double | value (const float x, const float y, const int index) const |
|
double | value (const QPointF &world_coord, const int index) const |
|
double | value (const int ix, const int iy, const int index) const |
|
void | range (double &rMin, double &rMax, const int index) const |
| retrieve min and max of variable 'index' More...
|
|
Grid< double > * | copyGrid (const int index) const |
| extract a (newly created) grid filled with the value of the variable given by 'index' caller need to free memory! More...
|
|
virtual | ~LayeredGridBase () |
|
virtual bool | onClick (const QPointF &world_coord) const |
|
virtual const QVector< LayeredGridBase::LayerElement > & | names ()=0 |
| list of stored layers More...
|
|
virtual int | indexOf (const QString &layer_name) |
| get layer index by name of the layer. returns -1 if layer is not available. More...
|
|
virtual QStringList | layerNames () |
|
virtual const QString | labelvalue (const int value, const int index) const |
|
template<class T>
class LayeredGrid< T >
This is the base class for multi-layer grids in iLand.
template for multi-layered grids in iLand.
Use the LayeredGrid-template class for creating actual multi layer grids. The LayeredGridBase can be used for specializations.
Use your cell-class for T and provide at minium a value() and a names() function. The names() provide the names of the individual layers (used e.g. in the GUI), the value() function returns a cell-specific value for a specific layer (given by 'index' parameter).