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

Last change on this file since 2536 was 2524, checked in by cmv, 22 years ago

OptionToString dans NTuple et NTuple3D cmv 23/03/04

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;
[2400]40 bool mAutoScaleXY, mAutoScaleZ;
[165]41 int xK, yK, zK; // Index du nom de variable en X/Y/Z ds le ntuple
42 int xebK, yebK, zebK; // Index du nom de variable en ErrBarX/Y/Z ds le ntuple
[486]43 int wK; // Index du nom de variable poids
44 int lK; // Index du nom de variable label (affiche en texte)
45 double wMin, wMax; // Valeurs de poids min/max
[2373]46 bool mrkSzScale; // true -> Taille de markers variable suivant poids
47 int nWbins; // Nombre de bins taille de marker variable
48 bool colorScale; // true -> Couleur de marker variable suivant poids
[165]49
[2350]50 bool connectPts; // true -> les points sont relies par une ligne
51
[165]52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.