Changeset 1908 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Feb 20, 2002, 6:11:05 PM (24 years ago)
Author:
ansari
Message:

adaptation a PIGraphicAtt - Reza+cmv 20/02/2002

Location:
trunk/SophyaPI/PI/Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/Tests/pist.cc

    r1899 r1908  
    107107PIFontAtt att[4] = { PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_BoldItalicFont};
    108108PIFontSize fsz[5] = { PI_TinySizeFont, PI_SmallSizeFont, PI_NormalSizeFont,
    109                       PI_BigSizeFont, PI_HugeSizeFont };
     109                      PI_LargeSizeFont, PI_HugeSizeFont };
    110110PIFontName fn[4] = { PI_CourierFont, PI_HelveticaFont,
    111111                     PI_TimesFont, PI_SymbolFont};
     
    114114char * attstr[4] = { "RomanFont" , "BoldFont", "ItalicFont", "BoldItalicFont"};
    115115char * fszstr[5] = { "TinySizeFont", "SmallSizeFont", "NormalSizeFont",
    116                       "BigSizeFont", "HugeSizeFont" };
     116                      "LargeSizeFont", "HugeSizeFont" };
    117117
    118118if (g->kind() != PI_PSFileGraphics ) EraseWindow();
     
    246246   break;
    247247 case '4':
    248    mFSize = PI_BigSizeFont;
     248   mFSize = PI_LargeSizeFont;
    249249   break;
    250250 case '5':
     
    289289PIFontAtt att[4] = { PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_BoldItalicFont};
    290290PIFontSize fsz[5] = { PI_TinySizeFont, PI_SmallSizeFont, PI_NormalSizeFont,
    291                       PI_BigSizeFont, PI_HugeSizeFont };
     291                      PI_LargeSizeFont, PI_HugeSizeFont };
    292292PIFontName fn[4] = { PI_CourierFont, PI_HelveticaFont,
    293293                     PI_TimesFont, PI_SymbolFont};
     
    296296char * attstr[4] = { "RomanFont" , "BoldFont", "ItalicFont", "BoldItalicFont"};
    297297char * fszstr[5] = { "TinySizeFont", "SmallSizeFont", "NormalSizeFont",
    298                       "BigSizeFont", "HugeSizeFont" };
     298                      "LargeSizeFont", "HugeSizeFont" };
    299299
    300300if (g->kind() != PI_PSFileGraphics ) EraseWindow();
     
    573573PIFontAtt att[4] = { PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_BoldItalicFont};
    574574PIFontSize fsz[5] = { PI_TinySizeFont, PI_SmallSizeFont, PI_NormalSizeFont,
    575                       PI_BigSizeFont, PI_HugeSizeFont };
     575                      PI_LargeSizeFont, PI_HugeSizeFont };
    576576PIFontName fn[4] = { PI_CourierFont, PI_HelveticaFont,
    577577                     PI_TimesFont, PI_SymbolFont};
     
    580580char * attstr[4] = { "RomanFont" , "BoldFont", "ItalicFont", "BoldItalicFont"};
    581581char * fszstr[5] = { "TinySizeFont", "SmallSizeFont", "NormalSizeFont",
    582                       "BigSizeFont", "HugeSizeFont" };
     582                      "LargeSizeFont", "HugeSizeFont" };
    583583
    584584if (g->kind() != PI_PSFileGraphics ) EraseWindow();
  • trunk/SophyaPI/PI/Tests/pitgr.cc

    r1591 r1908  
    1616#include "pidrawwin.h"
    1717#include "piscdrawwdg.h"
     18#include "piyfxdrw.h"
    1819#include "piimage.h"
    1920#include "parradapter.h"
     
    178179
    179180      PIFuncDrawer* mfd = new PIFuncDrawer(fsinc);
    180       mfd->SetColAtt(PI_Gold);
    181       mfd->SetLineAtt(PI_NormalLine);
     181      mfd->GetGraphicAtt().SetColAtt(PI_Gold);
     182      mfd->GetGraphicAtt().SetLineAtt(PI_NormalLine);
    182183      nbwin++; sprintf(strg,"2D Graphics (PI W %d)", nbwin);
    183184      PIWindow* wp = new PIWindow(this, strg, PIWK_normal,  300, 300, 150, 150);
     
    206207      PIYfXDrawer* mxyd = new   PIYfXDrawer( new P1DAdapter<float>(vpx, 30, true),
    207208                                            new P1DAdapter<float>(vpy, 30, true), true);
    208       mxyd->SetColAtt(PI_Red);
    209       mxyd->SetMarkerAtt(7, PI_FTriangleMarker);
     209      mxyd->GetGraphicAtt().SetColAtt(PI_Red);
     210      mxyd->GetGraphicAtt().SetMarkerAtt(7, PI_FTriangleMarker);
    210211
    211212      nbwin++; sprintf(strg,"2D Graphics (PI W %d)", nbwin);
     
    233234                                             new P1DAdapter<float>(vpy, 30, true), true);
    234235
    235       mxyd->SetColAtt(PI_Magenta);
    236       mxyd->SetMarkerAtt(7, PI_FBoxMarker);
     236      mxyd->GetGraphicAtt().SetColAtt(PI_Magenta);
     237      mxyd->GetGraphicAtt().SetMarkerAtt(7, PI_FBoxMarker);
    237238
    238239      PIFuncDrawer* mfd = new PIFuncDrawer(fsinc);
    239       mfd->SetColAtt(PI_Blue);
    240       mfd->SetLineAtt(PI_NormalLine);
     240      mfd->GetGraphicAtt().SetColAtt(PI_Blue);
     241      mfd->GetGraphicAtt().SetLineAtt(PI_NormalLine);
    241242
    242243      nbwin++; sprintf(strg,"2D Graphics (PI W %d)", nbwin);
     
    361362      PIWindow* awp = new PIWindow(this, strg, PIWK_normal, 500, 500, 200, 200);
    362363      PISurfaceDrawer* sd = new PISurfaceDrawer(new P2DAdapter<float>(tf, 50, 50, true), true, true, true);
    363       if (fgswcol%3 == 0) sd->SetColMapId(CMAP_COLRJ32);
    364       else if (fgswcol%3 == 1) sd->SetColMapId(CMAP_COLBR32);
    365       else sd->SetColMapId(CMAP_COLRV32);
     364      if (fgswcol%3 == 0) sd->GetGraphicAtt().SetColMapId(CMAP_COLRJ32);
     365      else if (fgswcol%3 == 1) sd->GetGraphicAtt().SetColMapId(CMAP_COLBR32);
     366      else sd->GetGraphicAtt().SetColMapId(CMAP_COLRV32);
    366367      fgswcol++;
    367368      PIDraw3DWdg* drw3 = new PIDraw3DWdg(awp, "ex3ddrw", 600, 600, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.