Changeset 1908 in Sophya for trunk/SophyaPI
- Timestamp:
- Feb 20, 2002, 6:11:05 PM (24 years ago)
- Location:
- trunk/SophyaPI/PI/Tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/Tests/pist.cc
r1899 r1908 107 107 PIFontAtt att[4] = { PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_BoldItalicFont}; 108 108 PIFontSize fsz[5] = { PI_TinySizeFont, PI_SmallSizeFont, PI_NormalSizeFont, 109 PI_ BigSizeFont, PI_HugeSizeFont };109 PI_LargeSizeFont, PI_HugeSizeFont }; 110 110 PIFontName fn[4] = { PI_CourierFont, PI_HelveticaFont, 111 111 PI_TimesFont, PI_SymbolFont}; … … 114 114 char * attstr[4] = { "RomanFont" , "BoldFont", "ItalicFont", "BoldItalicFont"}; 115 115 char * fszstr[5] = { "TinySizeFont", "SmallSizeFont", "NormalSizeFont", 116 " BigSizeFont", "HugeSizeFont" };116 "LargeSizeFont", "HugeSizeFont" }; 117 117 118 118 if (g->kind() != PI_PSFileGraphics ) EraseWindow(); … … 246 246 break; 247 247 case '4': 248 mFSize = PI_ BigSizeFont;248 mFSize = PI_LargeSizeFont; 249 249 break; 250 250 case '5': … … 289 289 PIFontAtt att[4] = { PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_BoldItalicFont}; 290 290 PIFontSize fsz[5] = { PI_TinySizeFont, PI_SmallSizeFont, PI_NormalSizeFont, 291 PI_ BigSizeFont, PI_HugeSizeFont };291 PI_LargeSizeFont, PI_HugeSizeFont }; 292 292 PIFontName fn[4] = { PI_CourierFont, PI_HelveticaFont, 293 293 PI_TimesFont, PI_SymbolFont}; … … 296 296 char * attstr[4] = { "RomanFont" , "BoldFont", "ItalicFont", "BoldItalicFont"}; 297 297 char * fszstr[5] = { "TinySizeFont", "SmallSizeFont", "NormalSizeFont", 298 " BigSizeFont", "HugeSizeFont" };298 "LargeSizeFont", "HugeSizeFont" }; 299 299 300 300 if (g->kind() != PI_PSFileGraphics ) EraseWindow(); … … 573 573 PIFontAtt att[4] = { PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_BoldItalicFont}; 574 574 PIFontSize fsz[5] = { PI_TinySizeFont, PI_SmallSizeFont, PI_NormalSizeFont, 575 PI_ BigSizeFont, PI_HugeSizeFont };575 PI_LargeSizeFont, PI_HugeSizeFont }; 576 576 PIFontName fn[4] = { PI_CourierFont, PI_HelveticaFont, 577 577 PI_TimesFont, PI_SymbolFont}; … … 580 580 char * attstr[4] = { "RomanFont" , "BoldFont", "ItalicFont", "BoldItalicFont"}; 581 581 char * fszstr[5] = { "TinySizeFont", "SmallSizeFont", "NormalSizeFont", 582 " BigSizeFont", "HugeSizeFont" };582 "LargeSizeFont", "HugeSizeFont" }; 583 583 584 584 if (g->kind() != PI_PSFileGraphics ) EraseWindow(); -
trunk/SophyaPI/PI/Tests/pitgr.cc
r1591 r1908 16 16 #include "pidrawwin.h" 17 17 #include "piscdrawwdg.h" 18 #include "piyfxdrw.h" 18 19 #include "piimage.h" 19 20 #include "parradapter.h" … … 178 179 179 180 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); 182 183 nbwin++; sprintf(strg,"2D Graphics (PI W %d)", nbwin); 183 184 PIWindow* wp = new PIWindow(this, strg, PIWK_normal, 300, 300, 150, 150); … … 206 207 PIYfXDrawer* mxyd = new PIYfXDrawer( new P1DAdapter<float>(vpx, 30, true), 207 208 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); 210 211 211 212 nbwin++; sprintf(strg,"2D Graphics (PI W %d)", nbwin); … … 233 234 new P1DAdapter<float>(vpy, 30, true), true); 234 235 235 mxyd-> SetColAtt(PI_Magenta);236 mxyd-> SetMarkerAtt(7, PI_FBoxMarker);236 mxyd->GetGraphicAtt().SetColAtt(PI_Magenta); 237 mxyd->GetGraphicAtt().SetMarkerAtt(7, PI_FBoxMarker); 237 238 238 239 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); 241 242 242 243 nbwin++; sprintf(strg,"2D Graphics (PI W %d)", nbwin); … … 361 362 PIWindow* awp = new PIWindow(this, strg, PIWK_normal, 500, 500, 200, 200); 362 363 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); 366 367 fgswcol++; 367 368 PIDraw3DWdg* drw3 = new PIDraw3DWdg(awp, "ex3ddrw", 600, 600, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.