Changeset 1905 in Sophya


Ignore:
Timestamp:
Feb 18, 2002, 11:41:28 PM (24 years ago)
Author:
ansari
Message:

Adaptation a l'introduction de la classe PIGraphicAtt - Reza 18/02/2002

Location:
trunk/SophyaPI
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIGcont/Makefile

    r1857 r1905  
    44 
    55all: $(LIB)libPIGcont.a
    6 $(LIB)libPIGcont.a : $(OBJ)gp_alloc.o $(OBJ)gp_axis.o $(OBJ)gp_contour.o  $(OBJ)picntools.o $(OBJ)pigncont.o
     6$(LIB)libPIGcont.a : $(OBJ)gp_alloc.o $(OBJ)gp_axis.o $(OBJ)gp_contour.o $(OBJ)picntools.o $(OBJ)pigncont.o
    77        $(AR) $(ARFLAGS)  $@ $($(ARARGS))
    88ifeq ($(CXX),cxx)
     
    6161 $(INC)parradapter.h \
    6262 $(INC)lut.h \
     63 $(INC)pieldrw.h \
    6364 $(INC)pidrawer.h \
     65 $(INC)pigratt.h \
    6466 $(INC)pipixmapx.h \
    6567 $(INC)pipixmapgen.h \
     
    8688 $(INC)ntuple.h \
    8789 $(INC)ntupintf.h gp_contour.h gp_types.h \
    88  gpc_misc.h gp_dynarray.h gp_graph3d.h gp_alloc.h 
     90 gpc_misc.h gp_dynarray.h gp_graph3d.h gp_alloc.h
    8991$(OBJ)pigncont.o: pigncont.cc $(INC)machdefs.h \
    9092 $(INC)histos.h \
     
    149151 $(INC)parradapter.h \
    150152 $(INC)lut.h \
     153 $(INC)pieldrw.h \
    151154 $(INC)pidrawer.h \
     155 $(INC)pigratt.h \
    152156 $(INC)pipixmapx.h \
    153157 $(INC)pipixmapgen.h \
     
    165169 $(INC)periodic.h \
    166170 $(INC)piscdrawwdg.h gp_contour.h gp_types.h \
    167  gpc_misc.h gp_dynarray.h gp_graph3d.h gp_alloc.h 
     171 gpc_misc.h gp_dynarray.h gp_graph3d.h gp_alloc.h
  • trunk/SophyaPI/PIGcont/picntools.cc

    r1857 r1905  
    313313mOpt[7]->AppendItem("Small FontSz", 802);
    314314mOpt[7]->AppendItem("Normal FontSz", 803);
    315 mOpt[7]->AppendItem("Big FontSz", 804);
     315mOpt[7]->AppendItem("Large FontSz", 804);
    316316mOpt[7]->AppendItem("Huge FontSz", 805);
    317317mOpt[7]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
     
    441441                               PI_ItalicFont, PI_BoldItalicFont };
    442442static PIFontSize fntsz[6] = { PI_NotDefFontSize, PI_TinySizeFont, PI_SmallSizeFont,
    443                                PI_NormalSizeFont, PI_BigSizeFont, PI_HugeSizeFont };
     443                               PI_NormalSizeFont, PI_LargeSizeFont, PI_HugeSizeFont };
    444444
    445445/* --Methode-- */
     
    487487
    488488int ii,jj,kk;
    489 PIColors fc = dr->GetFgColAtt();
     489PIColors fc = dr->GetGraphicAtt().GetFgColor();
    490490for(kk=0; kk<MYNMXCOLORS; kk++)
    491491  if (fc == cols[kk])  { mOpt[0]->SetValue(100+kk);  break; }   
    492 CMapId cmi = dr->GetColMapId();
     492CMapId cmi = dr->GetGraphicAtt().GetColMapId();
    493493if (cmi == CMAP_OTHER)  mOpt[1]->SetValue(200);
    494494else for(kk=0; kk<PIColorMap::NumberStandardColorMaps(); kk++)
    495495  if (cmi == PIColorMap::GetStandardColorMapId(kk)) { mOpt[1]->SetValue(201+kk);  break; } 
    496 PIMarker mk = dr->GetMarker();   
     496PIMarker mk = dr->GetGraphicAtt().GetMarker();   
    497497for(kk=0; kk<12; kk++)
    498498  if (mk == mrk[kk])   { mOpt[2]->SetValue(300+kk);  break; }
    499 kk = dr->GetMarkerSz();
     499kk = dr->GetGraphicAtt().GetMarkerSz();
    500500if (kk < 1)  kk = 1;
    501501if (kk > 15) kk = 15;
    502502if (kk%2 == 0) kk++;
    503503mOpt[3]->SetValue(400+kk);
    504 PIFontName fnm = dr->GetFontName();
    505 PIFontAtt fat = dr->GetFontAtt();
    506 PIFontSize fsz = dr->GetFontSz();
     504PIFontName fnm = dr->GetGraphicAtt().GetFontName();
     505PIFontAtt fat = dr->GetGraphicAtt().GetFontAtt();
     506PIFontSize fsz = dr->GetGraphicAtt().GetFontSz();
    507507for(ii=0; ii<5; ii++)
    508508  if (fnm ==  fntname[ii]) break;
     
    519519mOpt[7]->SetValue(800+jj);
    520520
    521 PILineAtt lat = dr->GetLineAtt();
     521PILineAtt lat = dr->GetGraphicAtt().GetLineAtt();
    522522for(kk=0; kk<10; kk++)
    523523  if (lat == line[kk])   { mOpt[5]->SetValue(600+kk);  break; }
     
    635635  k = mOpt[0]->GetValue()-100; // -> COULEUR
    636636  if ( (k < 0) || (k >= MYNMXCOLORS) )  k = 0;
    637   mCurCDrw->SetColAtt(cols[k]);
     637  mCurCDrw->GetGraphicAtt().SetColAtt(cols[k]);
    638638  double zmin=0;
    639639  double zmax=1.;
     
    645645  k = mOpt[1]->GetValue()-200; // --> COLOR MAP
    646646  if (k == 0){
    647     mCurCDrw->SetColMapId(CMAP_OTHER);
     647    mCurCDrw->GetGraphicAtt().SetColMapId(CMAP_OTHER);
    648648   
    649649  }else{
    650     mCurCDrw->SetColMapId(PIColorMap::GetStandardColorMapId(k-1));
     650    mCurCDrw->GetGraphicAtt().SetColMapId(PIColorMap::GetStandardColorMapId(k-1));
    651651    cmapv->SetColMapId(PIColorMap::GetStandardColorMapId(k-1),false, zmin , zmax,true);
    652652  }
     
    655655  kk =  mOpt[3]->GetValue()-400; // marker SIZE
    656656  if ( (kk < 1) || (kk > 27) )  kk = 1;
    657   mCurCDrw->SetMarkerAtt(kk, mrk[k]);
     657  mCurCDrw->GetGraphicAtt().SetMarkerAtt(kk, mrk[k]);
    658658
    659659  ii =  (mOpt[4]->GetValue()-500);
    660660  jj =  (mOpt[6]->GetValue()-700);
    661661  kk =  (mOpt[7]->GetValue()-800);
    662   mCurCDrw->SetFont(fntname[ii], fntsz[kk], fntatt[jj]);
     662  mCurCDrw->GetGraphicAtt().SetFontAtt(fntname[ii], fntsz[kk], fntatt[jj]);
    663663
    664664  k =  mOpt[5]->GetValue()-600;
    665665  if ( (k < 0) || (k > 9) )  k = 0;
    666   mCurCDrw->SetLineAtt(line[k]);
     666  mCurCDrw->GetGraphicAtt().SetLineAtt(line[k]);
    667667
    668668  if (refr)
  • trunk/SophyaPI/PIGcont/pigncont.cc

    r1857 r1905  
    546546  bool Invx, Invy, Exy;
    547547  PIColorMap * cmap = NULL;
    548   if(mCmapid !=CMAP_OTHER ){
    549     cmap = new PIColorMap(mCmapid);
     548  CMapId mcmapid = GetGraphicAtt().GetColMapId();
     549  if(mcmapid !=CMAP_OTHER ){
     550    cmap = new PIColorMap(mcmapid);
    550551  }
    551552  int numdr = 0;
     
    568569    // choix de la couleur
    569570   
    570     g->SelForeground(mFCol);
    571     if(mCmapid !=CMAP_OTHER ){
     571    g->SelForeground(GetGraphicAtt().GetFgColor());
     572    if(mcmapid !=CMAP_OTHER ){
    572573      if(_zmax-_zmin!=0){
    573574        int kc = ((lev - _zmin)/(_zmax-_zmin))*cmap->NCol();   
     
    579580    if(IsMarkOn()==true){
    580581     
    581       g->SelMarker(mMSz,mMrk);
     582      g->SelMarker(GetGraphicAtt().GetMarkerSz(), GetGraphicAtt().GetMarker());
    582583      g->DrawMarkers(xx,yy,npts);
    583584    }
     
    585586    if(mLineOn==true){
    586587     
    587       g->SelLine(mLAtt);
     588      g->SelLine(GetGraphicAtt().GetLineAtt());
    588589      g->DrawPolygon(xx,yy,npts,false);
    589590    }
     
    595596      char strg[10];
    596597      sprintf(strg,"%g",lev);
    597       PIFont myfont(mFName);
    598       myfont.SetFontAtt(mFAtt);
    599       myfont.SetFontSz(mFSz);
     598      PIFont myfont(GetGraphicAtt().GetFont());
    600599     
    601600      g->SelFont(myfont);
  • trunk/SophyaPI/PIext/Makefile

    r1858 r1905  
    5858 $(INC)parradapter.h \
    5959 $(INC)lut.h \
    60  $(INC)pidrawer.h \
     60 $(INC)pieldrw.h \
     61 $(INC)pidrawer.h \
     62 $(INC)pigratt.h \
    6163 $(INC)pipixmapx.h \
    6264 $(INC)pipixmapgen.h \
     
    143145 $(INC)parradapter.h \
    144146 $(INC)lut.h \
    145  $(INC)pidrawer.h \
     147 $(INC)pieldrw.h \
     148 $(INC)pidrawer.h \
     149 $(INC)pigratt.h \
    146150 $(INC)pipixmapx.h \
    147151 $(INC)pipixmapgen.h \
     
    165169 $(INC)gp_dynarray.h \
    166170 $(INC)gp_graph3d.h \
    167  $(INC)gp_alloc.h \
    168  nomgadapter.h \
     171 $(INC)gp_alloc.h nomgadapter.h \
    169172 $(INC)generalfit.h \
    170173 $(INC)tvector.h \
     
    209212 $(INC)pievthandler.h \
    210213 $(INC)psfile.h \
     214 $(INC)pigratt.h \
    211215 $(INC)parradapter.h \
    212216 $(INC)lut.h \
     
    245249 $(INC)pifilechogen.h \
    246250 $(INC)piimage.h \
     251 $(INC)pieldrw.h \
    247252 $(INC)pipixmapx.h \
    248253 $(INC)pipixmapgen.h \
     
    303308 $(INC)parradapter.h \
    304309 $(INC)lut.h \
    305  $(INC)pidrawer.h \
     310 $(INC)pieldrw.h \
     311 $(INC)pidrawer.h \
     312 $(INC)pigratt.h \
    306313 $(INC)pipixmapx.h \
    307314 $(INC)pipixmapgen.h \
     
    342349 $(INC)pievthandler.h \
    343350 $(INC)psfile.h \
     351 $(INC)pigratt.h \
    344352 $(INC)parradapter.h \
    345353 $(INC)lut.h \
     
    378386 $(INC)pifilechogen.h \
    379387 $(INC)piimage.h \
     388 $(INC)pieldrw.h \
    380389 $(INC)pipixmapx.h \
    381390 $(INC)pipixmapgen.h \
     
    410419 $(INC)fitslocalmap.h \
    411420 $(INC)localmap.h pitvmaad.h \
    412  $(INC)piscdrawwdg.h \
     421 $(INC)piyfxdrw.h \
    413422 $(INC)pisurfdr.h pipodrw.h \
    414423 $(INC)histos2.h \
     
    438447 $(INC)pievthandler.h \
    439448 $(INC)psfile.h \
     449 $(INC)pigratt.h \
    440450 $(INC)parradapter.h \
    441451 $(INC)lut.h \
     
    480490 $(INC)pievthandler.h \
    481491 $(INC)psfile.h \
     492 $(INC)pigratt.h \
    482493 $(INC)parradapter.h \
    483494 $(INC)lut.h \
     
    528539 $(INC)pievthandler.h \
    529540 $(INC)psfile.h \
     541 $(INC)pigratt.h \
    530542 $(INC)parradapter.h \
    531543 $(INC)lut.h \
     
    566578 $(INC)piwindowgen.h \
    567579 $(INC)picontainerx.h \
    568  $(INC)picontainergen.h pipodrw.h servnobjm.h \
     580 $(INC)picontainergen.h \
     581 $(INC)pieldrw.h pipodrw.h servnobjm.h \
    569582 $(INC)pdlmgr.h dlftypes.h \
    570583 $(INC)objfitter.h \
     
    600613 $(INC)pievthandler.h \
    601614 $(INC)psfile.h \
     615 $(INC)pigratt.h \
    602616 $(INC)parradapter.h \
    603617 $(INC)lut.h \
     
    653667 $(INC)pievthandler.h \
    654668 $(INC)psfile.h \
     669 $(INC)pigratt.h \
    655670 $(INC)parradapter.h \
    656671 $(INC)lut.h \
     
    717732 $(INC)pievthandler.h \
    718733 $(INC)psfile.h \
     734 $(INC)pigratt.h \
    719735 $(INC)parradapter.h \
    720736 $(INC)lut.h \
     
    763779 $(INC)pievthandler.h \
    764780 $(INC)psfile.h \
     781 $(INC)pigratt.h \
    765782 $(INC)parradapter.h \
    766783 $(INC)lut.h \
     
    782799 $(INC)perrors.h \
    783800 $(INC)fmath.h pitvmaad.h \
    784  $(INC)piscdrawwdg.h \
    785  $(INC)pibwdgx.h \
    786  $(INC)pigraphps.h \
    787  $(INC)pistdwdgx.h \
    788  $(INC)pistdwdggen.h \
    789  $(INC)piwindowx.h \
    790  $(INC)piwindowgen.h \
    791  $(INC)picontainerx.h \
    792  $(INC)picontainergen.h \
     801 $(INC)piyfxdrw.h \
    793802 $(INC)fioarr.h \
    794803 $(INC)fitstarray.h \
     
    843852 $(INC)pievthandler.h \
    844853 $(INC)psfile.h \
    845  $(INC)parradapter.h \
    846  $(INC)lut.h \
    847  $(INC)piscdrawwdg.h \
    848  $(INC)pibwdgx.h \
    849  $(INC)pigraphps.h \
    850  $(INC)pistdwdgx.h \
    851  $(INC)pistdwdggen.h \
    852  $(INC)piwindowx.h \
    853  $(INC)piwindowgen.h \
    854  $(INC)picontainerx.h \
    855  $(INC)picontainergen.h pitvmaad.h \
     854 $(INC)pigratt.h \
     855 $(INC)parradapter.h \
     856 $(INC)lut.h \
     857 $(INC)piyfxdrw.h pitvmaad.h \
    856858 $(INC)fitstarray.h \
    857859 $(INC)fitsfile.h \
     
    900902 $(INC)pievthandler.h \
    901903 $(INC)psfile.h \
     904 $(INC)pigratt.h \
    902905 $(INC)parradapter.h \
    903906 $(INC)lut.h \
     
    925928 $(INC)pifilechogen.h \
    926929 $(INC)piimage.h \
     930 $(INC)pieldrw.h \
    927931 $(INC)pipixmapx.h \
    928932 $(INC)pipixmapgen.h \
     
    976980 $(INC)parradapter.h \
    977981 $(INC)lut.h \
    978  $(INC)pidrawer.h \
     982 $(INC)pieldrw.h \
     983 $(INC)pidrawer.h \
     984 $(INC)pigratt.h \
    979985 $(INC)pipixmapx.h \
    980986 $(INC)pipixmapgen.h \
     
    10591065 $(INC)pievthandler.h \
    10601066 $(INC)psfile.h \
     1067 $(INC)pigratt.h \
    10611068 $(INC)parradapter.h \
    10621069 $(INC)lut.h \
     
    10821089 $(INC)pifilechogen.h \
    10831090 $(INC)piimage.h \
     1091 $(INC)pieldrw.h \
    10841092 $(INC)pipixmapx.h \
    10851093 $(INC)pipixmapgen.h \
     
    11321140 $(INC)pigraphuc.h \
    11331141 $(INC)pievthandler.h \
    1134  $(INC)psfile.h
     1142 $(INC)psfile.h \
     1143 $(INC)pigratt.h
    11351144$(OBJ)pigfd2.o: pigfd2.cc pigfd2.h \
    11361145 $(INC)generaldata.h \
     
    11731182 $(INC)pievthandler.h \
    11741183 $(INC)psfile.h \
     1184 $(INC)pigratt.h \
     1185 $(INC)pieldrw.h \
    11751186 $(INC)pigraph3d.h \
    11761187 $(INC)pibwdgx.h \
     
    12131224 $(INC)pievthandler.h \
    12141225 $(INC)psfile.h \
     1226 $(INC)pigratt.h \
    12151227 $(INC)hisprof.h
    1216 $(OBJ)pihisto2d.o: pihisto2d.cc $(INC)piapplgen.h \
    1217  $(INC)pimsghandler.h \
    1218  $(INC)machdefs.h \
    1219  $(INC)pisysdep.h \
     1228$(OBJ)pihisto2d.o: pihisto2d.cc $(INC)piapplx.h \
     1229 $(INC)piapplgen.h \
     1230 $(INC)pimsghandler.h \
    12201231 $(INC)picontainerx.h \
    12211232 $(INC)picontainergen.h \
     
    12681279 $(INC)piwindowgen.h \
    12691280 $(INC)pidrawer.h \
     1281 $(INC)pigratt.h \
     1282 $(INC)pieldrw.h \
    12701283 $(INC)nbrandom.h \
    12711284 $(INC)srandgen.h
     
    13141327 $(INC)parradapter.h \
    13151328 $(INC)lut.h \
    1316  $(INC)pidrawer.h \
     1329 $(INC)pieldrw.h \
     1330 $(INC)pidrawer.h \
     1331 $(INC)pigratt.h \
    13171332 $(INC)pipixmapx.h \
    13181333 $(INC)pipixmapgen.h \
     
    13921407 $(INC)pievthandler.h \
    13931408 $(INC)psfile.h \
     1409 $(INC)pigratt.h \
     1410 $(INC)pieldrw.h \
    13941411 $(INC)pigraph3d.h \
    13951412 $(INC)pibwdgx.h \
     
    14141431 $(INC)pigraphuc.h \
    14151432 $(INC)pievthandler.h \
    1416  $(INC)psfile.h
     1433 $(INC)psfile.h \
     1434 $(INC)pigratt.h
    14171435$(OBJ)pipodrw.o: pipodrw.cc pipodrw.h \
    14181436 $(INC)machdefs.h \
     
    14341452 $(INC)pievthandler.h \
    14351453 $(INC)psfile.h \
     1454 $(INC)pigratt.h \
    14361455 $(INC)parradapter.h \
    14371456 $(INC)lut.h \
     
    15031522 $(INC)parradapter.h \
    15041523 $(INC)lut.h \
    1505  $(INC)pidrawer.h \
     1524 $(INC)pieldrw.h \
     1525 $(INC)pidrawer.h \
     1526 $(INC)pigratt.h \
    15061527 $(INC)pipixmapx.h \
    15071528 $(INC)pipixmapgen.h \
     
    15811602 $(INC)parradapter.h \
    15821603 $(INC)lut.h \
    1583  $(INC)pidrawer.h \
     1604 $(INC)pieldrw.h \
     1605 $(INC)pidrawer.h \
     1606 $(INC)pigratt.h \
    15841607 $(INC)pipixmapx.h \
    15851608 $(INC)pipixmapgen.h \
     
    15921615 $(INC)pistzwin.h \
    15931616 $(INC)piperiodx.h \
    1594  $(INC)periodic.h pihisto2d.h \
    1595  $(INC)histos2.h \
    1596  $(INC)peida.h \
    1597  $(INC)utils.h \
    1598  $(INC)fmath.h \
    1599  $(INC)histos.h \
    1600  $(INC)piscdrawwdg.h \
     1617 $(INC)periodic.h \
    16011618 $(INC)piimgtools.h \
    16021619 $(INC)pidrwtools.h \
    1603  $(INC)piaxestools.h piinit.h \
     1620 $(INC)piaxestools.h \
     1621 $(INC)piscdrawwdg.h piinit.h \
    16041622 $(INC)sambainit.h \
    16051623 $(INC)skymapinit.h \
     
    16521670 $(INC)pievthandler.h \
    16531671 $(INC)psfile.h \
     1672 $(INC)pigratt.h \
    16541673 $(INC)parradapter.h \
    16551674 $(INC)lut.h \
     
    16881707 $(INC)pifilechogen.h \
    16891708 $(INC)piimage.h \
     1709 $(INC)pieldrw.h \
    16901710 $(INC)pipixmapx.h \
    16911711 $(INC)pipixmapgen.h \
     
    17061726 $(INC)histos2.h \
    17071727 $(INC)hisprof.h \
    1708  $(INC)piscdrawwdg.h \
     1728 $(INC)piyfxdrw.h \
    17091729 $(INC)pisurfdr.h pintuple.h pintup3d.h \
    17101730 pipodrw.h
  • trunk/SophyaPI/PIext/nobjmgr.cc

    r1547 r1905  
    2626#include "tvector.h"
    2727#include "pitvmaad.h"
    28 #include "piscdrawwdg.h"
     28#include "piyfxdrw.h"
    2929#endif
    3030
  • trunk/SophyaPI/PIext/nommatvecadapter.cc

    r1315 r1905  
    66
    77#include "nommatvecadapter.h"
    8 #include "piscdrawwdg.h"
     8#include "piyfxdrw.h"
    99#include "pipodrw.h"
    1010
  • trunk/SophyaPI/PIext/nomtarradapter.cc

    r1321 r1905  
    1111#include "tvector.h"
    1212#include "pitvmaad.h"
    13 #include "piscdrawwdg.h"
     13#include "piyfxdrw.h"
    1414
    1515#include "fioarr.h"
  • trunk/SophyaPI/PIext/nomtmatvecadapter.cc

    r1321 r1905  
    1111#include "objfitter.h"
    1212#include "nomtmatvecadapter.h"
    13 #include "piscdrawwdg.h"
     13#include "piyfxdrw.h"
    1414#include "pitvmaad.h"
    1515
  • trunk/SophyaPI/PIext/pigfd1.cc

    r339 r1905  
    6060if(VarX<0) return;
    6161// On plotte les barre d'erreurs ligne demandee explicitement
    62 if(mLAtt!=PI_NotDefLineAtt) SelectErrBar(true,true);
     62if(GetGraphicAtt().GetLineAtt()!=PI_NotDefLineAtt) SelectErrBar(true,true);
    6363double xp,yp,er;
    6464for (int i=0; i<mGFD->NData(); i++) {
  • trunk/SophyaPI/PIext/pigfd2.cc

    r440 r1905  
    7373
    7474// On plotte les barre d'erreurs ligne demandee explicitement
    75 if(mLAtt!=PI_NotDefLineAtt) SelectErrBar(true,true,true);
     75if(GetGraphicAtt().GetLineAtt()!=PI_NotDefLineAtt) SelectErrBar(true,true,true);
    7676
    7777#if defined(CC_HAS_RTTI_SUPPORT)
     
    8181#endif
    8282
    83 if (mLAtt == PI_NotDefLineAtt)  g3->SelLine(PI_ThinLine);
     83if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt)  g3->SelLine(PI_ThinLine);
    8484
    8585double xp,yp,zp,er;
  • trunk/SophyaPI/PIext/pihisto.cc

    r1856 r1905  
    7777  if (!mHisto)  return; 
    7878
    79   if(mMrk != PI_NotDefMarker ||  (typeid(*mHisto) == typeid(HProf)) ) {
     79  if((GetGraphicAtt().GetMarker() != PI_NotDefMarker) || 
     80     (typeid(*mHisto) == typeid(HProf)) ) {
    8081    // Marqeurs definis OU HProf => marqueurs+Erreurs si il y en a
    8182    mHisto->UpdateHisto(); // pour le cas ou c'est un HProf
    82     if(mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine);
     83    if(GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g->SelLine(PI_ThinLine);
    8384    double x1,y1, x2,y2;
    8485    double bw = mHisto->BinWidth();
     
    102103    oktrace = true;
    103104  }
    104   if(mLAtt != PI_NotDefLineAtt) {
     105  if(GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) {
    105106    double x1,y1, x2, y2;
    106107    x1 = mHisto->BinLowEdge(0);
     
    138139  //  if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    139140  g->SelLine(PI_ThinLine);
    140   g->SelFontSz((YMax() - YMin())/30, mFAtt);
     141  g->SelFontSz((YMax() - YMin())/30);
    141142
    142143  // La hauteur de la cellule
  • trunk/SophyaPI/PIext/pihisto2d.cc

    r1884 r1905  
    253253
    254254// gestion epaisseur de ligne
    255 if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     255if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    256256
    257257// gestion Markers ou plot avec des points.
     
    389389{
    390390  if (!mHisto) return;
    391   if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    392   g->SelFontSz((YMax() - YMin())/30, mFAtt);
     391  if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     392  g->SelFontSz((YMax() - YMin())/30);
    393393
    394394  // La hauteur de la cellule
  • trunk/SophyaPI/PIext/pintup3d.cc

    r1856 r1905  
    179179#endif
    180180
    181 if (mLAtt == PI_NotDefLineAtt)  g3->SelLine(PI_ThinLine);
     181if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt)  g3->SelLine(PI_ThinLine);
    182182
    183183//  Pour tracer des markers avec taille fonction de Wt (poids)
     
    186186int msz,sz;
    187187
     188PIMarker mmrk = GetGraphicAtt().GetMarker();
    188189PIMarker mrk;
    189 if (wK >= 0)  mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_CircleMarker;
    190 else   mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_DotMarker;
    191 msz = mMSz;
     190if (wK >= 0)  mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_CircleMarker;
     191else   mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_DotMarker;
     192msz = GetGraphicAtt().GetMarkerSz();
    192193if (msz < 1) msz = 1;
    193194g->SelMarker(msz, mrk);
     
    200201  yp = mNT->GetCell(i, yK);
    201202  zp = mNT->GetCell(i, zK);
    202   if ( (i > 0) && (mLAtt != PI_NotDefLineAtt) )   // On relie les points ...
     203  if ( (i > 0) &&
     204       (GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) )   // On relie les points ...
    203205    g3->DrawLine3D(xl, yl, zl, xp, yp, zp);
    204206  nok++;
     
    225227  }
    226228  // Trace du marker
    227   if ((wK >= 0)||(lK < 0)||(mMrk != PI_NotDefMarker))  g3->DrawMarker3D(xp, yp, zp);
     229  if ((wK >= 0)||(lK < 0)||(mmrk != PI_NotDefMarker))  g3->DrawMarker3D(xp, yp, zp);
    228230  // Trace eventuel du label
    229231  if (lK >= 0) g3->DrawString3D(xp, yp, zp, mNT->GetCelltoString(i, lK).c_str());
  • trunk/SophyaPI/PIext/pintuple.cc

    r1856 r1905  
    149149if (axesFlags != kAxesNone) DrawAxes(g);
    150150if ( (xK < 0) || (yK < 0) )  return;
    151 if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     151if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    152152
    153153//  Pour tracer des markers avec taille fonction de Wt (poids)
     
    156156int msz,sz;
    157157
     158PIMarker mmrk = GetGraphicAtt().GetMarker();
    158159PIMarker mrk;
    159 if (wK >= 0)  mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_CircleMarker;
    160 else   mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_DotMarker;
    161 msz = mMSz;
     160if (wK >= 0)  mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_CircleMarker;
     161else   mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_DotMarker;
     162msz = GetGraphicAtt().GetMarkerSz();;
    162163if (msz < 1) msz = 1;
    163164g->SelMarker(msz, mrk);
     
    179180  nok++;
    180181  if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) )  continue;
    181   if ( (i > 0) && (mLAtt != PI_NotDefLineAtt) )   // On relie les points ...
    182     g->DrawLine(xl, yl, xp, yp);
     182  if ( (i > 0) && (GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) )   
     183    g->DrawLine(xl, yl, xp, yp);  // On relie les points ...
    183184  if ( xebK >= 0 ) {
    184185    xer = mNT->GetCell(i, xebK);
     
    199200  }
    200201  // Trace du marker
    201   if ((wK >= 0)||(lK < 0)||(mMrk != PI_NotDefMarker))  g->DrawMarker(xp, yp);
     202  if ((wK >= 0)||(lK < 0)||(mmrk != PI_NotDefMarker))  g->DrawMarker(xp, yp);
    202203  // Trace eventuel du label
    203204  if (lK >= 0) g->DrawString(xp, yp, mNT->GetCelltoString(i, lK).c_str());
     
    206207
    207208if (stats) { // Trace de stats
    208   g->SelFontSz((YMax() - YMin())/30, mFAtt); 
     209  g->SelFontSz((YMax() - YMin())/30); 
    209210  // La hauteur de la cellule
    210211  PIGrCoord a,d;
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r1856 r1905  
    523523
    524524// Changement d'attributs graphiques courants du drawer
    525 if (mFCol != PI_NotDefColor) scd->SetColAtt(mFCol, mBCol);
    526 if (mLAtt != PI_NotDefLineAtt) scd->SetLineAtt(mLAtt);
    527 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) scd->SetFontAtt(mFSz, mFAtt);
    528 if ( mFName != PI_DefaultFont ) scd->SetFont(mFName, scd->GetFontSz(), scd->GetFontAtt());
    529 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) scd->SetMarkerAtt(mMSz, mMrk);
    530 if ( mCmapid != CMAP_OTHER ) scd->SetColMapId(mCmapid);
     525if (mFCol != PI_NotDefColor) scd->GetGraphicAtt().SetColAtt(mFCol, mBCol);
     526if (mLAtt != PI_NotDefLineAtt) scd->GetGraphicAtt().SetLineAtt(mLAtt);
     527if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
     528  scd->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
     529if ( mFName != PI_DefaultFont )
     530  scd->GetGraphicAtt().SetFontAtt(mFName, scd->GetGraphicAtt().GetFontSz(),
     531                               scd->GetGraphicAtt().GetFontAtt());
     532if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) )
     533  scd->GetGraphicAtt().SetMarkerAtt(mMSz, mMrk);
     534if ( mCmapid != CMAP_OTHER ) scd->GetGraphicAtt().SetColMapId(mCmapid);
    531535
    532536
     
    576580scw->SetAxesFlags(mAxesFlags);
    577581// Fonte de trace d'axe
    578 scw->BaseDrawer()->SetFont(mFName, mFSz, mFAtt);
     582scw->BaseDrawer()->GetGraphicAtt().SetFontAtt(mFName, mFSz, mFAtt);
    579583/*
    580584if (typeid(*scd) != typeid(PIHisto2D))
     
    607611
    608612// Changement d'attributs graphiques courants du drawer
    609 if (mFCol != PI_NotDefColor) dr3->SetColAtt(mFCol, mBCol);
    610 if (mLAtt != PI_NotDefLineAtt) dr3->SetLineAtt(mLAtt);
    611 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) dr3->SetFontAtt(mFSz, mFAtt);
    612 if ( mFName != PI_DefaultFont ) dr3->SetFont(mFName, dr3->GetFontSz(), dr3->GetFontAtt());
    613 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) dr3->SetMarkerAtt(mMSz, mMrk);
    614 if ( mCmapid != CMAP_OTHER ) dr3->SetColMapId(mCmapid);
     613if (mFCol != PI_NotDefColor) dr3->GetGraphicAtt().SetColAtt(mFCol, mBCol);
     614if (mLAtt != PI_NotDefLineAtt) dr3->GetGraphicAtt().SetLineAtt(mLAtt);
     615if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
     616  dr3->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
     617if ( mFName != PI_DefaultFont )
     618  dr3->GetGraphicAtt().SetFontAtt(mFName, dr3->GetGraphicAtt().GetFontSz(),
     619                                  dr3->GetGraphicAtt().GetFontAtt());
     620if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) )
     621  dr3->GetGraphicAtt().SetMarkerAtt(mMSz, mMrk);
     622if ( mCmapid != CMAP_OTHER ) dr3->GetGraphicAtt().SetColMapId(mCmapid);
    615623
    616624if ( (!mLastWdg) && ( (opt == Disp_Same) || (opt == Disp_Inset) ) )  opt = Disp_Next;
     
    669677
    670678if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
    671   eld->SetFontAtt(mFSz, mFAtt);
     679  eld->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
    672680if ( mFName != PI_DefaultFont )
    673   eld->SetFont(mFName, eld->GetFontSz(), eld->GetFontAtt());
     681  eld->GetGraphicAtt().SetFontAtt(mFName, eld->GetGraphicAtt().GetFontSz(),
     682                                  eld->GetGraphicAtt().GetFontAtt());
    674683eld->ElAddText(xp,yp,txt.c_str(),mFCol);
    675684eld->Refresh();
     
    729738
    730739if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
    731   eld->SetFontAtt(mFSz, mFAtt);
     740  eld->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
    732741if ( mFName != PI_DefaultFont )
    733   eld->SetFont(mFName, eld->GetFontSz(), eld->GetFontAtt());
     742  eld->GetGraphicAtt().SetFontAtt(mFName, eld->GetGraphicAtt().GetFontSz(),
     743                                  eld->GetGraphicAtt().GetFontAtt());
    734744eld->SetTitles(titletop, titlebottom);
    735745eld->Refresh();
  • trunk/SophyaPI/PIext/servnobjm.cc

    r1888 r1905  
    3636#include "hisprof.h"
    3737
    38 #include "piscdrawwdg.h"
     38#include "piyfxdrw.h"
    3939#include "pisurfdr.h"
    4040
     
    15911591gi.a1 = PI_BoldItalicFont;
    15921592GrAfonts["smallbolditalicfont"] = gi;
    1593 gi.a2 = PI_BigSizeFont;
     1593gi.a2 = PI_LargeSizeFont;
    15941594gi.a1 = PI_RomanFont;
    15951595GrAfonts["bigfont"] = gi;
     1596GrAfonts["largefont"] = gi;
    15961597gi.a1 = PI_BoldFont;
    15971598GrAfonts["bigboldfont"] = gi;
    15981599gi.a1 = PI_ItalicFont;
    15991600GrAfonts["bigitalicfont"] = gi;
     1601GrAfonts["largeitalicfont"] = gi;
    16001602gi.a1 = PI_BoldItalicFont;
    16011603GrAfonts["bigbolditalicfont"] = gi;
     1604GrAfonts["largebolditalicfont"] = gi;
    16021605gi.a2 = PI_HugeSizeFont;
    16031606gi.a1 = PI_RomanFont;
Note: See TracChangeset for help on using the changeset viewer.