Changeset 295 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- May 13, 1999, 12:12:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistdimgapp.cc
r293 r295 3 3 #include <stdio.h> 4 4 #include <string.h> 5 6 #include <typeinfo> 5 7 6 8 #include <string> … … 28 30 29 31 #include "pistzwin.h" 32 33 #include "piinit.h" 30 34 31 35 … … 192 196 SaveGraphicAtt(); 193 197 198 // Initialisation 199 PIAppInitiator * piai = new PIAppInitiator(this); 194 200 SetReady(); 195 201 } … … 421 427 422 428 /* --Methode-- */ 423 int PIStdImgApp::DispScDrawer(PIDrawer* scd, string const & name, int opt, string title , bool h2d)429 int PIStdImgApp::DispScDrawer(PIDrawer* scd, string const & name, int opt, string title) 424 430 { 425 431 if (scd == NULL) … … 452 458 sy = 200+mFgScSz*100; 453 459 win = GetWindow(opt, sx, sy, px, py, flag, (char *)name.c_str()); 454 if (!h2d) scw = new PIScDrawWdg(win, (char *)name.c_str(), sx, sy, px, py); 460 if (typeid(*scd) != typeid(PIHisto2D)) 461 scw = new PIScDrawWdg(win, (char *)name.c_str(), sx, sy, px, py); 455 462 else scw = new PIH2DWdg(win, (char *)name.c_str(), sx, sy, px, py); 456 463 scw->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); … … 458 465 scw->SetAxesFlags(mAxesFlags); 459 466 460 if ( !h2d) scw->AddScDrawer(scd, true);467 if (typeid(*scd) != typeid(PIHisto2D)) scw->AddScDrawer(scd, true); 461 468 else ((PIH2DWdg*)scw)->SetPIHisto((PIHisto2D*)scd); 462 469 // Titre du plot
Note:
See TracChangeset
for help on using the changeset viewer.