ParMooN
 All Classes Functions Variables Friends Pages
Mapper.h
1 // =======================================================================
2 // @(#)Mapper.h 1.3 11/15/99
3 //
4 // Class: TMapper
5 // Purpose: mapper for faces of 3D geometric objects
6 //
7 // Author: Volker Behns 25.07.97
8 //
9 // =======================================================================
10 
11 #ifndef __MAPPER__
12 #define __MAPPER__
13 
14 #define N_MAPPER 34
15 enum Mapper {MapTriReg0, MapTriReg1, MapTriReg2,
16  MapTriBis00, MapTriBis01, MapTriBis02,
17  MapTriBis10, MapTriBis11, MapTriBis12,
18  MapTriBis20, MapTriBis21, MapTriBis22,
19  MapTriBis010, MapTriBis011, MapTriBis012,
20  MapTriBis020, MapTriBis021, MapTriBis022,
21  MapTriBis100, MapTriBis101, MapTriBis102,
22  MapTriBis120, MapTriBis121, MapTriBis122,
23  MapTriBis200, MapTriBis201, MapTriBis202,
24  MapTriBis210, MapTriBis211, MapTriBis212,
25  MapQuadReg0, MapQuadReg1, MapQuadReg2, MapQuadReg3};
26 
28 class TMapper
29 {
30  protected:
31  Mapper Type;
32 
34  const int *MapOrigVerts;
36  const int *MapOrigEdges;
37 
39  const int *MapRefVerts;
41  const int *MapRefEdges;
43  const int *MapRefFaces;
44 
45  public:
46  //Constructor
47  TMapper(Mapper which);
48 
49  //Methods
51  Mapper GetType()
52  { return Type; }
53 
55  void GetMapperRef(const int *&MapVerts, const int *&MapFaces)
56  {
57  MapVerts = MapRefVerts;
58  MapFaces = MapRefFaces;
59  }
60 
62  void GetMapperOrig(const int *&MapVerts, const int *&MapEdges)
63  {
64  MapVerts = MapOrigVerts;
65  MapEdges = MapOrigEdges;
66  }
67 };
68 
69 #endif
Definition: Mapper.h:28
void GetMapperRef(const int *&MapVerts, const int *&MapFaces)
Definition: Mapper.h:55
const int * MapRefFaces
Definition: Mapper.h:43
Mapper GetType()
Definition: Mapper.h:51
const int * MapRefVerts
Definition: Mapper.h:39
void GetMapperOrig(const int *&MapVerts, const int *&MapEdges)
Definition: Mapper.h:62
const int * MapOrigEdges
Definition: Mapper.h:36
const int * MapOrigVerts
Definition: Mapper.h:34
const int * MapRefEdges
Definition: Mapper.h:41