31 using namespace GMap3d;
33 CParameterSew::CParameterSew(
int ANbRef) :
42 for (
int i=0; i<4; ++i)
44 FLWSew[i] = AParam.FLWSew[i];
45 FSewPosCoef[i] = AParam.FSewPosCoef[i];
46 FDisplayAlpha[i] = AParam.FDisplayAlpha[i];
93 AStream<<
"CParameterSew:"<<endl;
95 AStream<<
" LineWidth0: "<<AParameter.FLWSew[0]<<endl;
96 AStream<<
" LineWidth1: "<<AParameter.FLWSew[1]<<endl;
97 AStream<<
" LineWidth2: "<<AParameter.FLWSew[2]<<endl;
98 AStream<<
" LineWidth3: "<<AParameter.FLWSew[3]<<endl;
100 AStream<<
" PosCoef0: "<<AParameter.FSewPosCoef[0]<<endl;
101 AStream<<
" PosCoef1: "<<AParameter.FSewPosCoef[1]<<endl;
102 AStream<<
" PosCoef2: "<<AParameter.FSewPosCoef[2]<<endl;
103 AStream<<
" PosCoef3: "<<AParameter.FSewPosCoef[3]<<endl;
105 AStream<<
" Display0: "<<AParameter.FDisplayAlpha[0]<<endl;
106 AStream<<
" Display1: "<<AParameter.FDisplayAlpha[1]<<endl;
107 AStream<<
" Display2: "<<AParameter.FDisplayAlpha[2]<<endl;
108 AStream<<
" Display3: "<<AParameter.FDisplayAlpha[3]<<endl;
110 AStream<<
" Color0: "<<AParameter.FCLSew[0][0]<<
" "
111 <<AParameter.FCLSew[0][1]<<
" "<<AParameter.FCLSew[0][2]<<endl;
112 AStream<<
" Color1: "<<AParameter.FCLSew[1][0]<<
" "
113 <<AParameter.FCLSew[1][1]<<
" "<<AParameter.FCLSew[1][2]<<endl;
114 AStream<<
" Color2: "<<AParameter.FCLSew[2][0]<<
" "
115 <<AParameter.FCLSew[2][1]<<
" "<<AParameter.FCLSew[2][2]<<endl;
116 AStream<<
" Color3: "<<AParameter.FCLSew[3][0]<<
" "
117 <<AParameter.FCLSew[3][1]<<
" "<<AParameter.FCLSew[3][2]<<endl;
128 AStream>>tmp; assert ( !strcmp(tmp,
"CParameterSew:") );
130 AStream>>tmp; assert ( !strcmp(tmp,
"LineWidth0:") );
131 AStream>>AParameter.FLWSew[0];
132 AStream>>tmp; assert ( !strcmp(tmp,
"LineWidth1:") );
133 AStream>>AParameter.FLWSew[1];
134 AStream>>tmp; assert ( !strcmp(tmp,
"LineWidth2:") );
135 AStream>>AParameter.FLWSew[2];
136 AStream>>tmp; assert ( !strcmp(tmp,
"LineWidth3:") );
137 AStream>>AParameter.FLWSew[3];
139 AStream>>tmp; assert ( !strcmp(tmp,
"PosCoef0:") );
140 AStream>>AParameter.FSewPosCoef[0];
141 AStream>>tmp; assert ( !strcmp(tmp,
"PosCoef1:") );
142 AStream>>AParameter.FSewPosCoef[1];
143 AStream>>tmp; assert ( !strcmp(tmp,
"PosCoef2:") );
144 AStream>>AParameter.FSewPosCoef[2];
145 AStream>>tmp; assert ( !strcmp(tmp,
"PosCoef3:") );
146 AStream>>AParameter.FSewPosCoef[3];
148 AStream>>tmp; assert ( !strcmp(tmp,
"Display0:") );
149 AStream>>AParameter.FDisplayAlpha[0];
150 AStream>>tmp; assert ( !strcmp(tmp,
"Display1:") );
151 AStream>>AParameter.FDisplayAlpha[1];
152 AStream>>tmp; assert ( !strcmp(tmp,
"Display2:") );
153 AStream>>AParameter.FDisplayAlpha[2];
154 AStream>>tmp; assert ( !strcmp(tmp,
"Display3:") );
155 AStream>>AParameter.FDisplayAlpha[3];
157 AStream>>tmp; assert ( !strcmp(tmp,
"Color0:") );
158 AStream>>AParameter.FCLSew[0][0]>>AParameter.FCLSew[0][1]
159 >>AParameter.FCLSew[0][2];
160 AStream>>tmp; assert ( !strcmp(tmp,
"Color1:") );
161 AStream>>AParameter.FCLSew[1][0]>>AParameter.FCLSew[1][1]
162 >>AParameter.FCLSew[1][2];
163 AStream>>tmp; assert ( !strcmp(tmp,
"Color2:") );
164 AStream>>AParameter.FCLSew[2][0]>>AParameter.FCLSew[2][1]
165 >>AParameter.FCLSew[2][2];
166 AStream>>tmp; assert ( !strcmp(tmp,
"Color3:") );
167 AStream>>AParameter.FCLSew[3][0]>>AParameter.FCLSew[3][1]
168 >>AParameter.FCLSew[3][2];
179 assert(0<=ADimension && ADimension<=3);
180 return FLWSew[ADimension];
184 assert(0<=ADimension && ADimension<=3);
185 if (FLWSew[ADimension]!=AValue)
188 FLWSew[ADimension]= AValue;
194 assert(0<=ADimension && ADimension<=3);
195 return FSewPosCoef[ADimension];
199 assert(0<=ADimension && ADimension<=3);
200 if (FSewPosCoef[ADimension]!=AValue)
203 FSewPosCoef[ADimension]= AValue;
209 assert(0<=ADimension && ADimension<=3);
210 assert(0<=AIndice && AIndice<=2);
211 return FCLSew[ADimension][AIndice];
215 assert(0<=ADimension && ADimension<=3);
216 assert(0<=AIndice && AIndice<=2);
217 if (FCLSew[ADimension][AIndice]!=AValue)
220 FCLSew[ADimension][AIndice]= AValue;
225 assert(0<=ADimension && ADimension<=3);
226 return FCLSew[ADimension];
229 float AValue1,
float AValue2)
231 assert(0<=ADimension && ADimension<=3);
232 if ( FCLSew[ADimension][0]!=AValue0 ||
233 FCLSew[ADimension][1]!=AValue1 ||
234 FCLSew[ADimension][2]!=AValue2 )
237 FCLSew[ADimension][0]= AValue0;
238 FCLSew[ADimension][1]= AValue1;
239 FCLSew[ADimension][2]= AValue2;
243 {
setCLSew(ADimension,ATab[0],ATab[1],ATab[2]); }
247 assert(0<=AIndex && AIndex<=3);
248 return FDisplayAlpha[AIndex];
253 assert(0<=AIndex && AIndex<=3);
254 if ( FDisplayAlpha[AIndex]!=AValue)
257 FDisplayAlpha[AIndex]= AValue;
263 assert(0<=AIndex && AIndex<=3);
265 FDisplayAlpha[AIndex]= !FDisplayAlpha[AIndex];