| 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 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | class BoundaryPointSet; | 
|---|
| 18 | class BoundaryLineSet; | 
|---|
| 19 | class BoundaryTriangleSet; | 
|---|
| 20 | class BoundaryPolygonSet; | 
|---|
| 21 | class CandidateForTesselation; | 
|---|
| 22 | class TesselPoint; | 
|---|
| 23 |  | 
|---|
| 24 | #include <list> | 
|---|
| 25 | #include <map> | 
|---|
| 26 | #include <set> | 
|---|
| 27 |  | 
|---|
| 28 | typedef std::map <int, int> IndexToIndex; | 
|---|
| 29 |  | 
|---|
| 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 ======================== // | 
|---|
| 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; | 
|---|
| 46 |  | 
|---|
| 47 | typedef std::multimap <double, class BoundaryPointSet * > DistanceToPointMap; | 
|---|
| 48 | typedef std::pair <double, class BoundaryPointSet * > DistanceToPointPair; | 
|---|
| 49 |  | 
|---|
| 50 | // ============= BoundaryLineSet maps ======================== // | 
|---|
| 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; | 
|---|
| 56 |  | 
|---|
| 57 | // ============= BoundaryTriangleSet maps ======================== // | 
|---|
| 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; | 
|---|
| 63 |  | 
|---|
| 64 | // ============= BoundaryPolygonSet maps ======================== // | 
|---|
| 65 | typedef std::map < int, class BoundaryPolygonSet * > PolygonMap; | 
|---|
| 66 | typedef std::set < class BoundaryPolygonSet * > PolygonSet; | 
|---|
| 67 | typedef std::list < class BoundaryPolygonSet * > PolygonList; | 
|---|
| 68 |  | 
|---|
| 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; | 
|---|
| 77 |  | 
|---|
| 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 |  | 
|---|
| 81 | enum centers {Opt, OtherOpt}; | 
|---|
| 82 |  | 
|---|
| 83 |  | 
|---|
| 84 |  | 
|---|
| 85 |  | 
|---|
| 86 | #endif /* BOUNDARYMAPS_HPP_ */ | 
|---|