| 1 | /*************************************************************************** |
| 2 | * This file is part of Robocut. * |
| 3 | * Copyright (C) 2010 Markus Schulz <[email protected]> * |
| 4 | * * |
| 5 | * This program is free software; you can redistribute it and/or modify * |
| 6 | * it under the terms of the GNU General Public License as published by * |
| 7 | * the Free Software Foundation; either version 3 of the License, or * |
| 8 | * (at your option) any later version. * |
| 9 | * * |
| 10 | * This program is distributed in the hope that it will be useful, * |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 13 | * GNU General Public License for more details. * |
| 14 | * * |
| 15 | * You should have received a copy of the GNU General Public License * |
| 16 | * along with this program; if not, write to the * |
| 17 | * Free Software Foundation, Inc., * |
| 18 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * |
| 19 | ***************************************************************************/ |
| 20 | |
| 21 | #pragma once |
| 22 | |
| 23 | #include <QGraphicsItem> |
| 24 | |
| 25 | class PathSortercxx . . $ PathSorter# |
| 26 | { |
| 27 | public: |
| 28 | PathSortercxx . . $ PathSorter#PathSorter(49f6e7a06ebc5aa8).( ); |
| 29 | PathSortercxx . . $ PathSorter#PathSorter(dcc77b921aa1e136).(const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths, qrealcxx . . $ qreal# mediaheight); |
| 30 | virtual ~cxx . . $ PathSorter#`~PathSorter`(49f6e7a06ebc5aa8).PathSortercxx . . $ PathSorter#( ); |
| 31 | |
| 32 | void getQListcxx . . $ PathSorter#getQList(dc1c4aa334aff080). (const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths); |
| 33 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> Sortcxx . . $ PathSorter#Sort(5dd9053a288285ea). (const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths); |
| 34 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> Sortcxx . . $ PathSorter#Sort(90068b3bf70c4f3b). () {return Sortcxx . . $ QList#QList(b1a5d2b9a710f6d1).(pathToSortcxx . . $ PathSorter#pathToSort.);} |
| 35 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> UnSortcxx . . $ PathSorter#UnSort(5dd9053a288285ea). (const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths); |
| 36 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> UnSortcxx . . $ PathSorter#UnSort(90068b3bf70c4f3b). () {return UnSortcxx . . $ QList#QList(b1a5d2b9a710f6d1).(pathToSortcxx . . $ PathSorter#pathToSort.);} |
| 37 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> BestSortcxx . . $ PathSorter#BestSort(5dd9053a288285ea). (const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths); |
| 38 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> BestSortcxx . . $ PathSorter#BestSort(90068b3bf70c4f3b). () {return BestSortcxx . . $ QList#QList(b1a5d2b9a710f6d1).(pathToSortcxx . . $ QList#QList(3d2301cfd89f773a).);} |
| 39 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> GroupTSPcxx . . $ PathSorter#GroupTSP(bab62d46a170b8f6).(const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths1, int groups = 3); |
| 40 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> GroupTSPcxx . . $ PathSorter#GroupTSP(9b14d3720227d5d5).(int groups = 3) {return GroupTSPcxx . . $ QList#QList(b1a5d2b9a710f6d1).(pathToSortcxx . . $ QList#QList(3d2301cfd89f773a)., groups);} |
| 41 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> BbSortcxx . . $ PathSorter#BbSort(5dd9053a288285ea). (const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths); |
| 42 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> BbSortcxx . . $ PathSorter#BbSort(90068b3bf70c4f3b). () {return BbSortcxx . . $ QList#QList(b1a5d2b9a710f6d1).(pathToSortcxx . . $ PathSorter#pathToSort.);} |
| 43 | void setMediaHeightcxx . . $ PathSorter#setMediaHeight(ba8836b59fb42830).(qrealcxx . . $ qreal# mediaheight); |
| 44 | private: |
| 45 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> pathToSortcxx . . $ PathSorter#pathToSort.; |
| 46 | qrealcxx . . $ qreal# mediaHeightcxx . . $ PathSorter#mediaHeight.; |
| 47 | |
| 48 | protected: |
| 49 | |
| 50 | private: |
| 51 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> MyFakeTSPcxx . . $ PathSorter#MyFakeTSP(5dd9053a288285ea).(const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths); |
| 52 | qrealcxx . . $ qreal# getDistancecxx . . $ PathSorter#getDistance(211c8febea50d70).(const QPolygonFcxx . . $ QPolygonF# &p1, const QPolygonFcxx . . $ QPolygonF# &p2); |
| 53 | qrealcxx . . $ qreal# getTotalDistancecxx . . $ PathSorter#getTotalDistance(a9b2f4e48644aa01).(const QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> inpaths, int maxdepth = 0); |
| 54 | static bool MyLessThancxx . . $ PathSorter#MyLessThan(e28f9b805ec53022).(const QPolygonFcxx . . $ QPolygonF# &p1, const QPolygonFcxx . . $ QPolygonF# &p2); |
| 55 | }; |
| 56 |