Stamp is the basic class for the LIP field of a individual tree.
More...
#include <stamp.h>
Stamp is the basic class for the LIP field of a individual tree.
In iLand jargon, a Stamp is a LIP (light influence pattern). These patterns are pre-calculated using the "LightRoom" (http://iland-model.org/Lightroom) and stand for a field of influence (w.r.t. light) of a individual tree of a given size and species. see http://iland-model.org/competition+for+light
◆ StampType
defines different grid sizes for stamps (4x4 floats, ... 48x48 floats).
the numeric value indicates also the size of the grid.
Enumerator |
---|
est4x4 | |
est8x8 | |
est12x12 | |
est16x16 | |
est24x24 | |
est32x32 | |
est48x48 | |
est64x64 | |
◆ Stamp() [1/2]
◆ ~Stamp()
◆ Stamp() [2/2]
Stamp::Stamp |
( |
const int |
size | ) |
|
|
inline |
◆ count()
int Stamp::count |
( |
| ) |
const |
|
inline |
count of pixels (rectangle)
◆ crownArea()
float Stamp::crownArea |
( |
| ) |
const |
|
inline |
◆ crownRadius()
float Stamp::crownRadius |
( |
| ) |
const |
|
inline |
◆ data() [1/2]
get a full access pointer to internal data
◆ data() [2/2]
float * Stamp::data |
( |
const int |
x, |
|
|
const int |
y |
|
) |
| const |
|
inline |
get pointer to data item with indices x and y
◆ dataSize()
int Stamp::dataSize |
( |
| ) |
const |
|
inline |
internal size of the stamp; e.g.
4 -> 4x4 stamp with 16 pixels.
◆ distanceToCenter()
float Stamp::distanceToCenter |
( |
const int |
ix, |
|
|
const int |
iy |
|
) |
| const |
|
inline |
◆ dump()
QString Stamp::dump |
( |
| ) |
const |
◆ end()
const float * Stamp::end |
( |
| ) |
const |
|
inline |
get pointer to the element after the last element (iterator style)
◆ index()
int Stamp::index |
( |
const int |
x, |
|
|
const int |
y |
|
) |
| const |
|
inline |
get index (e.g. for data()[index]) for indices x and y
◆ load()
void Stamp::load |
( |
QDataStream & |
in | ) |
|
load from stream (predefined binary structure)
◆ loadFromFile()
void Stamp::loadFromFile |
( |
const QString & |
fileName | ) |
|
◆ offset()
int Stamp::offset |
( |
| ) |
const |
|
inline |
delta between edge of the stamp and the logical center point (of the tree). e.g. a 5x5 stamp in an 8x8-grid has an offset from 2.
◆ offsetValue()
float Stamp::offsetValue |
( |
const int |
x, |
|
|
const int |
y, |
|
|
const int |
offset |
|
) |
| const |
|
inline |
◆ operator()()
float Stamp::operator() |
( |
const int |
x, |
|
|
const int |
y |
|
) |
| const |
|
inline |
retrieve the value of the stamp at given indices x and y
◆ reader()
const Stamp * Stamp::reader |
( |
| ) |
const |
|
inline |
◆ save()
void Stamp::save |
( |
QDataStream & |
out | ) |
|
save to stream (predefined binary structure)
◆ setCrownRadius()
void Stamp::setCrownRadius |
( |
const float |
r | ) |
|
|
inline |
◆ setData()
void Stamp::setData |
( |
const int |
x, |
|
|
const int |
y, |
|
|
const float |
value |
|
) |
| |
|
inline |
◆ setDistanceGrid()
static void Stamp::setDistanceGrid |
( |
const Grid< float > * |
grid | ) |
|
|
inlinestatic |
◆ setOffset()
void Stamp::setOffset |
( |
const int |
offset | ) |
|
|
inline |
◆ setReader()
void Stamp::setReader |
( |
Stamp * |
reader | ) |
|
|
inline |
◆ size()
int Stamp::size |
( |
| ) |
const |
|
inline |
logical size of the stamp
The documentation for this class was generated from the following files: