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 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /externals/g4tools/include/tools/sg/rep (Version 11.3.0) and /externals/g4tools/include/tools/sg/rep (Version 11.1)


  1 // Copyright (C) 2010, Guy Barrand. All rights      1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
  2 // See the file tools.license for terms.            2 // See the file tools.license for terms.
  3                                                     3 
  4 #ifndef tools_sg_rep                                4 #ifndef tools_sg_rep
  5 #define tools_sg_rep                                5 #define tools_sg_rep
  6                                                     6 
  7 namespace tools {                                   7 namespace tools {
  8 namespace sg {                                      8 namespace sg {
  9                                                     9 
 10 class rep_bin1D {                                  10 class rep_bin1D {
 11 public:                                            11 public:
 12   rep_bin1D()                                      12   rep_bin1D()
 13   :m_x_min(0),m_x_max(0)                           13   :m_x_min(0),m_x_max(0)
 14   ,m_v_min(0),m_val(0)                             14   ,m_v_min(0),m_val(0)
 15   ,m_ratio(0)                                      15   ,m_ratio(0)
 16   //,fSeparator(0)                                 16   //,fSeparator(0)
 17   {}                                               17   {}
 18                                                    18 
 19   rep_bin1D(float aXmin,float aXmax,float aVmi     19   rep_bin1D(float aXmin,float aXmax,float aVmin,float aVal)
 20   :m_x_min(aXmin),m_x_max(aXmax)                   20   :m_x_min(aXmin),m_x_max(aXmax)
 21   ,m_v_min(aVmin),m_val(aVal)                      21   ,m_v_min(aVmin),m_val(aVal)
 22   ,m_ratio(0)                                      22   ,m_ratio(0)
 23   //,fSeparator(0)                                 23   //,fSeparator(0)
 24   {}                                               24   {}
 25 public:                                            25 public:
 26   rep_bin1D(const rep_bin1D& a_from)               26   rep_bin1D(const rep_bin1D& a_from)
 27   :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_     27   :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_max)
 28   ,m_v_min(a_from.m_v_min),m_val(a_from.m_val)     28   ,m_v_min(a_from.m_v_min),m_val(a_from.m_val)
 29   ,m_ratio(a_from.m_ratio)                         29   ,m_ratio(a_from.m_ratio)
 30   //,fSeparator(0)                                 30   //,fSeparator(0)
 31   {}                                               31   {}
 32   rep_bin1D& operator=(const rep_bin1D& a_from     32   rep_bin1D& operator=(const rep_bin1D& a_from){
 33     m_x_min = a_from.m_x_min;                      33     m_x_min = a_from.m_x_min;
 34     m_x_max = a_from.m_x_max;                      34     m_x_max = a_from.m_x_max;
 35     m_v_min = a_from.m_v_min;                      35     m_v_min = a_from.m_v_min;
 36     m_val = a_from.m_val;                          36     m_val = a_from.m_val;
 37     m_ratio = a_from.m_ratio;                      37     m_ratio = a_from.m_ratio;
 38     return *this;                                  38     return *this;
 39   }                                                39   }
 40 public:                                            40 public:
 41   float m_x_min;                                   41   float m_x_min;
 42   float m_x_max;                                   42   float m_x_max;
 43   float m_v_min;                                   43   float m_v_min;
 44   float m_val;                                     44   float m_val;
 45   float m_ratio;                                   45   float m_ratio;
 46   //SoSeparator* fSeparator;                       46   //SoSeparator* fSeparator;
 47 };                                                 47 };
 48                                                    48 
 49 class rep_bin2D {                                  49 class rep_bin2D {
 50 public:                                            50 public:
 51   rep_bin2D()                                      51   rep_bin2D()
 52   :m_x_min(0),m_x_max(0)                           52   :m_x_min(0),m_x_max(0)
 53   ,m_y_min(0),m_y_max(0)                           53   ,m_y_min(0),m_y_max(0)
 54   ,m_val(0),m_ratio(0)                             54   ,m_val(0),m_ratio(0)
 55   ,fI(0),fJ(0){}                                   55   ,fI(0),fJ(0){}
 56                                                    56 
 57   rep_bin2D(float aXmin,float aXmax,               57   rep_bin2D(float aXmin,float aXmax,
 58             float aYmin,float aYmax,               58             float aYmin,float aYmax,
 59             float aVal,int aI,int aJ)              59             float aVal,int aI,int aJ)
 60   :m_x_min(aXmin),m_x_max(aXmax)                   60   :m_x_min(aXmin),m_x_max(aXmax)
 61   ,m_y_min(aYmin),m_y_max(aYmax)                   61   ,m_y_min(aYmin),m_y_max(aYmax)
 62   ,m_val(aVal)                                     62   ,m_val(aVal)
 63   ,m_ratio(0)                                      63   ,m_ratio(0)
 64   ,fI(aI),fJ(aJ)                                   64   ,fI(aI),fJ(aJ)
 65   {}                                               65   {}
 66 public:                                            66 public:
 67   float m_x_min;                                   67   float m_x_min;
 68   float m_x_max;                                   68   float m_x_max;
 69   float m_y_min;                                   69   float m_y_min;
 70   float m_y_max;                                   70   float m_y_max;
 71   float m_val;                                     71   float m_val;
 72   float m_ratio;                                   72   float m_ratio;
 73   int fI;                                          73   int fI;
 74   int fJ;                                          74   int fJ;
 75 };                                                 75 };
 76                                                    76 
 77 class rep_top_face2D {                             77 class rep_top_face2D {
 78 public:                                            78 public:
 79   rep_top_face2D()                                 79   rep_top_face2D()
 80   :m_x_min(0),m_x_max(0)                           80   :m_x_min(0),m_x_max(0)
 81   ,m_y_min(0),m_y_max(0)                           81   ,m_y_min(0),m_y_max(0)
 82   ,m_v1(0),m_v2(0),m_v3(0),m_v4(0)                 82   ,m_v1(0),m_v2(0),m_v3(0),m_v4(0)
 83   ,m_ratio(0)                                      83   ,m_ratio(0)
 84   {}                                               84   {}
 85                                                    85 
 86   rep_top_face2D(float a_xmin,float a_xmax,        86   rep_top_face2D(float a_xmin,float a_xmax,
 87                  float a_ymin,float a_ymax,        87                  float a_ymin,float a_ymax,
 88                  float a_v1,float a_v2,float a     88                  float a_v1,float a_v2,float a_v3,float a_v4)
 89   :m_x_min(a_xmin),m_x_max(a_xmax)                 89   :m_x_min(a_xmin),m_x_max(a_xmax)
 90   ,m_y_min(a_ymin),m_y_max(a_ymax)                 90   ,m_y_min(a_ymin),m_y_max(a_ymax)
 91   ,m_v1(a_v1),m_v2(a_v2),m_v3(a_v3),m_v4(a_v4)     91   ,m_v1(a_v1),m_v2(a_v2),m_v3(a_v3),m_v4(a_v4)
 92   ,m_ratio(0)                                      92   ,m_ratio(0)
 93   {}                                               93   {}
 94                                                    94 
 95   rep_top_face2D(const rep_top_face2D& a_from)     95   rep_top_face2D(const rep_top_face2D& a_from)
 96   :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_     96   :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_max)
 97   ,m_y_min(a_from.m_y_min),m_y_max(a_from.m_y_     97   ,m_y_min(a_from.m_y_min),m_y_max(a_from.m_y_max)
 98   ,m_v1(a_from.m_v1),m_v2(a_from.m_v2),m_v3(a_     98   ,m_v1(a_from.m_v1),m_v2(a_from.m_v2),m_v3(a_from.m_v3),m_v4(a_from.m_v4)
 99   ,m_ratio(a_from.m_ratio)                         99   ,m_ratio(a_from.m_ratio)
100   {}                                              100   {}
101                                                   101 
102   rep_top_face2D& operator=(const rep_top_face    102   rep_top_face2D& operator=(const rep_top_face2D& a_from){
103     m_x_min = a_from.m_x_min;                     103     m_x_min = a_from.m_x_min;
104     m_x_max = a_from.m_x_max;                     104     m_x_max = a_from.m_x_max;
105     m_y_min = a_from.m_y_min;                     105     m_y_min = a_from.m_y_min;
106     m_y_max = a_from.m_y_max;                     106     m_y_max = a_from.m_y_max;
107     m_v1 = a_from.m_v1;                           107     m_v1 = a_from.m_v1;
108     m_v2 = a_from.m_v2;                           108     m_v2 = a_from.m_v2;
109     m_v3 = a_from.m_v3;                           109     m_v3 = a_from.m_v3;
110     m_v4 = a_from.m_v4;                           110     m_v4 = a_from.m_v4;
111     m_ratio = a_from.m_ratio;                     111     m_ratio = a_from.m_ratio;
112     return *this;                                 112     return *this;
113   }                                               113   }
114 public:                                           114 public:
115   float m_x_min;                                  115   float m_x_min;
116   float m_x_max;                                  116   float m_x_max;
117   float m_y_min;                                  117   float m_y_min;
118   float m_y_max;                                  118   float m_y_max;
119   float m_v1;                                     119   float m_v1;
120   float m_v2;                                     120   float m_v2;
121   float m_v3;                                     121   float m_v3;
122   float m_v4;                                     122   float m_v4;
123   float m_ratio;                                  123   float m_ratio;
124 };                                                124 };
125                                                   125 
126 class rep_box {                                   126 class rep_box {
127 public:                                           127 public:
128   rep_box(float a_pos,float a_width,bool a_log    128   rep_box(float a_pos,float a_width,bool a_log)
129   :m_pos(a_pos),m_width(a_width),m_log(a_log){    129   :m_pos(a_pos),m_width(a_width),m_log(a_log){}
130                                                   130 
131   rep_box(const rep_box& a_from)                  131   rep_box(const rep_box& a_from)
132   :m_pos(a_from.m_pos),m_width(a_from.m_width)    132   :m_pos(a_from.m_pos),m_width(a_from.m_width),m_log(a_from.m_log){}
133                                                   133 
134   rep_box& operator=(const rep_box& a_from) {     134   rep_box& operator=(const rep_box& a_from) {
135     m_pos = a_from.m_pos;                         135     m_pos = a_from.m_pos;
136     m_width = a_from.m_width;                     136     m_width = a_from.m_width;
137     m_log = a_from.m_log;                         137     m_log = a_from.m_log;
138     return *this;                                 138     return *this;
139   }                                               139   }
140 public:                                           140 public:
141   float m_pos;                                    141   float m_pos;
142   float m_width;                                  142   float m_width;
143   bool m_log;                                     143   bool m_log;
144 };                                                144 };
145                                                   145 
146 }}                                                146 }}
147                                                   147 
148 #endif                                            148 #endif