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

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

Portage -> DPPlanck , Reza+cmv 21/10/99

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