1 | #ifndef PINTUPLE3D_H
|
---|
2 | #define PINTUPLE3D_H
|
---|
3 |
|
---|
4 | #include "ntupintf.h"
|
---|
5 | #include "pi3ddrw.h"
|
---|
6 |
|
---|
7 | class PINTuple3D : public PIDrawer3D {
|
---|
8 | public:
|
---|
9 | PINTuple3D(NTupleInterface* nt, bool ad=false);
|
---|
10 | virtual ~PINTuple3D();
|
---|
11 |
|
---|
12 | virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
|
---|
13 | virtual void UpdateLimits();
|
---|
14 |
|
---|
15 | virtual void SelectXYZ(const char* px, const char* py, const char* pz);
|
---|
16 | virtual void SelectWt(const char* pw=NULL);
|
---|
17 | virtual void SelectErrBar(const char* erbx=NULL, const char* erby=NULL, const char* erbz=NULL);
|
---|
18 | virtual void SelectLabel(const char* plabel);
|
---|
19 |
|
---|
20 | inline void ConnectPoints(bool fg=false) { connectPts = fg; }
|
---|
21 |
|
---|
22 | // Gestion de la representation de poids
|
---|
23 | inline void UseSizeScale(bool fg=true, int nbins=5)
|
---|
24 | { mrkSzScale = fg; if (nbins>0) nWbins = nbins; }
|
---|
25 | inline void UseColorScale(bool fg=true) { colorScale = fg; }
|
---|
26 |
|
---|
27 | inline bool GetSizeScale(int& nbins)
|
---|
28 | { nbins = nWbins; return mrkSzScale; }
|
---|
29 | inline bool GetColScale() { return colorScale; }
|
---|
30 |
|
---|
31 | // Methode de decodage des options
|
---|
32 | virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
|
---|
33 | virtual int OptionToString(vector<string> & opt) const;
|
---|
34 | // Texte d'aide des options disponibles
|
---|
35 | virtual void GetOptionsHelpInfo(string& info);
|
---|
36 |
|
---|
37 | protected:
|
---|
38 | NTupleInterface* mNT;
|
---|
39 | bool mAdDO;
|
---|
40 | int xK, yK, zK; // Index du nom de variable en X/Y/Z ds le ntuple
|
---|
41 | int xebK, yebK, zebK; // Index du nom de variable en ErrBarX/Y/Z ds le ntuple
|
---|
42 | int wK; // Index du nom de variable poids
|
---|
43 | int lK; // Index du nom de variable label (affiche en texte)
|
---|
44 | double wMin, wMax; // Valeurs de poids min/max
|
---|
45 | bool mrkSzScale; // true -> Taille de markers variable suivant poids
|
---|
46 | int nWbins; // Nombre de bins taille de marker variable
|
---|
47 | bool colorScale; // true -> Couleur de marker variable suivant poids
|
---|
48 |
|
---|
49 | bool connectPts; // true -> les points sont relies par une ligne
|
---|
50 |
|
---|
51 | };
|
---|
52 |
|
---|
53 | #endif
|
---|