Changeset 84 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Nov 19, 2012, 9:18:48 AM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_cell.h
r83 r84 8 8 #include "abstractElement.h" 9 9 10 #include <Wt/WContainerWidget>10 //#include <Wt/WContainerWidget> 11 11 12 12 #include <iostream> … … 19 19 class GWt_cell : public GWt_abstractElement 20 20 { 21 /* PspaApplication* pspa_; */22 /* abstractElement* cell_; */23 /* WDialog* dialog_; */24 /* WPushButton* dropped_; */25 21 26 22 WLineEdit* lenghtElemEdit_; // cm … … 43 39 44 40 45 //WPushButton* getButton();46 47 //void openParametersForm();48 49 41 virtual void dialogDone(); 50 42 }; -
Interface_Web/trunk/pspaWT/include/dataManager.h
r82 r84 57 57 abstractElement* addInitialBeam(); 58 58 abstractElement* addSoleno(); 59 abstractElement* addBend(); 59 60 void initializeExecution(); 60 61 string executeTransport( unsigned int indexDeb, unsigned int indexFin); -
Interface_Web/trunk/pspaWT/include/elementBend.h
r82 r84 6 6 #include "abstractElement.h" 7 7 #include "mathematicalTools.h" 8 #include "MathematicalConstants.h" 9 #include "PhysicalConstants.h" 8 //#include "PhysicalConstants.h" 10 9 11 10 … … 13 12 14 13 // aimant dipolaire, DANS LE PLAN XZ (le champ est dans la direction Y) 14 15 15 16 class elementBend : public abstractElement 16 17 { 17 18 18 double gammaBetaRef_; // peut-etre pas necessaire 19 double alphaRadians_; 20 double B0_; // en unites internes ( cm^(-1) ) 21 double rho_; // cm 19 double angleDeg_; // deg. 20 double radius_; // m 21 double beta1_; // deg. 22 double beta2_; // deg. 23 24 double angleDegDef_; // deg. 25 double radiusDef_; // m 26 double beta1Def_; // deg. 27 double beta2Def_; // deg. 28 29 30 31 void setDefaultValues(); 32 void setDefaults(); 33 34 22 35 public: 23 36 24 elementBend() : abstractElement() {elementName_ = bend;} 25 26 elementBend(string lab) ; 27 37 elementBend(); 28 38 29 39 ~elementBend() {;} 30 40 41 double getLenghtOfElement() const; 31 42 32 virtual void setParametersString(string* param)33 {34 ostringstream sortie;35 cout << " BEND :setParametersString non programme " << endl;36 return sortie.str();37 }38 43 39 virtual string* getParametersString() const 40 { 41 ostringstream sortie; 42 cout << " BEND :getParametersString non programme " << endl; 43 return sortie.str(); 44 } 44 virtual void setParametersString(string* param); 45 46 virtual string* getParametersString() const; 45 47 46 48 virtual string parmelaOutputFlow() const … … 51 53 } 52 54 53 virtual string transportOutputFlow() const 54 { 55 ostringstream sortie; 56 cout << " BEND sortie transport non programmee " << endl; 57 return sortie.str(); 58 } 55 virtual string transportOutputFlow() const; 59 56 60 virtual string FileOutputFlow() const 61 { 62 ostringstream sortie; 63 cout << " BEND sortie fichier non programmee " << endl; 64 return sortie.str(); 65 } 57 virtual string FileOutputFlow() const; 66 58 59 virtual void FileInput(ifstream& ifs); 67 60 68 virtual void FileInput(ifstream& ifs)69 {70 cout << " BEND lecture fichier non programmee " << endl;71 }72 61 }; 73 62 -
Interface_Web/trunk/pspaWT/include/elementDrift.h
r82 r84 24 24 virtual string parmelaOutputFlow() const; 25 25 26 virtual string transportOutputFlow() const 27 { 28 ostringstream sortie; 29 cout << " DRIFT sortie transport non programmee " << endl; 30 return sortie.str(); 31 } 26 virtual string transportOutputFlow() const; 32 27 33 28 -
Interface_Web/trunk/pspaWT/include/elementSoleno.h
r82 r84 6 6 #include "abstractElement.h" 7 7 8 #include "mathematicalTools.h"9 #include "PhysicalConstants.h"8 //#include "mathematicalTools.h" 9 //#include "PhysicalConstants.h" 10 10 11 11 using namespace std; … … 28 28 elementSoleno(); 29 29 30 /* elementSoleno(string lab) : abstractElement(lab) */31 /* { */32 /* elementName_ = sole; */33 /* cout << " creation d'un SOLENOIDE l= " << ll << ", ap= " << ap << ", pas max " << stepmaxcm_ << endl; */34 35 /* B0_ = GAUSSToCMm1*BGauss; */36 /* cout << " champ (Gauss) " << BGauss << ", (cm-1) " << B0_ << endl; */37 /* } */38 39 30 ~elementSoleno() {;} 40 31 -
Interface_Web/trunk/pspaWT/include/elementsCollection.h
r82 r84 10 10 #include "elementCell.h" 11 11 #include "elementSoleno.h" 12 #include "elementBend.h" 12 13 13 14 … … 73 74 } 74 75 76 inline abstractElement* createNewBend() 77 { 78 elements_.push_back(new elementBend()); 79 return elements_.back(); 80 } 81 75 82 76 83 -
Interface_Web/trunk/pspaWT/include/particleBeam.h
r59 r84 3 3 #include <iostream> 4 4 #include <sstream> 5 #include <stdio.h> 5 6 6 7 #include<cmath> … … 72 73 void setFromParmela(double referencefrequency); 73 74 75 void setFromTransport(ifstream& inp, unsigned nblignes); 74 76 75 77 inline void clear()
Note: See TracChangeset
for help on using the changeset viewer.