58 template <
class Type>
class LinkedList;
132 QList<Layer*> *layers;
175 typedef bool ( *FnIsCancelled )(
void* ctx );
177 FnIsCancelled fnIsCancelled;
179 void* fnIsCancelledContext;
196 Problem* extract(
int nbLayers,
char **layersName,
double *layersFactor,
197 double lambda_min,
double phi_min,
198 double lambda_max,
double phi_max,
199 double scale, std::ofstream *svgmap );
206 void setPopmusicR(
int r );
214 void setMinIt(
int min_it );
220 void setMaxIt(
int max_it );
226 void setTenure(
int tenure );
232 void setEjChainDeg(
int degree );
238 void setCandListSize(
double fact );
283 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 );
294 Layer *getLayer(
const char *lyrName );
301 QList<Layer*> *getLayers();
308 void removeLayer(
Layer *layer );
321 std::list<LabelPosition*> *labeller(
double scale,
double bbox[4],
PalStat **stats,
bool displayAll );
341 std::list<LabelPosition*> *labeller(
int nbLayers,
343 double *layersFactor,
344 double scale,
double bbox[4],
349 void registerCancellationCallback( FnIsCancelled fnCancelled,
void* context );
352 inline bool isCancelled() {
return fnIsCancelled ? fnIsCancelled( fnIsCancelledContext ) :
false; }
354 Problem* extractProblem(
double scale,
double bbox[4] );
356 std::list<LabelPosition*>* solveProblem(
Problem* prob,
bool displayAll );
363 void setDpi(
int dpi );
377 void setShowPartial(
bool show );
384 bool getShowPartial();
392 void setPointP(
int point_p );
400 void setLineP(
int line_p );
408 void setPolyP(
int poly_p );
433 void setMapUnit(
Units map_unit );