[d74077] | 1 | /*
|
---|
| 2 | * BoundaryMaps.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Jul 29, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef BOUNDARYMAPS_HPP_
|
---|
| 9 | #define BOUNDARYMAPS_HPP_
|
---|
| 10 |
|
---|
[88b400] | 11 | class BoundaryPointSet;
|
---|
| 12 | class BoundaryLineSet;
|
---|
| 13 | class BoundaryTriangleSet;
|
---|
| 14 | class BoundaryPolygonSet;
|
---|
| 15 | class CandidateForTesselation;
|
---|
| 16 | class TesselPoint;
|
---|
[d74077] | 17 |
|
---|
[88b400] | 18 | #include <list>
|
---|
| 19 | #include <map>
|
---|
| 20 | #include <set>
|
---|
[d74077] | 21 |
|
---|
[88b400] | 22 | typedef std::map <int, int> IndexToIndex;
|
---|
[d74077] | 23 |
|
---|
[6b5657] | 24 | // ============= TesselPoint maps ======================== //
|
---|
| 25 | typedef std::pair < double, class TesselPoint * > TesselPointDistancePair;
|
---|
| 26 | typedef std::multimap < double, class TesselPoint * > TesselPointDistanceMap;
|
---|
| 27 | typedef std::pair < TesselPointDistanceMap::iterator, bool > TesselPointDistanceTestPair;
|
---|
| 28 |
|
---|
| 29 | typedef std::list <TesselPoint *> TesselPointList;
|
---|
| 30 | typedef std::set <TesselPoint *> TesselPointSet;
|
---|
| 31 |
|
---|
| 32 | typedef std::list<std::list <TesselPoint *> *> ListOfTesselPointList;
|
---|
| 33 |
|
---|
| 34 | // ============= BoundaryPointSet maps ======================== //
|
---|
[88b400] | 35 | typedef std::map < int, class BoundaryPointSet * > PointMap;
|
---|
| 36 | typedef std::set < class BoundaryPointSet * > PointSet;
|
---|
| 37 | typedef std::list < class BoundaryPointSet * > PointList;
|
---|
| 38 | typedef std::pair < int, class BoundaryPointSet * > PointPair;
|
---|
| 39 | typedef std::pair < PointMap::iterator, bool > PointTestPair;
|
---|
[d74077] | 40 |
|
---|
[6b5657] | 41 | typedef std::multimap <double, class BoundaryPointSet * > DistanceToPointMap;
|
---|
| 42 | typedef std::pair <double, class BoundaryPointSet * > DistanceToPointPair;
|
---|
[d74077] | 43 |
|
---|
[6b5657] | 44 | // ============= BoundaryLineSet maps ======================== //
|
---|
[88b400] | 45 | typedef std::multimap < int, class BoundaryLineSet * > LineMap;
|
---|
| 46 | typedef std::set < class BoundaryLineSet * > LineSet;
|
---|
| 47 | typedef std::list < class BoundaryLineSet * > LineList;
|
---|
| 48 | typedef std::pair < int, class BoundaryLineSet * > LinePair;
|
---|
| 49 | typedef std::pair < LineMap::iterator, bool > LineTestPair;
|
---|
[d74077] | 50 |
|
---|
[6b5657] | 51 | // ============= BoundaryTriangleSet maps ======================== //
|
---|
[88b400] | 52 | typedef std::map < int, class BoundaryTriangleSet * > TriangleMap;
|
---|
| 53 | typedef std::set < class BoundaryTriangleSet * > TriangleSet;
|
---|
| 54 | typedef std::list < class BoundaryTriangleSet * > TriangleList;
|
---|
| 55 | typedef std::pair < int, class BoundaryTriangleSet * > TrianglePair;
|
---|
| 56 | typedef std::pair < TriangleMap::iterator, bool > TriangleTestPair;
|
---|
[d74077] | 57 |
|
---|
[6b5657] | 58 | // ============= BoundaryPolygonSet maps ======================== //
|
---|
[88b400] | 59 | typedef std::map < int, class BoundaryPolygonSet * > PolygonMap;
|
---|
| 60 | typedef std::set < class BoundaryPolygonSet * > PolygonSet;
|
---|
| 61 | typedef std::list < class BoundaryPolygonSet * > PolygonList;
|
---|
[d74077] | 62 |
|
---|
[6b5657] | 63 | // ============= CandidateForTesselation maps ======================== //
|
---|
| 64 | typedef std::list <class CandidateForTesselation *> CandidateList;
|
---|
| 65 | typedef std::map <class BoundaryLineSet *, class CandidateForTesselation *> CandidateMap;
|
---|
| 66 |
|
---|
| 67 | // ============= Various maps ======================== //
|
---|
| 68 | typedef std::map <double, TesselPointDistancePair > Boundaries;
|
---|
| 69 | typedef std::pair<double, TesselPointDistancePair > BoundariesPair;
|
---|
| 70 | typedef std::pair< Boundaries::iterator, bool> BoundariesTestPair;
|
---|
[d74077] | 71 |
|
---|
[88b400] | 72 | typedef std::multimap <double, std::pair < PointMap::iterator, PointMap::iterator> > DistanceMultiMap;
|
---|
| 73 | typedef std::pair <double, std::pair < PointMap::iterator, PointMap::iterator> > DistanceMultiMapPair;
|
---|
| 74 |
|
---|
[d74077] | 75 | enum centers {Opt, OtherOpt};
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 | #endif /* BOUNDARYMAPS_HPP_ */
|
---|