Changeset 1905 in Sophya for trunk/SophyaPI/PIGcont/picntools.cc
- Timestamp:
- Feb 18, 2002, 11:41:28 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIGcont/picntools.cc
r1857 r1905 313 313 mOpt[7]->AppendItem("Small FontSz", 802); 314 314 mOpt[7]->AppendItem("Normal FontSz", 803); 315 mOpt[7]->AppendItem(" BigFontSz", 804);315 mOpt[7]->AppendItem("Large FontSz", 804); 316 316 mOpt[7]->AppendItem("Huge FontSz", 805); 317 317 mOpt[7]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); … … 441 441 PI_ItalicFont, PI_BoldItalicFont }; 442 442 static PIFontSize fntsz[6] = { PI_NotDefFontSize, PI_TinySizeFont, PI_SmallSizeFont, 443 PI_NormalSizeFont, PI_ BigSizeFont, PI_HugeSizeFont };443 PI_NormalSizeFont, PI_LargeSizeFont, PI_HugeSizeFont }; 444 444 445 445 /* --Methode-- */ … … 487 487 488 488 int ii,jj,kk; 489 PIColors fc = dr->Get FgColAtt();489 PIColors fc = dr->GetGraphicAtt().GetFgColor(); 490 490 for(kk=0; kk<MYNMXCOLORS; kk++) 491 491 if (fc == cols[kk]) { mOpt[0]->SetValue(100+kk); break; } 492 CMapId cmi = dr->Get ColMapId();492 CMapId cmi = dr->GetGraphicAtt().GetColMapId(); 493 493 if (cmi == CMAP_OTHER) mOpt[1]->SetValue(200); 494 494 else for(kk=0; kk<PIColorMap::NumberStandardColorMaps(); kk++) 495 495 if (cmi == PIColorMap::GetStandardColorMapId(kk)) { mOpt[1]->SetValue(201+kk); break; } 496 PIMarker mk = dr->Get Marker();496 PIMarker mk = dr->GetGraphicAtt().GetMarker(); 497 497 for(kk=0; kk<12; kk++) 498 498 if (mk == mrk[kk]) { mOpt[2]->SetValue(300+kk); break; } 499 kk = dr->Get MarkerSz();499 kk = dr->GetGraphicAtt().GetMarkerSz(); 500 500 if (kk < 1) kk = 1; 501 501 if (kk > 15) kk = 15; 502 502 if (kk%2 == 0) kk++; 503 503 mOpt[3]->SetValue(400+kk); 504 PIFontName fnm = dr->Get FontName();505 PIFontAtt fat = dr->Get FontAtt();506 PIFontSize fsz = dr->Get FontSz();504 PIFontName fnm = dr->GetGraphicAtt().GetFontName(); 505 PIFontAtt fat = dr->GetGraphicAtt().GetFontAtt(); 506 PIFontSize fsz = dr->GetGraphicAtt().GetFontSz(); 507 507 for(ii=0; ii<5; ii++) 508 508 if (fnm == fntname[ii]) break; … … 519 519 mOpt[7]->SetValue(800+jj); 520 520 521 PILineAtt lat = dr->Get LineAtt();521 PILineAtt lat = dr->GetGraphicAtt().GetLineAtt(); 522 522 for(kk=0; kk<10; kk++) 523 523 if (lat == line[kk]) { mOpt[5]->SetValue(600+kk); break; } … … 635 635 k = mOpt[0]->GetValue()-100; // -> COULEUR 636 636 if ( (k < 0) || (k >= MYNMXCOLORS) ) k = 0; 637 mCurCDrw-> SetColAtt(cols[k]);637 mCurCDrw->GetGraphicAtt().SetColAtt(cols[k]); 638 638 double zmin=0; 639 639 double zmax=1.; … … 645 645 k = mOpt[1]->GetValue()-200; // --> COLOR MAP 646 646 if (k == 0){ 647 mCurCDrw-> SetColMapId(CMAP_OTHER);647 mCurCDrw->GetGraphicAtt().SetColMapId(CMAP_OTHER); 648 648 649 649 }else{ 650 mCurCDrw-> SetColMapId(PIColorMap::GetStandardColorMapId(k-1));650 mCurCDrw->GetGraphicAtt().SetColMapId(PIColorMap::GetStandardColorMapId(k-1)); 651 651 cmapv->SetColMapId(PIColorMap::GetStandardColorMapId(k-1),false, zmin , zmax,true); 652 652 } … … 655 655 kk = mOpt[3]->GetValue()-400; // marker SIZE 656 656 if ( (kk < 1) || (kk > 27) ) kk = 1; 657 mCurCDrw-> SetMarkerAtt(kk, mrk[k]);657 mCurCDrw->GetGraphicAtt().SetMarkerAtt(kk, mrk[k]); 658 658 659 659 ii = (mOpt[4]->GetValue()-500); 660 660 jj = (mOpt[6]->GetValue()-700); 661 661 kk = (mOpt[7]->GetValue()-800); 662 mCurCDrw-> SetFont(fntname[ii], fntsz[kk], fntatt[jj]);662 mCurCDrw->GetGraphicAtt().SetFontAtt(fntname[ii], fntsz[kk], fntatt[jj]); 663 663 664 664 k = mOpt[5]->GetValue()-600; 665 665 if ( (k < 0) || (k > 9) ) k = 0; 666 mCurCDrw-> SetLineAtt(line[k]);666 mCurCDrw->GetGraphicAtt().SetLineAtt(line[k]); 667 667 668 668 if (refr)
Note:
See TracChangeset
for help on using the changeset viewer.