58 template <
class Type>
class LinkedList;
132 QList<Layer*> *layers;
178 typedef bool ( *FnIsCancelled )(
void* ctx );
180 FnIsCancelled fnIsCancelled;
182 void* fnIsCancelledContext;
199 Problem* extract(
int nbLayers,
char **layersName,
double *layersFactor,
200 double lambda_min,
double phi_min,
201 double lambda_max,
double phi_max,
202 double scale, std::ofstream *svgmap );
209 void setPopmusicR(
int r );
217 void setMinIt(
int min_it );
223 void setMaxIt(
int max_it );
229 void setTenure(
int tenure );
235 void setEjChainDeg(
int degree );
241 void setCandListSize(
double fact );
286 Layer * addLayer(
const char *lyrName,
double min_scale,
double max_scale,
Arrangement arrangement,
Units label_unit,
double defaultPriority,
bool obstacle,
bool active,
bool toLabel,
bool displayAll =
false );
297 Layer *getLayer(
const char *lyrName );
304 QList<Layer*> *getLayers();
311 void removeLayer(
Layer *layer );
324 std::list<LabelPosition*> *labeller(
double scale,
double bbox[4],
PalStat **stats,
bool displayAll );
344 std::list<LabelPosition*> *labeller(
int nbLayers,
346 double *layersFactor,
347 double scale,
double bbox[4],
352 void registerCancellationCallback( FnIsCancelled fnCancelled,
void* context );
355 inline bool isCancelled() {
return fnIsCancelled ? fnIsCancelled( fnIsCancelledContext ) :
false; }
357 Problem* extractProblem(
double scale,
double bbox[4] );
359 std::list<LabelPosition*>* solveProblem(
Problem* prob,
bool displayAll );
366 void setDpi(
int dpi );
380 void setShowPartial(
bool show );
387 bool getShowPartial();
395 void setPointP(
int point_p );
403 void setLineP(
int line_p );
411 void setPolyP(
int poly_p );
436 void setMapUnit(
Units map_unit );