inlib
1.2.0
|
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved. 00002 // See the file inlib.license for terms. 00003 00004 #ifndef inlib_sg_rep 00005 #define inlib_sg_rep 00006 00007 namespace inlib { 00008 namespace sg { 00009 00010 class rep_bin1D { 00011 public: 00012 rep_bin1D() 00013 :m_x_min(0),m_x_max(0) 00014 ,m_v_min(0),m_val(0) 00015 ,m_ratio(0) 00016 //,fSeparator(0) 00017 {} 00018 00019 rep_bin1D(float aXmin,float aXmax,float aVmin,float aVal) 00020 :m_x_min(aXmin),m_x_max(aXmax) 00021 ,m_v_min(aVmin),m_val(aVal) 00022 ,m_ratio(0) 00023 //,fSeparator(0) 00024 {} 00025 public: 00026 rep_bin1D(const rep_bin1D& a_from) 00027 :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_max) 00028 ,m_v_min(a_from.m_v_min),m_val(a_from.m_val) 00029 ,m_ratio(a_from.m_ratio) 00030 //,fSeparator(0) 00031 {} 00032 rep_bin1D& operator=(const rep_bin1D& a_from){ 00033 m_x_min = a_from.m_x_min; 00034 m_x_max = a_from.m_x_max; 00035 m_v_min = a_from.m_v_min; 00036 m_val = a_from.m_val; 00037 m_ratio = a_from.m_ratio; 00038 return *this; 00039 } 00040 public: 00041 float m_x_min; 00042 float m_x_max; 00043 float m_v_min; 00044 float m_val; 00045 float m_ratio; 00046 //SoSeparator* fSeparator; 00047 }; 00048 00049 class rep_bin2D { 00050 public: 00051 rep_bin2D() 00052 :m_x_min(0),m_x_max(0) 00053 ,m_y_min(0),m_y_max(0) 00054 ,m_val(0),m_ratio(0) 00055 ,fI(0),fJ(0){} 00056 00057 rep_bin2D(float aXmin,float aXmax, 00058 float aYmin,float aYmax, 00059 float aVal,int aI,int aJ) 00060 :m_x_min(aXmin),m_x_max(aXmax) 00061 ,m_y_min(aYmin),m_y_max(aYmax) 00062 ,m_val(aVal) 00063 ,m_ratio(0) 00064 ,fI(aI),fJ(aJ) 00065 {} 00066 public: 00067 float m_x_min; 00068 float m_x_max; 00069 float m_y_min; 00070 float m_y_max; 00071 float m_val; 00072 float m_ratio; 00073 int fI; 00074 int fJ; 00075 }; 00076 00077 /* 00078 class rep_top_face2D { 00079 public: 00080 rep_top_face2D() 00081 :m_x_min(0),m_x_max(0) 00082 ,m_y_min(0),m_y_max(0) 00083 ,m_val1(0),m_val2(0),m_val3(0),m_val4(0){} 00084 00085 rep_top_face2D(float aXmin,float aXmax, 00086 float aYmin,float aYmax, 00087 float aVal1,float aVal2,float aVal3,float aVal4) 00088 :m_x_min(aXmin),m_x_max(aXmax) 00089 ,m_y_min(aYmin),m_y_max(aYmax) 00090 ,m_val1(aVal1),m_val2(aVal2),m_val3(aVal3),m_val4(aVal4){} 00091 public: 00092 float m_x_min; 00093 float m_x_max; 00094 float m_y_min; 00095 float m_y_max; 00096 float m_val1; 00097 float m_val2; 00098 float m_val3; 00099 float m_val4; 00100 }; 00101 */ 00102 00103 class rep_box { 00104 public: 00105 rep_box(float a_pos,float a_width,bool a_log) 00106 :m_pos(a_pos),m_width(a_width),m_log(a_log){} 00107 00108 rep_box(const rep_box& a_from) 00109 :m_pos(a_from.m_pos),m_width(a_from.m_width),m_log(a_from.m_log){} 00110 00111 rep_box& operator=(const rep_box& a_from) { 00112 m_pos = a_from.m_pos; 00113 m_width = a_from.m_width; 00114 m_log = a_from.m_log; 00115 return *this; 00116 } 00117 public: 00118 float m_pos; 00119 float m_width; 00120 bool m_log; 00121 }; 00122 00123 }} 00124 00125 #endif