iLand
Public Member Functions | List of all members
Water::PermafrostLayers Class Reference

#include <permafrost.h>

Inheritance diagram for Water::PermafrostLayers:
LayeredGrid< ResourceUnit * > LayeredGridBase

Public Member Functions

 ~PermafrostLayers ()
 
void setGrid (const Grid< ResourceUnit * > &grid)
 
void clearGrid ()
 
double value (ResourceUnit *const &data, const int index) const
 
const QVector< LayeredGridBase::LayerElement > & names ()
 list of stored layers More...
 
- Public Member Functions inherited from LayeredGrid< ResourceUnit * >
 LayeredGrid (const Grid< ResourceUnit * > &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 ResourceUnit * *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< ResourceUnit * >
const Grid< ResourceUnit * > * mGrid
 

Constructor & Destructor Documentation

◆ ~PermafrostLayers()

Water::PermafrostLayers::~PermafrostLayers ( )
inline

Member Function Documentation

◆ clearGrid()

void Water::PermafrostLayers::clearGrid ( )
inline

◆ names()

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

list of stored layers

Implements LayeredGridBase.

◆ setGrid()

void Water::PermafrostLayers::setGrid ( const Grid< ResourceUnit * > &  grid)
inline

◆ value()

double Water::PermafrostLayers::value ( ResourceUnit *const &  data,
const int  index 
) const
virtual

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