Changeset 3713 in Sophya for trunk/SophyaPI/PIext/pitvmaad.h


Ignore:
Timestamp:
Dec 11, 2009, 9:57:10 AM (16 years ago)
Author:
ansari
Message:

Ajout options afichage cdreal,cdimag,cdphas,cdmod,cdmod2 pour tableaux complexes, Reza 11/12/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pitvmaad.h

    r3520 r3713  
    1313#include "tvector.h"
    1414
     15// Definition d'enum pour choix de la quantite affichee pour les tableaux de complexes.
     16enum PICmplxDispOption { PICDO_Module, PICDO_Real, PICDO_Imag, PICDO_Phase, PICDO_Module2 };
     17// Decode la presence d'une chaine opt contenant cdreal , cdimag , cdphase , cdmod , cdmod2
     18PICmplxDispOption StringToCmplxDispOption( string & opt );
    1519
    1620// Adaptateur de vecteurs SOPHYA a P1DArrayAdapter
     
    1822class POTVectorAdapter : public P1DArrayAdapter {
    1923public :
    20                   POTVectorAdapter(TVector<T>* v, bool ad=false);
     24  POTVectorAdapter(TVector<T>* v, bool ad=false, PICmplxDispOption dopt=PICDO_Module);
    2125  virtual         ~POTVectorAdapter();
    2226  virtual double  Value(int i);
    2327
    2428protected:
     29  PICmplxDispOption dOpt;
    2530  bool aDel;
    2631  TVector<T>* mVec;
     
    3540class POTMatrixAdapter :  public P2DArrayAdapter {
    3641public :
    37                   POTMatrixAdapter(TMatrix<T>* mtx, bool ad=false);
     42  POTMatrixAdapter(TMatrix<T>* mtx, bool ad=false, PICmplxDispOption dopt=PICDO_Module);
    3843  virtual         ~POTMatrixAdapter();
    3944  virtual double  Value(int ix, int iy);
     
    4146
    4247protected:
     48  PICmplxDispOption dOpt;
    4349  bool aDel;
    4450  TMatrix<T>* mMtx;
Note: See TracChangeset for help on using the changeset viewer.