60 LabelInfo(
int num,
double height,
double maxinangle = 20.0,
double maxoutangle = -20.0 )
62 max_char_angle_inside = maxinangle;
64 max_char_angle_outside = maxoutangle > 0 ? -maxoutangle : maxoutangle;
65 label_height = height;
154 int createCandidatesAtOrderedPositionsOverPoint(
double x,
double y,
QList<LabelPosition *> &lPos,
double angle );
164 int orientation,
int index,
double distance );
185 bool hasSameLabelFeatureAs(
FeaturePart* part )
const;
226 double calculatePriority()
const;
235 void extractCoords(
const GEOSGeometry* geom );
QList< FeaturePart * > mHoles
double max_char_angle_outside
QgsLabelFeature * feature()
Returns the parent feature.
A set of features which influence the labelling process.
int getNumSelfObstacles() const
Get number of holes (inner rings) - they are considered as obstacles.
LabelInfo(int num, double height, double maxinangle=20.0, double maxoutangle=-20.0)
double getLabelDistance() const
CharacterInfo * char_info
Optional additional info about label (for curved labels)
double getLabelHeight() const
Main class to handle feature.
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
The QgsLabelFeature class describes a feature that should be used within the labeling engine...
double max_char_angle_inside
FeaturePart * getSelfObstacle(int i)
Get hole (inner ring) - considered as obstacle.
double getLabelWidth() const
LabelPosition is a candidate feature label position.
Quadrant
Position of label candidate relative to feature.