48 ModelRegion(
ThreadManager* MTHREAD_h,
int regId_h,
string regSName_h,
string regLName_h,
int regLevel_h,
int parRegId_h,
bool isResidual_h);
59 void setChildren(vector<ModelRegion*> children_h) {chRegions = children_h;};
60 void addForData(forData* data_h){forDataVector.push_back(data_h);};
61 void addProdData(prodData* data_h){prodDataVector.push_back(data_h);};
63 void swap(
const int& swap_what);
73 vector<ModelRegion*>getChildren(
bool excludeResidual =
true);
74 vector<ModelRegion*>getSiblings(
bool excludeResidual =
true);
76 vector<double> getVolumes(
int fType_h);
77 double getValue(
string layerName,
int op=
OP_SUM);
78 vector < vector <double> > getVolumes(
int fType_h,
string dClass_h);
79 double getArea(
const string &fType_h,
const string &dClass_h);
80 double getArea(
const string &fType_h);
81 double getArea(
const int& ft_pos,
const int& dc_pos);
82 double getArea(
const int& ft_pos);
85 int getNChildren(
bool excludeResidual =
true);
86 vector<Pixel*> getMyPixels(){
return myPixels;};
void setRegLevel(int regLevel_h)
void setRegLName(string regLName_h)
int parRegId
Id of the parent region;.
int regLevel
The level of the region. 1: country, 2: regions.
void setParent(ModelRegion *parRegion_h)
vector< forData * > forDataVector
Vector of pointers of forestry data (owned by ModelData)
Thread manager. Responsable to manage the main thread and "speak" with the GUI.
void setChildren(vector< ModelRegion * > children_h)
vector< ModelRegion * > chRegions
Vector of level-1 children regions.
vector< double > inResByAnyCombination
Vector of inventory resource for each possible combination of primary products. This store both alive...
void addProdData(prodData *data_h)
void addForData(forData *data_h)
Childrens are all the lvel-1 region that are parts of this region.
bool isResidual
A flag if this region should be explicitelly modelled or it is just a residual.
int regId
Regional unique ID.
void setRegSName(string regSName_h)
vector< prodData * > prodDataVector
Vector of pointers of product data (owned by ModelData)
Base class for the regmas application.
vector< Pixel * > myPixels
Vector of pixels for this region.
bool getIsResidual() const
void setParRegId(int parRegId_h)
string getRegSName() const
ModelRegion * getParent()
ModelRegion * parRegion
Pointer to the parent region.
string regLName
Region long name;.
This file is the header of BaseClass and it is included by ALL compiled code.
void setRegId(int regId_h)
string regSName
A short name of the region.
void setIsResidual(bool isResidual_h)
string getRegLName() const