source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_accelerator.h @ 495

Last change on this file since 495 was 495, checked in by lemeur, 10 years ago

maj de History

File size: 2.2 KB
Line 
1#ifndef GWT_Accelerator_SEEN
2#define GWT_Accelerator_SEEN
3
4#include <iostream>
5
6#include <Wt/WContainerWidget>
7#include <Wt/WScrollArea>
8#include <Wt/WComboBox>
9#include <Wt/WDialog>
10#include <Wt/WPdfImage>
11#include <Wt/Chart/WCartesianChart>
12#include <Wt/WLength>
13
14#include "dataManager.h"
15
16#include "GWt_dialog.h"
17
18using namespace Wt;
19
20using namespace std;
21
22class GWt_accelerator : public WContainerWidget
23{
24 
25public:
26  GWt_accelerator(WContainerWidget*, dataManager*);
27  virtual ~GWt_accelerator();
28  inline WContainerWidget* getAcceleratorDetailledView() {return acceleratorDetailledView_;};
29  inline WContainerWidget* getAcceleratorComputingView() {return acceleratorComputingView_;};
30  inline WLayout* getAcceleratorGlobalViewLayout() {return acceleratorGlobalViewLayout_;};
31  inline dataManager* getDataManager() { return dataManager_;};
32  void faireDessin();
33  WContainerWidget* createDrawingWidget();
34
35  private :
36  WContainerWidget* acceleratorDetailledView_;
37  WContainerWidget* acceleratorComputingView_;
38  void addSector();
39  void readConfiguration();
40    void expandMachine();
41  void run();
42  void closeGraphicDialog();
43  void dialogOnGraphics();
44  void dessiner();
45  void faireDessinPhaseSpace(WContainerWidget* toto, particleBeam* beam, string elementLabel, string namex, string namey, int typeFaisceau);
46  void faireDessinEnveloppe(WContainerWidget* toto, string type);
47  void dessinerEnveloppe();
48  void dessinerPhaseSpace();
49  void dessinerHistogramme();
50  void chartPlot2vec(WContainerWidget* toto,vector<double>& xcor,vector<double>& ycor,Wt::Chart::SeriesType seriesType,Wt::Chart::FillRangeType fillRange,Wt::Chart::AxisValue value,bool isGridLinesEnables,string title,string legendx,string legendy,int width,int height,bool makeIcon = false);
51  bool areDataCoherent();
52
53
54  WLayout* acceleratorGlobalViewLayout_;
55  dataManager* dataManager_;
56  WComboBox* choixElementDessin_;
57  WComboBox* choixTypeDessinFaisceau_;
58  WComboBox* choixAbsPhase_;
59  WComboBox* choixOrdPhase_;
60  WComboBox* choixEnveloppeDessin_;
61  WComboBox* choixHistoDessin_;
62  WComboBox* choixVariableHisto_;
63  GWt_dialog* graphicsDialog_;
64  WButtonGroup *group_;
65  vector<GWt_dialog*> eDialog_;
66  WContainerWidget* toto_;
67  string nameOfCase_;
68
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.