(root)/src/core/seeddispersal.h - Rev 375
Rev 373 |
Rev 387 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef SEEDDISPERSAL_H
#define SEEDDISPERSAL_H
#include "grid.h"
class SeedDispersal
{
public:
SeedDispersal(): mSetup(false) {}
~SeedDispersal();
bool isSetup() const { return mSetup; }
void setup();
// access
const Grid<float> seedMap() const { return mSeedMap; } ///< access to the seedMap
// operations
void clear(); ///< clears the grid
void execute(); ///< execute the seed dispersal
void loadFromImage(const QString &fileName); ///< debug function...
void edgeDetection();
void distribute();
private:
Grid<float> mSeedMap; ///< (large) seedmap. Is filled by individual trees and then processed
Grid<float> mSeedKernel; ///< species specific "seed kernel" (small)
int mOffset; ///< index of center pixel of kernel
bool mSetup;
};
#endif // SEEDDISPERSAL_H