iLand
Public Member Functions | List of all members
GrassCoverLayers Class Reference

Helper class manage and visualize data layers. More...

#include <grasscover.h>

Inheritance diagram for GrassCoverLayers:
LayeredGrid< grass_grid_type > LayeredGridBase

Public Member Functions

void setGrid (const Grid< grass_grid_type > &grid, const GrassCover *gc)
 
double value (const grass_grid_type &data, const int index) const
 
const QVector< LayeredGridBase::LayerElement > & names ()
 list of stored layers More...
 
- Public Member Functions inherited from LayeredGrid< grass_grid_type >
 LayeredGrid (const Grid< grass_grid_type > &grid)
 
 LayeredGrid ()
 
bool isValid () const
 
QRectF cellRect (const QPoint &p) const
 
QRectF metricRect () const
 
float cellsize () const
 
int sizeX () const
 
int sizeY () const
 
double value (const grass_grid_type *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...
 
- Public Member Functions inherited from LayeredGridBase
virtual ~LayeredGridBase ()
 
virtual bool onClick (const QPointF &world_coord) const
 
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
 

Additional Inherited Members

- Protected Attributes inherited from LayeredGrid< grass_grid_type >
const Grid< grass_grid_type > * mGrid
 

Detailed Description

Helper class manage and visualize data layers.

Member Function Documentation

◆ names()

const QVector< LayeredGridBase::LayerElement > & GrassCoverLayers::names ( )
virtual

list of stored layers

Implements LayeredGridBase.

◆ setGrid()

void GrassCoverLayers::setGrid ( const Grid< grass_grid_type > &  grid,
const GrassCover gc 
)
inline

◆ value()

double GrassCoverLayers::value ( const grass_grid_type data,
const int  index 
) const
virtual

The documentation for this class was generated from the following files: