Changeset 295 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
May 13, 1999, 12:12:51 PM (26 years ago)
Author:
ercodmgr
Message:

Mise aux "normes" version DPC/Planck - Gestion des objets a travers

un adaptateur/interface NTuple par NamedObjMgr.
Enregistrement d'objets et de l'adaptateur (I/O PPersist, display, ...)
par ServNobjMgr .... Reza 13/05/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r293 r295  
    33#include <stdio.h>
    44#include <string.h>
     5
     6#include <typeinfo>
    57
    68#include <string>
     
    2830
    2931#include "pistzwin.h"
     32
     33#include "piinit.h"
    3034
    3135
     
    192196SaveGraphicAtt();
    193197
     198// Initialisation
     199PIAppInitiator * piai = new PIAppInitiator(this);
    194200SetReady();
    195201}
     
    421427
    422428/* --Methode-- */
    423 int PIStdImgApp::DispScDrawer(PIDrawer* scd, string const & name, int opt, string title, bool h2d)
     429int PIStdImgApp::DispScDrawer(PIDrawer* scd, string const & name, int opt, string title)
    424430{
    425431if (scd == NULL)
     
    452458sy = 200+mFgScSz*100;
    453459win = 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);
     460if (typeid(*scd) != typeid(PIHisto2D))
     461   scw = new PIScDrawWdg(win, (char *)name.c_str(), sx, sy, px, py);
    455462else scw = new PIH2DWdg(win, (char *)name.c_str(), sx, sy, px, py);
    456463scw->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
     
    458465scw->SetAxesFlags(mAxesFlags);
    459466
    460 if (!h2d) scw->AddScDrawer(scd, true);
     467if (typeid(*scd) != typeid(PIHisto2D)) scw->AddScDrawer(scd, true);
    461468else ((PIH2DWdg*)scw)->SetPIHisto((PIHisto2D*)scd);
    462469//   Titre du plot
Note: See TracChangeset for help on using the changeset viewer.