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

Last change on this file since 3139 was 3139, checked in by cmv, 19 years ago

modifs mineures et intro POHe2DAdapter cmv 17/01/2007

File size: 2.2 KB
RevLine 
[165]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
[495]9#include "machdefs.h"
[165]10#include "pidrawer.h"
11#include "parradapter.h"
12#include "histos2.h"
[3139]13#include "hist2err.h"
[165]14
[495]15#ifdef SANS_EVOLPLANCK
16class GeneralFunction;
17#else
[551]18namespace SOPHYA {class GeneralFunction;}
[495]19#endif
[165]20
21class PIGFFDrawer : public PIDrawer {
22public:
23 PIGFFDrawer(GeneralFunction*);
24 virtual ~PIGFFDrawer();
25
[205]26 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
[165]27 virtual void SetParms(double const*);
28protected:
29 GeneralFunction* mFunc;
30 int mNParms;
31 double* mParms;
32};
33
34
35
[3139]36// Adaptateur d'Histo-2D a P2DArrayAdapter
[165]37class POH2DAdapter : public P2DArrayAdapter {
38public :
39 POH2DAdapter(Histo2D* h2d, bool ad=false);
40 virtual ~POH2DAdapter();
41
[205]42 virtual double Value(int ix, int iy);
[165]43
44protected:
45 bool aDel;
46 Histo2D* mH2d;
47};
48
[3139]49// Adaptateur d'Histo2DErr a P2DArrayAdapter
50class POHe2DAdapter : public P2DArrayAdapter {
51public :
52 POHe2DAdapter(Histo2DErr* he2d, bool ad=false);
53 virtual ~POHe2DAdapter();
54
55 virtual double Value(int ix, int iy);
56
57protected:
58 bool aDel;
59 Histo2DErr* mHe2d;
60};
61
[584]62#ifdef SANS_EVOLPLANCK
63#include "cvector.h"
64#include "matrix.h"
65
66// Adaptateur de vecteurs Peida++ a P1DArrayAdapter
67class POVectorAdapter : public P1DArrayAdapter {
68public :
69 POVectorAdapter(Vector* v, bool ad=false);
70 virtual ~POVectorAdapter();
71 virtual double Value(int i);
72
73protected:
74 bool aDel;
75 Vector* mVec;
76};
77
[165]78// Adaptateur de matrice Peida++ a P2DArrayAdapter
79// Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)
80class POMatrixAdapter : public P2DArrayAdapter {
81public :
82 POMatrixAdapter(Matrix* mtx, bool ad=false);
83 virtual ~POMatrixAdapter();
84
[205]85 virtual double Value(int ix, int iy);
[165]86
87protected:
88 bool aDel;
89 Matrix* mMtx;
90};
91
[584]92#endif // SANS_EVOLPLANCK
[165]93
94#endif
Note: See TracBrowser for help on using the repository browser.