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 | class BoundaryPointSet;
|
---|
12 | class BoundaryLineSet;
|
---|
13 | class BoundaryTriangleSet;
|
---|
14 | class BoundaryPolygonSet;
|
---|
15 | class CandidateForTesselation;
|
---|
16 | class TesselPoint;
|
---|
17 |
|
---|
18 | #include <list>
|
---|
19 | #include <map>
|
---|
20 | #include <set>
|
---|
21 |
|
---|
22 | typedef std::map <int, int> IndexToIndex;
|
---|
23 |
|
---|
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 ======================== //
|
---|
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;
|
---|
40 |
|
---|
41 | typedef std::multimap <double, class BoundaryPointSet * > DistanceToPointMap;
|
---|
42 | typedef std::pair <double, class BoundaryPointSet * > DistanceToPointPair;
|
---|
43 |
|
---|
44 | // ============= BoundaryLineSet maps ======================== //
|
---|
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;
|
---|
50 |
|
---|
51 | // ============= BoundaryTriangleSet maps ======================== //
|
---|
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;
|
---|
57 |
|
---|
58 | // ============= BoundaryPolygonSet maps ======================== //
|
---|
59 | typedef std::map < int, class BoundaryPolygonSet * > PolygonMap;
|
---|
60 | typedef std::set < class BoundaryPolygonSet * > PolygonSet;
|
---|
61 | typedef std::list < class BoundaryPolygonSet * > PolygonList;
|
---|
62 |
|
---|
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;
|
---|
71 |
|
---|
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 |
|
---|
75 | enum centers {Opt, OtherOpt};
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 | #endif /* BOUNDARYMAPS_HPP_ */
|
---|