Horizon
|
Class COST_ESTIMATOR. More...
#include <pns_optimizer.h>
Public Member Functions | |
COST_ESTIMATOR (const COST_ESTIMATOR &aB) | |
void | Add (LINE &aLine) |
void | Remove (LINE &aLine) |
void | Replace (LINE &aOldLine, LINE &aNewLine) |
bool | IsBetter (COST_ESTIMATOR &aOther, double aLengthTolerance, double aCornerTollerace) const |
double | GetLengthCost () const |
double | GetCornerCost () const |
COST_ESTIMATOR (const COST_ESTIMATOR &aB) | |
void | Add (LINE &aLine) |
void | Remove (LINE &aLine) |
void | Replace (LINE &aOldLine, LINE &aNewLine) |
bool | IsBetter (COST_ESTIMATOR &aOther, double aLengthTolerance, double aCornerTollerace) const |
double | GetLengthCost () const |
double | GetCornerCost () const |
Static Public Member Functions | |
static int | CornerCost (const SEG &aA, const SEG &aB) |
Cost Estimator Methods. | |
static int | CornerCost (const SHAPE_LINE_CHAIN &aLine) |
static int | CornerCost (const LINE &aLine) |
static int | CornerCost (const SEG &aA, const SEG &aB) |
static int | CornerCost (const SHAPE_LINE_CHAIN &aLine) |
static int | CornerCost (const LINE &aLine) |
Class COST_ESTIMATOR.
Calculates the cost of a given line, taking corner angles and total length into account.