Changeset 56 in PSPA for Interface_Web/trunk/pspaWT/include


Ignore:
Timestamp:
Nov 7, 2012, 10:22:55 AM (12 years ago)
Author:
lemeur
Message:

developpements sur particleBeam

Location:
Interface_Web/trunk/pspaWT/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h

    r54 r56  
    1919class PspaApplication : public WApplication
    2020{
    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
    2332  WWidget* createPalette();
    2433  WWidget* createBeamLine();
     
    2736                  const char *mimeType,
    2837                  WContainerWidget *p);
     38
     39  void executer();
     40  void sauver();
     41  void restaurer();
     42
     43
     44  void faireDessin();
     45
     46public:
     47  PspaApplication(const WEnvironment& env);
     48  inline dataManager* getDataManager() const
     49  {
     50    return dtmanage_;
     51  }
     52
     53
    2954  inline void addConsoleMessage(WString msg) {
    3055    console_->setText   (console_->text()+msg+"\n");   
    3156  }
    3257
    33   inline dataManager* getDataManager() const
    34   {
    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_;
    4558};
    4659
  • Interface_Web/trunk/pspaWT/include/bareParticle.h

    r54 r56  
    3434~bareParticle() {;}
    3535
     36 inline bareParticle& operator = (const bareParticle& bp)
     37   {
     38     position_ = bp.position_;
     39     betagamma_ = bp.betagamma_;
     40     gamma_ = bp.gamma_;
     41     return *this;
     42   }
    3643
    3744 bareParticle(const TRIDVECTOR&  pos , const TRIDVECTOR& bg)
  • Interface_Web/trunk/pspaWT/include/dataManager.h

    r54 r56  
    2929  inline globalParameters* getGlobalParameters()  {return &globParam_;}
    3030  inline elementsCollection* getCollection() {return &elementsGallery_;}
     31  inline particleBeam& getCurrentBeam() {return currentBeam_;}
    3132  abstractElement* addElement(nomdElement elemType);
    3233  abstractElement* addCell();
  • Interface_Web/trunk/pspaWT/include/particleBeam.h

    r54 r56  
    3636{
    3737
     38  bool particleRepresentationOk_;
     39  bool momentRepresentationOk_;
    3840
    39 
     41  bareParticle referenceParticle_;
    4042
    4143  vector<bareParticle> goodPartic_;
     44
     45      vector< vector<double> > rij_transportMoments_;
     46
     47      vector<double> centroid_;
    4248
    4349
    4450
    4551
     52      void buildMomentRepresentation();
     53
    4654 public:
    4755
    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   }
    4969
    5070  ~particleBeam() {;}
Note: See TracChangeset for help on using the changeset viewer.