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

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

Ajout nouvelles options pour trace d'axes ds le Help de baseexecut.cc
et ajout d'une nouvelle option (connectpoints) ds PINTupleDrawer (et 3D)

Reza 18 Mars 2003

File size: 1.8 KB
RevLine 
[344]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
[165]5#ifndef PINTUPLE_H
6#define PINTUPLE_H
7
[326]8#include "ntupintf.h"
[165]9#include "pidrawer.h"
10
11class PINTuple : public PIDrawer {
12public:
[326]13 PINTuple(NTupleInterface* nt, bool ad);
[165]14 virtual ~PINTuple();
15
[1971]16
[205]17 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
[165]18 virtual void UpdateLimits();
19
[344]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);
[486]23 virtual void SelectLabel(const char* plabel=NULL);
[165]24
[546]25 inline void SetStats(bool fg=true) { stats = fg; }
[2350]26 inline void ConnectPoints(bool fg=false) { connectPts = fg; }
27
[344]28 virtual void AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax);
[1971]29
30// Methode de decodage des options
31 virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
[1975]32// Texte d'aide des options disponibles
33 virtual void GetOptionsHelpInfo(string& info);
[165]34
35protected:
[326]36 NTupleInterface* mNT;
[165]37 bool mAdDO;
38 int xK, yK; // Index du nom de variable en X/Y ds le ntuple
39 int xebK, yebK; // Index du nom de variable en ErrBarX/Y ds le ntuple
[333]40 int wK; // Index du nom de variable poids
[486]41 int lK; // Index du nom de variable label (affiche en texte)
[333]42 double wMin, wMax; // Valeurs de poids min/max
43 int nWbins; // Nombre de bins pour le poids (Wt)
[544]44 bool stats; // true -> indication du nb de points
[2350]45 bool connectPts; // true -> les points sont relies par une ligne
[165]46};
47
48#endif
49
50
51
52
Note: See TracBrowser for help on using the repository browser.