61 LabelInfo(
int num,
double height,
double maxinangle = 20.0,
double maxoutangle = -20.0 )
63 max_char_angle_inside = maxinangle;
65 max_char_angle_outside = maxoutangle > 0 ? -maxoutangle : maxoutangle;
66 label_height = height;
93 void setFixedPosition(
double x,
double y ) { fixedPos =
true; fixedPosX = x; fixedPosY = y;}
94 void setQuadOffset(
double x,
double y ) { quadOffset =
true; quadOffsetX = x; quadOffsetY = y;}
95 void setPosOffset(
double x,
double y ) { offsetPos =
true; offsetPosX = x; offsetPosY = y;}
98 void setFixedAngle(
double a ) { fixedRotation =
true; fixedAngle = a; }
151 void extractCoords(
const GEOSGeometry* geom );
156 void removeDuplicatePoints();
184 int setPositionForPoint(
double x,
double y,
double scale,
LabelPosition ***lPos,
double delta_width,
double angle );
189 int setPositionOverPoint(
double x,
double y,
double scale,
LabelPosition ***lPos,
double delta_width,
double angle );
200 int setPositionForLine(
double scale,
LabelPosition ***lPos,
PointSet *mapShape,
double delta_width );
203 int orientation,
int index,
double distance );
219 int setPositionForPolygon(
double scale,
LabelPosition ***lPos,
PointSet *mapShape,
double delta_width );
230 LinkedList<Feature*> *splitFeature(
double bbox[4] );
264 void save( std::ofstream *
file );
278 int setPosition(
double scale,
LabelPosition ***lPos,
double bbox_min[2],
double bbox_max[2],
PointSet *mapShape, RTree<LabelPosition*, double, 2, double>*candidates
280 , std::ofstream &svgmap
288 const char *getUID();
300 void setLabelSize(
double lx,
double ly ) { f->label_x = lx; f->label_y = ly; }
322 void addSizePenalty(
int nbp,
LabelPosition** lPos,
double bbx[4],
double bby[4] );