36 #include "qgis_core.h" 126 QList<LabelPosition *> getSolution(
bool returnInactive, QList<LabelPosition *> *unlabeled =
nullptr );
136 void init_sol_empty();
137 void init_sol_falp();
149 return &mPositionsWithNoCandidates;
157 int nbLabelledLayers = 0;
162 QStringList labelledLayersName;
183 bool displayAll =
false;
190 QList< LabelPosition * > mLabelPositions;
192 RTree<LabelPosition *, double, 2, double> *candidates =
nullptr;
193 RTree<LabelPosition *, double, 2, double> *candidates_sol =
nullptr;
195 QList< LabelPosition * > mPositionsWithNoCandidates;
198 int *featStartId =
nullptr;
199 int *featNbLp =
nullptr;
200 double *inactiveCost =
nullptr;
203 double nbOverlap = 0.0;
205 Chain *chain(
int seed );
209 void solution_cost();
void addCandidatePosition(LabelPosition *position)
Adds a candidate label position to the problem.
int getFeatureCandidateCount(int i)
QList< LabelPosition * > * positionsWithNoCandidates()
Returns a reference to the list of label positions which correspond to features with no candidates...
Summary statistics of labeling problem.
LabelPosition is a candidate feature label position.
Representation of a labeling problem.
LabelPosition * getFeatureCandidate(int fi, int ci)