source: Sophya/trunk/SophyaPI/PIext/pihisto.h@ 2247

Last change on this file since 2247 was 2229, checked in by cmv, 23 years ago

Gestion des options graph. cmv 24/10/02

File size: 1.1 KB
RevLine 
[544]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
[165]4#ifndef PIHISTO_H
5#define PIHISTO_H
6
7#include "histos.h"
8#include "pidrawer.h"
9
10class PIHisto : public PIDrawer {
11public:
12 PIHisto(Histo* histo, bool ad=false);
13 virtual ~PIHisto();
[205]14 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
[165]15 virtual void UpdateLimits();
[2229]16 inline void SetStats(bool fg=true) {stats=fg;}
17 // fg=-1 pas de barre d'erreur, 1=barres d'erreurs,
18 // 0=barres d'erreurs automatiques: trace si HProf ou markeur demande
19 inline void SetError(unsigned short fg=0) {error=fg;}
20 inline Histo* Histogram() {return(mHisto);}
[165]21
[1971]22// Methode de decodage des options
23 virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
[2229]24 virtual void GetOptionsHelpInfo(string& info);
[1971]25
[165]26protected:
[544]27 virtual void DrawStats(PIGraphicUC* g);
[165]28 Histo* mHisto;
29 bool mAdDO;
[2229]30 bool stats,error;
[165]31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.