55 LabelInfo(
int num,
double height,
double maxinangle = 20.0,
double maxoutangle = -20.0 )
57 max_char_angle_inside = maxinangle;
59 max_char_angle_outside = maxoutangle > 0 ? -maxoutangle : maxoutangle;
60 label_height = height;
122 int orientation,
int index,
double distance );
201 double calculatePriority()
const;
210 void extractCoords(
const GEOSGeometry* geom );
QList< FeaturePart * > mHoles
double max_char_angle_outside
QgsLabelFeature * feature()
Returns the parent feature.
double getLabelHeight() const
int getNumSelfObstacles() const
Get number of holes (inner rings) - they are considered as obstacles.
A layer of spacial entites.
double getLabelWidth() const
LabelInfo(int num, double height, double maxinangle=20.0, double maxoutangle=-20.0)
CharacterInfo * char_info
double getLabelDistance() const
Optional additional info about label (for curved labels)
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.
LabelPosition is a candidate feature label position.
Quadrant
Position of label candidate relative to feature.