Overture  Version 25
GeomADTTuple3dInt.h
Go to the documentation of this file.
1 #ifndef GEOM_ADT_TUPLE_3D_INT_H
2 #define GEOM_ADT_TUPLE_3D_INT_H
3 
4 // This class expects a typedef for "real" to be float or double
5 
6 #ifndef processedWithDT
7 #undef GeomADTTuple3dInt
8 #define GeomADTTuple3dInt GeomADTTuple3dInt
9 #undef 12
10 #define 12 (6*2)
11 #endif
12 
13 
14 
15 class GeomADTTuple3dInt // helper class to be used in the GeometricADT3dInt
16 {
17  public:
20  {
21  for( int axis=0; axis<12; axis++ )
22  boundingBox[axis] = x.boundingBox[axis];
23  data = x.data;
24  }
25  GeomADTTuple3dInt(const real *boundingBox_, const real *coords_, int i)
26  {
27  int axis;
28  for( axis=0; axis<12; axis++ )
29  boundingBox[axis] = boundingBox_[axis];
30  for( axis=0; axis<6; axis++ )
31  coords[axis] = coords_[axis];
32  data = i;
33  }
35  {
36  int axis;
37  for( axis=0; axis<12; axis++ )
38  boundingBox[axis] = x.boundingBox[axis];
39  for( axis=0; axis<6; axis++ )
40  coords[axis] = x.coords[axis];
41  data = x.data;
42  return *this;
43  }
45 
46  void setData(const real *boundingBox_, const real *coords_, int i)
47  {
48  int axis;
49  for( axis=0; axis<12; axis++ )
50  boundingBox[axis] = boundingBox_[axis];
51  for( axis=0; axis<6; axis++ )
52  coords[axis] = coords_[axis];
53  data = i;
54  }
55 
58  int data;
59 };
60 
61 #endif