21 #ifndef QGSPALLABELING_H
22 #define QGSPALLABELING_H
125 void calculateLabelSize(
const QFontMetricsF* fm, QString text,
double& labelX,
double& labelY );
179 void numCandidatePositions(
int& candPoint,
int& candLine,
int& candPolygon );
180 void setNumCandidatePositions(
int candPoint,
int candLine,
int candPolygon );
182 enum Search { Chain, Popmusic_Tabu, Popmusic_Chain, Popmusic_Tabu_Chain, Falp };
184 void setSearchMethod( Search s );
185 Search searchMethod()
const;
189 const QList<QgsLabelCandidate>&
candidates() {
return mCandidates; }
217 void drawLabelCandidateRect( pal::LabelPosition* lp, QPainter* painter,
const QgsMapToPixel* xform );
219 void drawLabel( pal::LabelPosition* label, QPainter* painter,
const QFont& f,
const QColor& c,
const QgsMapToPixel* xform,
double bufferSize = -1, \
220 const QColor& bufferColor = QColor( 255, 255, 255 ),
bool drawBuffer =
false );
221 static void drawLabelBuffer( QPainter* p, QString text,
const QFont& font,
double size, QColor color );
249 #endif // QGSPALLABELING_H