Changeset 3125 in Sophya for trunk/SophyaPI/PIext/pihisto.h


Ignore:
Timestamp:
Jan 11, 2007, 7:02:52 PM (19 years ago)
Author:
ansari
Message:

1/ Introduction d'une classe P1DHistoWrapper (fichier phistwrapper.h) pour rendre PIHisto independant de SOPHYA et des objets Histo, HistErr, HProf ...
2/ Ecriture du wrapper/adaptateur pour SOPHYA::Histo,HProf,HistErr
3/ mise en conformite des ObjAdapter piapp pour Histo,HistErr, chgt numero de version

Reza 11/01/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pihisto.h

    r2523 r3125  
    11// This may look like C code, but it is really -*- C++ -*-
    22// Classe traceur d histogramme                 96-99
     3//            C. Magneville / R. Ansari       2000-2007
    34// CEA-DAPNIA      LAL-IN2P3/CNRS
     5
    46#ifndef PIHISTO_H
    57#define PIHISTO_H
    68
    7 #include "histos.h"
    89#include "pidrawer.h"
     10#include "phistwrapper.h"
     11
    912
    1013class PIHisto : public PIDrawer {
    1114public:
    12                      PIHisto(Histo* histo, bool ad=false);
     15                     PIHisto(P1DHistoWrapper* histo, bool ad=true);
    1316  virtual           ~PIHisto();
    1417  virtual void       Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
     
    2124  inline  void       SetError(short fg=0) {error=fg;}
    2225  inline  void       SetFilled(bool fg=false) {filled=fg;}
    23   inline  Histo*     Histogram() {return(mHisto);}
     26  inline  P1DHistoWrapper*     HistoWrapper() {return(mHisto);}
    2427
    2528//   Methode de decodage des options
     
    3336protected:
    3437  virtual void       DrawStats(PIGraphicUC* g);
    35   Histo* mHisto;
     38  P1DHistoWrapper*  mHisto;
    3639  bool mAdDO;
    3740  bool stats,filled;
Note: See TracChangeset for help on using the changeset viewer.