source: Sophya/trunk/SophyaPI/PIext/pipodrw.h@ 544

Last change on this file since 544 was 544, checked in by ercodmgr, 26 years ago

Documentation + ameliorations DrawStats + vector->tvector pour Planck - Reza 3/11/99

File size: 1.8 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2// Adaptateurs et Drawers divers pour Outils PEIDA++
3// R. Ansari 06-08/98
4// LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA
5
6#ifndef PIPODRW_H_SEEN
7#define PIPODRW_H_SEEN
8
9#include "machdefs.h"
10#include "pidrawer.h"
11#include "parradapter.h"
12#include "histos2.h"
13
14#ifdef SANS_EVOLPLANCK
15#include "cvector.h"
16#include "matrix.h"
17class GeneralFunction;
18#else
19#include "tvector.h"
20#include "tmatrix.h"
21namespace PlanckDPC {class GeneralFunction;}
22#endif
23
24class PIGFFDrawer : public PIDrawer {
25public:
26 PIGFFDrawer(GeneralFunction*);
27 virtual ~PIGFFDrawer();
28
29 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
30 virtual void SetParms(double const*);
31protected:
32 GeneralFunction* mFunc;
33 int mNParms;
34 double* mParms;
35};
36
37
38// Adaptateur de vecteurs Peida++ a P1DArrayAdapter
39class POVectorAdapter : public P1DArrayAdapter {
40public :
41 POVectorAdapter(Vector* v, bool ad=false);
42 virtual ~POVectorAdapter();
43 virtual double Value(int i);
44
45protected:
46 bool aDel;
47 Vector* mVec;
48};
49
50// Adaptateur d'Histo-2D Peida++ a P2DArrayAdapter
51class POH2DAdapter : public P2DArrayAdapter {
52public :
53 POH2DAdapter(Histo2D* h2d, bool ad=false);
54 virtual ~POH2DAdapter();
55
56 virtual double Value(int ix, int iy);
57
58protected:
59 bool aDel;
60 Histo2D* mH2d;
61};
62
63// Adaptateur de matrice Peida++ a P2DArrayAdapter
64// Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)
65class POMatrixAdapter : public P2DArrayAdapter {
66public :
67 POMatrixAdapter(Matrix* mtx, bool ad=false);
68 virtual ~POMatrixAdapter();
69
70 virtual double Value(int ix, int iy);
71
72protected:
73 bool aDel;
74 Matrix* mMtx;
75};
76
77
78#endif
Note: See TracBrowser for help on using the repository browser.