36 #include "qgis_core.h"
99 void addCandidatePosition( std::unique_ptr< LabelPosition > position ) { mLabelPositions.emplace_back( std::move( position ) ); }
135 QList<LabelPosition *> getSolution(
bool returnInactive, QList<LabelPosition *> *unlabeled =
nullptr );
140 void init_sol_falp();
150 return &mPositionsWithNoCandidates;
173 QStringList labelledLayersName;
178 int mTotalCandidates = 0;
188 std::size_t mFeatureCount = 0;
193 bool mDisplayAll =
false;
198 double mMapExtentBounds[4] = {0, 0, 0, 0};
200 std::vector< std::unique_ptr< LabelPosition > > mLabelPositions;
205 std::vector< std::unique_ptr< LabelPosition > > mPositionsWithNoCandidates;
207 std::vector< int > mFeatStartId;
208 std::vector< int > mFeatNbLp;
209 std::vector< double > mInactiveCost;
216 std::vector< int > activeLabelIds;
218 void init( std::size_t featureCount )
220 activeLabelIds.resize( featureCount, -1 );
225 double mNbOverlap = 0.0;
227 Chain *chain(
int seed );
231 void solution_cost();