#include <LayoutOptimization.h>


Public Member Functions | |
| LayoutSolution (LayoutOptProblem *problem) | |
| void | derive (GAOptimizer::IGenotype *parent1, GAOptimizer::IGenotype *parent2) |
| void | random () |
| void | copyFromGraph () |
| bool | areConnectionsCrossed (Edge *e1, Edge *e2) |
| int | getDirViolations (Edge *e) |
| double | getScore () |
| NodePosVec & | getNodes () |
| LayoutOptProblem * | getProblem () |
| void | calcBoundingBox () |
| void | crop () |
| void | move (int dx, int dy) |
| void | calcEdgeEnds (Edge *e, int &x1, int &y1, int &x2, int &y2) |
Static Public Member Functions | |
| static bool | areLinesCrossed (int x1, int y1, int x2, int y2, int xp1, int yp1, int xp2, int yp2) |
Friends | |
| class | LayoutOptimizer |
Definition at line 80 of file LayoutOptimization.h.
| LayoutSolution::LayoutSolution | ( | LayoutOptProblem * | problem | ) |
Definition at line 153 of file LayoutOptimization.cpp.
Definition at line 208 of file LayoutOptimization.cpp.
| bool LayoutSolution::areLinesCrossed | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2, | |||
| int | xp1, | |||
| int | yp1, | |||
| int | xp2, | |||
| int | yp2 | |||
| ) | [static] |
Definition at line 219 of file LayoutOptimization.cpp.
| void LayoutSolution::calcBoundingBox | ( | ) |
Definition at line 277 of file LayoutOptimization.cpp.
| void LayoutSolution::calcEdgeEnds | ( | Edge * | e, | |
| int & | x1, | |||
| int & | y1, | |||
| int & | x2, | |||
| int & | y2 | |||
| ) |
Definition at line 319 of file LayoutOptimization.cpp.
| void LayoutSolution::copyFromGraph | ( | ) |
Definition at line 197 of file LayoutOptimization.cpp.
| void LayoutSolution::crop | ( | ) |
Definition at line 298 of file LayoutOptimization.cpp.
| void LayoutSolution::derive | ( | GAOptimizer::IGenotype * | parent1, | |
| GAOptimizer::IGenotype * | parent2 | |||
| ) | [virtual] |
Implements GAOptimizer::IGenotype.
Definition at line 164 of file LayoutOptimization.cpp.
| int LayoutSolution::getDirViolations | ( | Edge * | e | ) |
Definition at line 233 of file LayoutOptimization.cpp.
| NodePosVec& LayoutSolution::getNodes | ( | ) | [inline] |
Definition at line 100 of file LayoutOptimization.h.
| LayoutOptProblem* LayoutSolution::getProblem | ( | ) | [inline] |
Definition at line 102 of file LayoutOptimization.h.
| double LayoutSolution::getScore | ( | ) |
Definition at line 610 of file LayoutOptimization.cpp.
| void LayoutSolution::move | ( | int | dx, | |
| int | dy | |||
| ) |
Definition at line 304 of file LayoutOptimization.cpp.
| void LayoutSolution::random | ( | ) | [virtual] |
Implements GAOptimizer::IGenotype.
Definition at line 191 of file LayoutOptimization.cpp.
friend class LayoutOptimizer [friend] |
Definition at line 150 of file LayoutOptimization.h.
1.6.3