source: Sophya/trunk/SophyaPI/PIext/nobjmgr.h@ 293

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

Adaptation aux "normes DPC", introduction des classes CmdExecutor, ...
Fenetre d'aide en lignes, gestion de modules, ... Reza 11/05/99

File size: 4.6 KB
RevLine 
[165]1// This may look like C code, but it is really -*- C++ -*-
2// Classe de gestion d objets nommes pour piapp
3// Reza Aout 97 , Juillet,Aout 98
4// CEA-DAPNIA LAL-IN2P3/CNRS
5
6#ifndef NOBJMGR_H_SEEN
7#define NOBJMGR_H_SEEN
8
9#include "ppersist.h"
10#include "dlftypes.h"
11
12class PIStdImgApp;
13class Services2NObjMgr;
14
15class NamedObjMgr {
16public:
17 NamedObjMgr();
18 virtual ~NamedObjMgr();
19
20 virtual void SetImgApp(PIStdImgApp* app);
21
22
23// Pour ajouter, supprimer et acceder aux objets PPersist
24 virtual void AddObj(PPersist* obj, string& nom);
25 virtual void DelObj(string const& nom, bool fgd=true);
26 virtual void DelObjects(string const& patt, bool fgd=true);
27 virtual PPersist* GetObj(string const& nom);
28 virtual void RenameObj(string const& nom, string& nomnew);
29 virtual string LastObjName(); // Renvoie le nom du dernier objet ajoute
30
31// Lecture et sauvegarde des objets sur fichier
32 virtual void ReadObj(PInPersist& s, int num=-1);
33 virtual void ReadObj(string const & nomppf, string nobj="");
34 virtual void ReadAll(string const & nomppf);
35 virtual void ReadFits(string const & flnm, string nobj="");
36 virtual void SaveObj(string const& nom, POutPersist& s);
37 virtual void SaveAll(string const& nomppf);
38 virtual void SaveFits(string const& nom, string const & flnm);
39
40// Info sur les objets
41 virtual void ListObjs();
42 virtual void PrintObj(string const& nom);
43
44// Affichage des objets
45 virtual void DisplayObj(string const& nom, string dopt="");
46 virtual void DisplaySurf3D(string const& nom, string dopt="");
47 virtual void DisplayNT(string const& nom, string& nmx, string& nmy, string& nmz,
48 string& erx, string& ery, string& erz, string dopt="");
49 virtual void DisplayGFD(string const& nom, string& numvarx, string& numvary, string& err, string dopt="");
50// virtual void DisplayImage(string const& nom, string dopt=""); C'est necessaire ??
51
52 virtual void SetGraphicAttributes(string gratt="");
53 virtual void SetGraphicWinZone(int nzx, int nzy, bool fcr=false);
54
55
56// Trace d'expression de NTuple, et d'autres objets
57 virtual void DisplayPoints2D(string const& nom, string& expx, string& expy,
58 string& experrx, string& experry,
59 string& expcut, string dopt="");
60 virtual void DisplayPoints3D(string const& nom, string& expx, string& expy, string& expz,
61 string& expcut, string dopt="");
62// Projection d'expressions dans histogramme (et trace)
63 virtual void ProjectH1(string const& nom, string& expx, string& expwt, string& expcut,
64 string& nomh1, string dopt="");
65 virtual void ProjectH2(string const& nom, string& expx, string& expy, string& expwt,
66 string& expcut, string& nomh2, string dopt="");
67 virtual void ProjectHProf(string const& nom, string& expx, string& expy, string& expwt,
68 string& expcut, string& nomprof, string dopt="");
69// Projection d'expression dans vecteurs et dans n-tuple
70 virtual void FillVect(string const& nom, string& expx, string& expcut,
71 string& nomvec, string dopt="");
72 virtual void FillNT(string const& nom, string& expx, string& expy, string& expz,
73 string& expt, string& expcut, string& nomnt);
74 virtual void FillGFD(string const& nom, string& expx, string& expy, string& expz,
75 string& experr, string& expcut, string& nomgfd);
76
77// Trace de fonctions 1-D , 2-D
78 virtual void PlotFunc(string& expfunc, float xmin, float xmax, int np=100, string dopt="");
79 virtual void PlotFunc2D(string& expfunc, float xmin, float xmax, float ymin, float ymax,
80 int npx=50, int npy=50, string dopt="");
81 virtual void PlotFunc(DlFunctionOfX f, float xmin, float xmax, int np=100, string dopt="");
82 virtual void PlotFunc2D(DlFunctionOfXY f, float xmin, float xmax, float ymin, float ymax,
83 int npx=50, int npy=50, string dopt="");
84
85// Methodes de fit, a rajouter (pour CMV , deux methodes H1 H2 ou 1 seule ??) ...
86 virtual void Fit12D(string const& nom, string& func,
87 string par,string step,string min,string max,string opt);
88
89
90// Acces au PIApplication et a la classe de service
91 virtual PIStdImgApp* GetImgApp();
92 virtual Services2NObjMgr* GetServiceObj();
93};
94
95
96#endif
Note: See TracBrowser for help on using the repository browser.