Changeset 56 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Nov 7, 2012, 10:22:55 AM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h
r54 r56 19 19 class PspaApplication : public WApplication 20 20 { 21 public: 22 PspaApplication(const WEnvironment& env); 21 22 23 private : 24 WTextArea* console_; 25 dataManager* dtmanage_; 26 WWidget* globalParam_; 27 WWidget* beamLine_; 28 WContainerWidget* leDessin_; 29 30 31 23 32 WWidget* createPalette(); 24 33 WWidget* createBeamLine(); … … 27 36 const char *mimeType, 28 37 WContainerWidget *p); 38 39 void executer(); 40 void sauver(); 41 void restaurer(); 42 43 44 void faireDessin(); 45 46 public: 47 PspaApplication(const WEnvironment& env); 48 inline dataManager* getDataManager() const 49 { 50 return dtmanage_; 51 } 52 53 29 54 inline void addConsoleMessage(WString msg) { 30 55 console_->setText (console_->text()+msg+"\n"); 31 56 } 32 57 33 inline dataManager* getDataManager() const34 {35 return dtmanage_;36 }37 void executer();38 void sauver();39 void restaurer();40 private :41 WTextArea* console_;42 dataManager* dtmanage_;43 WWidget* globalParam_;44 WWidget* beamLine_;45 58 }; 46 59 -
Interface_Web/trunk/pspaWT/include/bareParticle.h
r54 r56 34 34 ~bareParticle() {;} 35 35 36 inline bareParticle& operator = (const bareParticle& bp) 37 { 38 position_ = bp.position_; 39 betagamma_ = bp.betagamma_; 40 gamma_ = bp.gamma_; 41 return *this; 42 } 36 43 37 44 bareParticle(const TRIDVECTOR& pos , const TRIDVECTOR& bg) -
Interface_Web/trunk/pspaWT/include/dataManager.h
r54 r56 29 29 inline globalParameters* getGlobalParameters() {return &globParam_;} 30 30 inline elementsCollection* getCollection() {return &elementsGallery_;} 31 inline particleBeam& getCurrentBeam() {return currentBeam_;} 31 32 abstractElement* addElement(nomdElement elemType); 32 33 abstractElement* addCell(); -
Interface_Web/trunk/pspaWT/include/particleBeam.h
r54 r56 36 36 { 37 37 38 bool particleRepresentationOk_; 39 bool momentRepresentationOk_; 38 40 39 41 bareParticle referenceParticle_; 40 42 41 43 vector<bareParticle> goodPartic_; 44 45 vector< vector<double> > rij_transportMoments_; 46 47 vector<double> centroid_; 42 48 43 49 44 50 45 51 52 void buildMomentRepresentation(); 53 46 54 public: 47 55 48 particleBeam() {;} 56 particleBeam() 57 { 58 rij_transportMoments_.resize(6); 59 unsigned dim=0; 60 unsigned k; 61 for ( k=0; k < 6; k++) 62 { 63 rij_transportMoments_.at(k).resize(++dim); 64 } 65 particleRepresentationOk_ = false; 66 momentRepresentationOk_ = false; 67 68 } 49 69 50 70 ~particleBeam() {;}
Note: See TracChangeset
for help on using the changeset viewer.