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

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

1/ Basculement de decodage des options de display aux methodes
PIDrawer/PIWdg::DecodeOptionString()
2/ Possibilite de Show/Hide de la partie Zoom/ColorMap/Stat du MainWindow

Reza 30/4/2002

File size: 1.6 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
31protected:
32 NTupleInterface* mNT;
33 bool mAdDO;
34 int xK, yK; // Index du nom de variable en X/Y ds le ntuple
35 int xebK, yebK; // Index du nom de variable en ErrBarX/Y ds le ntuple
36 int wK; // Index du nom de variable poids
37 int lK; // Index du nom de variable label (affiche en texte)
38 double wMin, wMax; // Valeurs de poids min/max
39 int nWbins; // Nombre de bins pour le poids (Wt)
40 bool stats; // true -> indication du nb de points
41};
42
43#endif
44
45
46
47
Note: See TracBrowser for help on using the repository browser.