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

Last change on this file since 3748 was 3149, checked in by cmv, 19 years ago

suite adaptation travail reza 2D et adapteur + adaptation aux modifs HistoErr cmv 18/01/2007

File size: 1.4 KB
RevLine 
[544]1// This may look like C code, but it is really -*- C++ -*-
2// Classe traceur d histogramme 96-99
[3125]3// C. Magneville / R. Ansari 2000-2007
[544]4// CEA-DAPNIA LAL-IN2P3/CNRS
[3125]5
[165]6#ifndef PIHISTO_H
7#define PIHISTO_H
8
9#include "pidrawer.h"
[3125]10#include "phistwrapper.h"
[165]11
[3125]12
[165]13class PIHisto : public PIDrawer {
14public:
[3135]15 PIHisto(P1DHistoWrapper* histowp, bool ad=true);
[165]16 virtual ~PIHisto();
[205]17 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
[165]18 virtual void UpdateLimits();
19
[3135]20 inline P1DHistoWrapper* HistoWrapper() {return(mHistoWp);}
21
[1971]22// Methode de decodage des options
23 virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
[2523]24 virtual int OptionToString(vector<string> & opt) const;
[2229]25 virtual void GetOptionsHelpInfo(string& info);
[1971]26
[2517]27// Renvoie une distance au point x,y
28 virtual double GetDistanceToPoint(double x, double y);
29
[165]30protected:
[544]31 virtual void DrawStats(PIGraphicUC* g);
[3135]32 P1DHistoWrapper* mHistoWp;
[165]33 bool mAdDO;
[3145]34 bool stats; // if true: draw text with statistical information
35 bool filled; // if true: fill histo with fg color
36 bool pline; // if true: draw histogram as polyline
37 bool error; // if true: draw error bars
[3149]38 double spoX, spoY; // Stat pos offset par rapport a position defaut
[165]39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.