Path::CAreaConfig Struct Reference

libarea configurator More...

#include <Area.h>

Public Member Functions

 CAreaConfig (const CAreaParams &p, bool noFitArcs=true)
 For saving current libarea settings. More...
 
 ~CAreaConfig ()
 The destructor restores the setting, and thus exception safe. More...
 

Detailed Description

libarea configurator

It is kind of troublesome with the fact that libarea uses static variables to config its algorithm. CAreaConfig makes it easy to safely customize libarea.

Constructor & Destructor Documentation

◆ CAreaConfig()

CAreaConfig::CAreaConfig ( const CAreaParams p,
bool  noFitArcs = true 
)

For saving current libarea settings.

The constructor automatically saves current setting and apply user defined ones

  • p user defined configurations
  • noFitArgs if true, will override and disable arc fitting. Because arc unfiting and fitting is lossy. And repeatedly perform these operation may cause shape deformation. So it is best to delay arc fitting until the final step

References PARAM_FOREACH.

◆ ~CAreaConfig()

CAreaConfig::~CAreaConfig ( )

The destructor restores the setting, and thus exception safe.


References PARAM_FOREACH.


The documentation for this struct was generated from the following files: