Changeset 2250 in Sophya for trunk/SophyaPI/PIGcont/picntools.cc
- Timestamp:
- Nov 7, 2002, 11:12:39 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIGcont/picntools.cc
r1919 r2250 70 70 } 71 71 72 72 73 /* --Methode-- */ 73 74 void PICnTools::HidePICnTools() … … 130 131 bsy = 0.85*bsy; spy = 0.85*spy; 131 132 132 mLab[0] = new PILabel(this, " Couleurs des contours", 2*bsx, 1.25*bsy, cpx, cpy);133 mLab[0] = new PILabel(this, " Couleurs ", 2*bsx, 1.25*bsy, cpx, cpy); 133 134 mLab[0]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 134 135 … … 199 200 200 201 201 202 202 cpx = 2*spx; // current position 203 203 cpy += spy+bsy; … … 274 274 cpx = 2*spx; 275 275 cpy += spy+bsy; 276 mLab[1] = new PILabel(this, " Label des contours ", 2*bsx, 1.25*bsy, cpx, cpy);276 mLab[1] = new PILabel(this, " Labels ", 2*bsx, 1.25*bsy, cpx, cpy); 277 277 mLab[1]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 278 278 cpx += spx+2*bsx; … … 334 334 cpx = 2*spx; 335 335 cpy += spy+bsyo; 336 mLab[2] = new PILabel(this, " Options de calcul des contours", 3*bsx, bsy, cpx, cpy);336 mLab[2] = new PILabel(this, " params du calcul ", 3*bsx, bsy, cpx, cpy); 337 337 mLab[2]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); 338 338 … … 357 357 cpx = 2*spx; 358 358 359 mLab[3] = new PILabel(this, " # Contours", bsx, bsy, cpx, cpy);359 mLab[3] = new PILabel(this, "Nombre", bsx, bsy, cpx, cpy); 360 360 mLab[3]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); 361 361 cpx += spx+bsx; … … 484 484 mCkb[1]->SetState(mCurCDrw->IsMarkOn()); 485 485 mCkb[2]->SetState(mCurCDrw->IsLabelOn()); 486 486 if(mCkb[2]->GetState()==false){ 487 mOpt[4]->SetUnSensitive(); 488 mOpt[6]->SetUnSensitive(); 489 mOpt[7]->SetUnSensitive(); 490 }else { 491 mOpt[4]->SetSensitive(); 492 mOpt[6]->SetSensitive(); 493 mOpt[7]->SetSensitive(); 494 } 495 496 497 if(mCkb[1]->GetState()==false) { 498 mOpt[3]->SetUnSensitive(); 499 mOpt[2]->SetUnSensitive(); 500 }else{ 501 mOpt[3]->SetSensitive(); 502 mOpt[2]->SetSensitive(); 503 } 504 505 506 if(mCkb[0]->GetState()==false) 507 mOpt[5]->SetUnSensitive(); 508 else 509 mOpt[5]->SetSensitive(); 487 510 488 511 int ii,jj,kk; 489 512 PIColors fc = dr->GetGraphicAtt().GetFgColor(); 490 513 for(kk=0; kk<MYNMXCOLORS; kk++) 491 if (fc == cols[kk]) { mOpt[0]->SetValue(100+kk); break; } 514 if (fc == cols[kk]) 515 { mOpt[0]->SetValue(100+kk); break; } 516 517 492 518 CMapId cmi = dr->GetGraphicAtt().GetColMapId(); 493 if (cmi == CMAP_OTHER) mOpt[1]->SetValue(200); 494 else for(kk=0; kk<PIColorMap::NumberStandardColorMaps(); kk++) 495 if (cmi == PIColorMap::GetStandardColorMapId(kk)) { mOpt[1]->SetValue(201+kk); break; } 519 double zmin=0; 520 double zmax=1.; 521 if(mCurCDrw!=NULL){ 522 zmin = mCurCDrw->Zmin(); 523 zmax = mCurCDrw->Zmax(); 524 } 525 526 if (cmi == CMAP_OTHER) { 527 mOpt[1]->SetValue(200); 528 mCurCDrw->GetGraphicAtt().SetColMapId(CMAP_OTHER); 529 cmapv->SetColMapId(CMAP_OTHER,false, zmin , zmax,true); 530 }else for(kk=0; kk<PIColorMap::NumberStandardColorMaps(); kk++) 531 if (cmi == PIColorMap::GetStandardColorMapId(kk)) { 532 mOpt[1]->SetValue(201+kk); 533 cmapv->SetColMapId(PIColorMap::GetStandardColorMapId(kk),false, zmin , zmax,true); 534 break; 535 } 536 496 537 PIMarker mk = dr->GetGraphicAtt().GetMarker(); 497 538 for(kk=0; kk<12; kk++) … … 682 723 if (k == 0){ 683 724 mCurCDrw->GetGraphicAtt().SetColMapId(CMAP_OTHER); 684 725 cmapv->SetColMapId(CMAP_OTHER,false, zmin , zmax,true); 726 685 727 }else{ 686 728 mCurCDrw->GetGraphicAtt().SetColMapId(PIColorMap::GetStandardColorMapId(k-1)); … … 729 771 if (k == 0){ 730 772 cmapv->SetColMapId(CMAP_OTHER,false, zmin , zmax,true); 773 731 774 }else{ 775 732 776 cmapv->SetColMapId(PIColorMap::GetStandardColorMapId(k-1),false , zmin , zmax,true); 733 777 } … … 738 782 if(mCkb[0]->GetState()==false) 739 783 mOpt[5]->SetUnSensitive(); 740 else 784 else 741 785 mOpt[5]->SetSensitive(); 742 786
Note:
See TracChangeset
for help on using the changeset viewer.