48 ModelRegion(
ThreadManager* MTHREAD_h,
int regId_h,
string regSName_h,
string regLName_h,
int regLevel_h,
int parRegId_h,
bool isResidual_h);
63 void swap(
const int& swap_what);
73 vector<ModelRegion*>
getChildren(
bool excludeResidual =
true);
74 vector<ModelRegion*>
getSiblings(
bool excludeResidual =
true);
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);
This file is the header of BaseClass and it is included by ALL compiled code.
@ OP_SUM
Perform a SUM operation.
Base class for the regmas application.
string regSName
A short name of the region.
void setRegLevel(int regLevel_h)
double getValue(string layerName, int op=OP_SUM)
return the values of its own pixels for the specified layer. Possible operations: OP_SUM or OP_AVG
void setRegId(int regId_h)
void setRegSName(string regSName_h)
ModelRegion * parRegion
Pointer to the parent region.
void setParRegId(int parRegId_h)
void setParent(ModelRegion *parRegion_h)
bool getIsResidual() const
vector< ModelRegion * > getSiblings(bool excludeResidual=true)
Return a vector of pointers to the siblings regions.
string getRegLName() const
vector< Pixel * > getMyPixels()
bool isResidual
A flag if this region should be explicitelly modelled or it is just a residual.
void setIsResidual(bool isResidual_h)
void setChildren(vector< ModelRegion * > children_h)
int regId
Regional unique ID.
void swap(const int &swap_what)
void addProdData(prodData *data_h)
int regLevel
The level of the region. 1: country, 2: regions.
double getArea()
Get whole forest area (from pixel->area matrix)
string regLName
Region long name;.
vector< ModelRegion * > getChildren(bool excludeResidual=true)
Returns a pointer to the parent regions.
string getRegSName() const
vector< Pixel * > myPixels
Vector of pixels for this region.
ModelRegion * getParent()
vector< forData * > forDataVector
Vector of pointers of forestry data (owned by ModelData)
void setMyPixels()
It sets a double link pixels <--> region.
vector< double > inResByAnyCombination
Vector of inventory resource for each possible combination of primary products. This store both alive...
vector< prodData * > prodDataVector
Vector of pointers of product data (owned by ModelData)
void setRegLName(string regLName_h)
vector< ModelRegion * > chRegions
Vector of level-1 children regions.
void addForData(forData *data_h)
Childrens are all the lvel-1 region that are parts of this region.
int parRegId
Id of the parent region;.
int getNChildren(bool excludeResidual=true)
Thread manager. Responsable to manage the main thread and "speak" with the GUI.