source: Sophya/trunk/SophyaPI/PIext/pintuple.h@ 2188

Last change on this file since 2188 was 1975, checked in by ansari, 23 years ago

Ajout methode PINtuple::GetOptionsHelpInfo() - Reza 30/4/2002

File size: 1.7 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2// Module PI : Peida Interactive PINTuple et PINTupleWdg
3// Traceur d objet de type NTupleInterface
4
5#ifndef PINTUPLE_H
6#define PINTUPLE_H
7
8#include "ntupintf.h"
9#include "pidrawer.h"
10
11class PINTuple : public PIDrawer {
12public:
13 PINTuple(NTupleInterface* nt, bool ad);
14 virtual ~PINTuple();
15
16
17 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
18 virtual void UpdateLimits();
19
20 virtual void SelectXY(const char* px, const char* py);
21 virtual void SelectWt(const char* pw=NULL, int nbins=10);
22 virtual void SelectErrBar(const char* erbx=NULL, const char* erby=NULL);
23 virtual void SelectLabel(const char* plabel=NULL);
24
25 inline void SetStats(bool fg=true) { stats = fg; }
26 virtual void AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax);
27
28// Methode de decodage des options
29 virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
30// Texte d'aide des options disponibles
31 virtual void GetOptionsHelpInfo(string& info);
32
33protected:
34 NTupleInterface* mNT;
35 bool mAdDO;
36 int xK, yK; // Index du nom de variable en X/Y ds le ntuple
37 int xebK, yebK; // Index du nom de variable en ErrBarX/Y ds le ntuple
38 int wK; // Index du nom de variable poids
39 int lK; // Index du nom de variable label (affiche en texte)
40 double wMin, wMax; // Valeurs de poids min/max
41 int nWbins; // Nombre de bins pour le poids (Wt)
42 bool stats; // true -> indication du nb de points
43};
44
45#endif
46
47
48
49
Note: See TracBrowser for help on using the repository browser.