57 bool dynamicContent_h,
58 string fullFilename_h,
This file is the header of BaseClass and it is included by ALL compiled code.
Base class for the regmas application.
Define layer objects at the regional level.
vector< LegendItems > legendItems
Vector of legend items.
vector< LegendItems > getLegendItems()
string getFilename()
Return the filename of the associated dataset.
bool getDynamicContent()
Return true if the content may change during simulation period.
void print()
Print the layer content as an ASCII grid map with its companion files (classification and colors)....
string label
Label of the layer (spaces allowed)
bool display
Normally true, but some layers used to just keep data shoudn't be normally processed.
void addLegendItem(int ID_h, string label_h, int rColor_h, int gColor_h, int bColor_h, double minValue_h, double maxValue_h)
Add a legend item.
bool dynamicContent
True if the content may change during simulation year.
string name
ID of the layer (no spaces allowed)
vector< ReclassRules > reclassRulesVector
Vector of initial reclassification rules.
double filterExogenousDataset(double code_h)
Used to reclassify the land use map for "generic" categories.
string fullFileName
Filename of the associated dataset (map)
void printBinMap()
Print a binary reppresentation of the data (a standard image, e.g. a .png file). It prints only the s...
void countMyPixels(bool debug=false)
Count the pixels going to each legend item and print them if debug==true.
QColor getColor(double ID_h)
Evaluates all the legend items to find the one that match the input code, and return its color as a Q...
bool getIsInteger()
Return if the layer is integer or not (If integer on each legend item: minValue==maxValue==ID)
void addLegendItems(vector< LegendItems > legendItems_h)
void randomShuffle()
For some sensitivity analisys, random the values for this layer for not-empty values (only integer la...
bool isInteger
Type of the layer (true==integer, false==double. If true, on each legend item: minValue==maxValue==ID...
string getCategory(double ID_h)
Evaluates all the legend items to find the one that match the input code, and return its label.
Thread manager. Responsable to manage the main thread and "speak" with the GUI.
int cashedCount
count the pixels whitin a item range
Initial reclassification rules (dataset filters)
double p
Probability that one pixel of code inCode will become of code outCode. 1 for fixed transformation.