Changeset 1090 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Jul 25, 2000, 12:20:52 PM (25 years ago)
Author:
ercodmgr
Message:

updatehisto formalisation cmv 25/7/00

Location:
trunk/SophyaPI/PIext
Files:
4 edited

Legend:

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

    r1057 r1090  
    3838AnyDataObj* NOMAdapter_Histo::GetCopyObj()
    3939{
     40mHis->UpdateHisto();  // pour le cas ou c'est un HProf
    4041HProf * hp = dynamic_cast<HProf *>(mHis);
    41 if (hp == NULL) return( new Histo(*mHis) );
    42 // C'est un HProf, il faut l'updater si on le copie
    43 //   car seule la partie "Histo" est copiee!
    44 if( !(hp->IsOk()) ) hp->UpdateHisto();
     42if(hp==NULL) return( new Histo(*mHis) );
    4543return( new HProf(*hp) );
    4644}
  • trunk/SophyaPI/PIext/pawexecut.cc

    r1079 r1090  
    864864Histo2D* h2 = dynamic_cast<Histo2D*>(mobjh);
    865865if( h != NULL ) {  // Histo ou HProf
    866   HProf* hp  = dynamic_cast<HProf*>(mobjh);
    867   if(hp!=NULL) if(!(hp->IsOk())) hp->UpdateHisto();
     866  h->UpdateHisto();  // pour le cas ou c'est un HProf
    868867  Vector* v = NULL;
    869868  if(mobjv==NULL)   // le vecteur n'existe pas
  • trunk/SophyaPI/PIext/pihisto.cc

    r1057 r1090  
    7878  if(mMrk != PI_NotDefMarker ||  (typeid(*mHisto) == typeid(HProf)) ) {
    7979    // Marqeurs definis OU HProf => marqueurs+Erreurs si il y en a
    80     if(typeid(*mHisto) == typeid(HProf))
    81       { HProf* hp = (HProf*) mHisto; if(!(hp->IsOk())) hp->UpdateHisto();}
     80    mHisto->UpdateHisto(); // pour le cas ou c'est un HProf
    8281    if(mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine);
    8382    double x1,y1, x2,y2;
  • trunk/SophyaPI/PIext/servnobjm.cc

    r1067 r1090  
    591591  mOmg->AddObj(hprof, nomprof);
    592592  }
    593 if(!(hprof->IsOk())) hprof->UpdateHisto();
     593hprof->UpdateHisto();
    594594
    595595mOmg->DisplayObj(nomprof, dopt);
Note: See TracChangeset for help on using the changeset viewer.