| Last change
 on this file since 2436 was             2383, checked in by ansari, 22 years ago | 
        
          | 
Ajout methode GetInfoString() aux ObjAdapter + attributs de gestion de position de stat pour PINtuple/PIHisto + positionnement par defaut de stat (statposoff=) lors de disp same - Reza 16/5/2003
 | 
        
          | File size:
            1.2 KB | 
      
      
| Line |  | 
|---|
| 1 | // This may look like C code, but it is really -*- C++ -*- | 
|---|
| 2 | // Classe traceur d histogramme                 96-99 | 
|---|
| 3 | // CEA-DAPNIA      LAL-IN2P3/CNRS | 
|---|
| 4 | #ifndef PIHISTO_H | 
|---|
| 5 | #define PIHISTO_H | 
|---|
| 6 |  | 
|---|
| 7 | #include "histos.h" | 
|---|
| 8 | #include "pidrawer.h" | 
|---|
| 9 |  | 
|---|
| 10 | class PIHisto : public PIDrawer { | 
|---|
| 11 | public: | 
|---|
| 12 | PIHisto(Histo* histo, bool ad=false); | 
|---|
| 13 | virtual           ~PIHisto(); | 
|---|
| 14 | virtual void       Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax); | 
|---|
| 15 | virtual void       UpdateLimits(); | 
|---|
| 16 | inline  void       SetStats(bool fg=true) {stats=fg;} | 
|---|
| 17 | inline  void       SetStatPosOffset(float ofx=-0.01, float ofy=-0.01) | 
|---|
| 18 | {spoX=ofx; spoY=ofy; } | 
|---|
| 19 | // fg=-1 pas de barre d'erreur, 1=barres d'erreurs, | 
|---|
| 20 | // 0=barres d'erreurs automatiques: trace si HProf ou markeur demande | 
|---|
| 21 | inline  void       SetError(unsigned short fg=0) {error=fg;} | 
|---|
| 22 | inline  Histo*     Histogram() {return(mHisto);} | 
|---|
| 23 |  | 
|---|
| 24 | //   Methode de decodage des options | 
|---|
| 25 | virtual int        DecodeOptionString(vector<string> & opt, bool rmdecopt=true); | 
|---|
| 26 | virtual void       GetOptionsHelpInfo(string& info); | 
|---|
| 27 |  | 
|---|
| 28 | protected: | 
|---|
| 29 | virtual void       DrawStats(PIGraphicUC* g); | 
|---|
| 30 | Histo* mHisto; | 
|---|
| 31 | bool mAdDO; | 
|---|
| 32 | bool stats,error; | 
|---|
| 33 | float spoX, spoY; // Stat pos offset par rapport a position defaut | 
|---|
| 34 | }; | 
|---|
| 35 |  | 
|---|
| 36 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.