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

#include <spatialanalysis.h>

Inheritance diagram for SpatialLayeredGrid:
LayeredGridBase

Public Member Functions

 SpatialLayeredGrid ()
 
void setup ()
 initial setup of the grid More...
 
int addGrid (const QString name, FloatGrid *grid)
 adds a 'grid' named 'name'. returns index of the newly added grid. More...
 
const QStringList & gridNames ()
 
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
 
double value (const int grid_index, const int index) const
 
void range (double &rMin, double &rMax, const int index) const
 retrieve min and max of variable 'index' More...
 
- Public Member Functions inherited from LayeredGridBase
virtual ~LayeredGridBase ()
 
virtual int sizeX () const =0
 
virtual int sizeY () const =0
 
virtual QRectF metricRect () const =0
 
virtual QRectF cellRect (const QPoint &p) const =0
 
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
 

Constructor & Destructor Documentation

◆ SpatialLayeredGrid()

SpatialLayeredGrid::SpatialLayeredGrid ( )
inline

Member Function Documentation

◆ addGrid()

int SpatialLayeredGrid::addGrid ( const QString  name,
FloatGrid grid 
)

adds a 'grid' named 'name'. returns index of the newly added grid.

◆ gridNames()

const QStringList & SpatialLayeredGrid::gridNames ( )
inline

◆ range()

void SpatialLayeredGrid::range ( double &  rMin,
double &  rMax,
const int  index 
) const
inlinevirtual

retrieve min and max of variable 'index'

Implements LayeredGridBase.

◆ setup()

void SpatialLayeredGrid::setup ( )

initial setup of the grid

◆ value() [1/4]

double SpatialLayeredGrid::value ( const float  x,
const float  y,
const int  index 
) const
inlinevirtual

Implements LayeredGridBase.

◆ value() [2/4]

double SpatialLayeredGrid::value ( const int  grid_index,
const int  index 
) const
inlinevirtual

Implements LayeredGridBase.

◆ value() [3/4]

double SpatialLayeredGrid::value ( const int  ix,
const int  iy,
const int  index 
) const
inlinevirtual

Implements LayeredGridBase.

◆ value() [4/4]

double SpatialLayeredGrid::value ( const QPointF &  world_coord,
const int  index 
) const
inlinevirtual

Implements LayeredGridBase.


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