source: Sophya/trunk/SophyaPI/PIext/pintup3d.h@ 4037

Last change on this file since 4037 was 2545, checked in by ansari, 21 years ago

1/ Ajout commande textdrawer ds basexecut.cc
2/ Adaptation aux modifs pour autosacleX/Y,Z pour Drawer3D

Reza, 1 Juin 2004

File size: 2.1 KB
RevLine 
[165]1#ifndef PINTUPLE3D_H
2#define PINTUPLE3D_H
3
[326]4#include "ntupintf.h"
[165]5#include "pi3ddrw.h"
6
7class PINTuple3D : public PIDrawer3D {
8public:
[326]9 PINTuple3D(NTupleInterface* nt, bool ad=false);
[165]10 virtual ~PINTuple3D();
11
[205]12 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
[165]13 virtual void UpdateLimits();
14
[486]15 virtual void SelectXYZ(const char* px, const char* py, const char* pz);
[2373]16 virtual void SelectWt(const char* pw=NULL);
[486]17 virtual void SelectErrBar(const char* erbx=NULL, const char* erby=NULL, const char* erbz=NULL);
18 virtual void SelectLabel(const char* plabel);
[165]19
[2350]20 inline void ConnectPoints(bool fg=false) { connectPts = fg; }
21
[2373]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
[2350]31// Methode de decodage des options
32 virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
[2524]33 virtual int OptionToString(vector<string> & opt) const;
[2350]34// Texte d'aide des options disponibles
35 virtual void GetOptionsHelpInfo(string& info);
[165]36
37protected:
[326]38 NTupleInterface* mNT;
[165]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
[486]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
[2373]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
[165]48
[2350]49 bool connectPts; // true -> les points sont relies par une ligne
50
[165]51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.