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