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 | class GeneralFunction;
|
---|
16 | #else
|
---|
17 | namespace SOPHYA {class GeneralFunction;}
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | class PIGFFDrawer : public PIDrawer {
|
---|
21 | public:
|
---|
22 | PIGFFDrawer(GeneralFunction*);
|
---|
23 | virtual ~PIGFFDrawer();
|
---|
24 |
|
---|
25 | virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
|
---|
26 | virtual void SetParms(double const*);
|
---|
27 | protected:
|
---|
28 | GeneralFunction* mFunc;
|
---|
29 | int mNParms;
|
---|
30 | double* mParms;
|
---|
31 | };
|
---|
32 |
|
---|
33 |
|
---|
34 |
|
---|
35 | // Adaptateur d'Histo-2D Peida++ a P2DArrayAdapter
|
---|
36 | class POH2DAdapter : public P2DArrayAdapter {
|
---|
37 | public :
|
---|
38 | POH2DAdapter(Histo2D* h2d, bool ad=false);
|
---|
39 | virtual ~POH2DAdapter();
|
---|
40 |
|
---|
41 | virtual double Value(int ix, int iy);
|
---|
42 |
|
---|
43 | protected:
|
---|
44 | bool aDel;
|
---|
45 | Histo2D* mH2d;
|
---|
46 | };
|
---|
47 |
|
---|
48 | #ifdef SANS_EVOLPLANCK
|
---|
49 | #include "cvector.h"
|
---|
50 | #include "matrix.h"
|
---|
51 |
|
---|
52 | // Adaptateur de vecteurs Peida++ a P1DArrayAdapter
|
---|
53 | class POVectorAdapter : public P1DArrayAdapter {
|
---|
54 | public :
|
---|
55 | POVectorAdapter(Vector* v, bool ad=false);
|
---|
56 | virtual ~POVectorAdapter();
|
---|
57 | virtual double Value(int i);
|
---|
58 |
|
---|
59 | protected:
|
---|
60 | bool aDel;
|
---|
61 | Vector* mVec;
|
---|
62 | };
|
---|
63 |
|
---|
64 | // Adaptateur de matrice Peida++ a P2DArrayAdapter
|
---|
65 | // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)
|
---|
66 | class POMatrixAdapter : public P2DArrayAdapter {
|
---|
67 | public :
|
---|
68 | POMatrixAdapter(Matrix* mtx, bool ad=false);
|
---|
69 | virtual ~POMatrixAdapter();
|
---|
70 |
|
---|
71 | virtual double Value(int ix, int iy);
|
---|
72 |
|
---|
73 | protected:
|
---|
74 | bool aDel;
|
---|
75 | Matrix* mMtx;
|
---|
76 | };
|
---|
77 |
|
---|
78 | #endif // SANS_EVOLPLANCK
|
---|
79 |
|
---|
80 | #endif
|
---|