Changeset 2547 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Jun 2, 2004, 3:23:24 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pintup3d.cc
r2545 r2547 252 252 253 253 if ( (i > 0) && connectPts ) // On relie les points ... 254 g3->DrawLine3D( xl*mScx, yl*mScy, zl*mScz, xp*mScx, yp*mScy, zp*mScz);254 g3->DrawLine3D(ScaleX(xl), ScaleY(yl), ScaleZ(zl), ScaleX(xp), ScaleY(yp), ScaleZ(zp)); 255 255 nok++; 256 256 if ( xebK >= 0 ) { 257 257 xer = mNT->GetCell(i, xebK); 258 g3->DrawLine3D( (xp-xer)*mScx, yp*mScy, zp*mScz, (xp+xer)*mScx, yp*mScy, zp*mScz);258 g3->DrawLine3D(ScaleX(xp-xer), ScaleY(yp), ScaleZ(zp), ScaleX(xp+xer), ScaleY(yp), ScaleZ(zp) ); 259 259 } 260 260 if ( yebK >= 0 ) { 261 261 yer = mNT->GetCell(i, yebK); 262 g3->DrawLine3D( xp*mScx, (yp-yer)*mScy, zp*mScz, xp*mScx, (yp+yer)*mScy, zp*mScz);262 g3->DrawLine3D(ScaleX(xp), ScaleY(yp-yer), ScaleZ(zp), ScaleX(xp), ScaleY(yp+yer), ScaleZ(zp) ); 263 263 } 264 264 if ( zebK >= 0 ) { 265 265 zer = mNT->GetCell(i, zebK); 266 g3->DrawLine3D( xp*mScx, yp*mScy, (zp-zer)*mScz, xp*mScx, yp*mScy, (zp+zer)*mScz);266 g3->DrawLine3D(ScaleX(xp), ScaleY(yp), ScaleZ(zp-zer), ScaleX(xp), ScaleY(yp), ScaleZ(zp+zer)); 267 267 } 268 268 // Trace du marker 269 269 if ((wK >= 0)||(lK < 0)||(mmrk != PI_NotDefMarker)) 270 g3->DrawMarker3D( xp*mScx, yp*mScy, zp*mScz);270 g3->DrawMarker3D(ScaleX(xp), ScaleY(yp), ScaleZ(zp)); 271 271 // Trace eventuel du label 272 if (lK >= 0) g3->DrawString3D( xp*mScx, yp*mScy, zp*mScz,272 if (lK >= 0) g3->DrawString3D(ScaleX(xp), ScaleY(yp), ScaleZ(zp), 273 273 mNT->GetCelltoString(i, lK).c_str()); 274 274 } … … 295 295 // on herite. (Pas obligatoire) on decode donc ici les attributs de 296 296 // couleur, fontes ... 297 int ndec1 = PIDrawer ::DecodeOptionString(opt, rmdecopt);297 int ndec1 = PIDrawer3D::DecodeOptionString(opt, rmdecopt); 298 298 if(optsz1-ndec1<1) return(ndec1); // si tout a ete decode 299 299 … … 313 313 UseSizeScale(true, nbn); 314 314 } 315 else if (opts == "rescalexy") aScxy = true;316 else if (opts == "norescalexy") aScxy = false;317 else if (opts == "rescalez") aScz = true;318 else if (opts == "norescalez") aScz = false;319 315 else { 320 316 // Si option non decode … … 332 328 int PINTuple3D::OptionToString(vector<string> & opt) const 333 329 { 334 PIDrawer ::OptionToString(opt);330 PIDrawer3D::OptionToString(opt); 335 331 336 332 if(connectPts) opt.push_back("connectpoints"); … … 346 342 } else opt.push_back("nosizescale"); 347 343 348 if(aScxy) opt.push_back("rescalexy");349 else opt.push_back("norescalexy");350 351 if(aScz) opt.push_back("rescalez");352 else opt.push_back("norescalez");353 354 344 return 1; 355 345 } … … 369 359 info += " colorscale/nocolorscale (Use color scale for weight) \n"; 370 360 info += " sizescale/sizescale=nbins/nosizescale (Use marker size for weight) \n"; 371 info += " rescalexy / norescalexy rescalez / norescalez \n";372 info += " and usual color/line/marker/... attribute decoding \n";373 361 // On recupere ensuite la chaine info de la classe de base 374 PIDrawer ::GetOptionsHelpInfo(info);362 PIDrawer3D::GetOptionsHelpInfo(info); 375 363 return; 376 364 }
Note:
See TracChangeset
for help on using the changeset viewer.