Rev 779 | Rev 966 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 779 | Rev 904 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | int loadInitFile(const QString &fileName, const QString &type, int stand_id=0, ResourceUnit *ru=NULL); |
68 | int loadInitFile(const QString &fileName, const QString &type, int stand_id=0, ResourceUnit *ru=NULL); |
69 | void executeiLandInit(ResourceUnit *ru); ///< shuffle tree positions |
69 | void executeiLandInit(ResourceUnit *ru); ///< shuffle tree positions |
70 | void executeiLandInitStand(int stand_id); ///< shuffle tree positions |
70 | void executeiLandInitStand(int stand_id); ///< shuffle tree positions |
71 | void copyTrees(); ///< helper function to quickly fill up the landscape by copying trees |
71 | void copyTrees(); ///< helper function to quickly fill up the landscape by copying trees |
72 | void evaluateDebugTrees(); ///< set debug-flag for trees by evaluating the param-value expression "debug_tree" |
72 | void evaluateDebugTrees(); ///< set debug-flag for trees by evaluating the param-value expression "debug_tree" |
- | 73 | int parseInitFile(const QString &content, const QString &fileName, ResourceUnit *ru=0); ///< creates a list of InitFileItems from the init files' content |
|
73 | Model *mModel; |
74 | Model *mModel; |
74 | RandomCustomPDF *mRandom; |
75 | RandomCustomPDF *mRandom; |
75 | QVector<InitFileItem> mInitItems; |
76 | QVector<InitFileItem> mInitItems; |
- | 77 | QHash<int, QVector<InitFileItem> > mStandInitItems; |
|
76 | const MapGrid *mCurrentMap; |
78 | const MapGrid *mCurrentMap; |
77 | const MapGrid *mInitHeightGrid; ///< grid with tree heights |
79 | const MapGrid *mInitHeightGrid; ///< grid with tree heights |
78 | Expression *mHeightGridResponse; ///< response function to calculate fitting of pixels with pre-determined height |
80 | Expression *mHeightGridResponse; ///< response function to calculate fitting of pixels with pre-determined height |
79 | int mHeightGridTries; ///< maximum number of tries to land at pixel with fitting height |
81 | int mHeightGridTries; ///< maximum number of tries to land at pixel with fitting height |
80 | }; |
82 | }; |