114 LabelPosition *
featureCandidate(
int feature,
int candidate )
const {
return mLabelPositions[ mFirstCandidateIndexForFeature[feature] + candidate ].get(); }
138 QList<LabelPosition *> getSolution(
bool returnInactive, QList<LabelPosition *> *unlabeled =
nullptr );
143 void init_sol_falp();
153 return &mPositionsWithNoCandidates;
176 QStringList labelledLayersName;
181 int mTotalCandidates = 0;
191 std::size_t mFeatureCount = 0;
196 bool mDisplayAll =
false;
201 double mMapExtentBounds[4] = {0, 0, 0, 0};
203 std::vector< std::unique_ptr< LabelPosition > > mLabelPositions;
208 std::vector< std::unique_ptr< LabelPosition > > mPositionsWithNoCandidates;
211 std::vector< int > mFirstCandidateIndexForFeature;
213 std::vector< int > mCandidateCountForFeature;
215 std::vector< double > mUnlabeledCostForFeature;
222 std::vector< int > activeLabelIds;
224 void init( std::size_t featureCount )
226 activeLabelIds.resize( featureCount, -1 );
231 double mNbOverlap = 0.0;
234 std::unique_ptr< Chain > chain(
int seed );
238 void solution_cost();
239 void ignoreLabel(
const LabelPosition *lp, pal::PriorityQueue &list, PalRtree<LabelPosition> &candidatesIndex );
Contains information about the context of a rendering operation.