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

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

Modifs pour SOPHYA , TMatrix, PixelMap, ... Reza 17/11/99

File size: 1.9 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
15class GeneralFunction;
16#else
17namespace SOPHYA {class GeneralFunction;}
18#endif
19
20class PIGFFDrawer : public PIDrawer {
21public:
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*);
27protected:
28 GeneralFunction* mFunc;
29 int mNParms;
30 double* mParms;
31};
32
33
34
35// Adaptateur d'Histo-2D Peida++ a P2DArrayAdapter
36class POH2DAdapter : public P2DArrayAdapter {
37public :
38 POH2DAdapter(Histo2D* h2d, bool ad=false);
39 virtual ~POH2DAdapter();
40
41 virtual double Value(int ix, int iy);
42
43protected:
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
53class POVectorAdapter : public P1DArrayAdapter {
54public :
55 POVectorAdapter(Vector* v, bool ad=false);
56 virtual ~POVectorAdapter();
57 virtual double Value(int i);
58
59protected:
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)
66class POMatrixAdapter : public P2DArrayAdapter {
67public :
68 POMatrixAdapter(Matrix* mtx, bool ad=false);
69 virtual ~POMatrixAdapter();
70
71 virtual double Value(int ix, int iy);
72
73protected:
74 bool aDel;
75 Matrix* mMtx;
76};
77
78#endif // SANS_EVOLPLANCK
79
80#endif
Note: See TracBrowser for help on using the repository browser.