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/nomtmatvecadapter.cc

    r3661 r3713  
    234234else {
    235235  dopt = "thinline " + dopt;
    236   return( new PIYfXDrawer( new POTVectorAdapter<T>(v, false), NULL, true) );
    237   }
    238 }
    239 
    240 /* --Methode-- */
    241 template <class T>
    242 P2DArrayAdapter* NOMAdapter_TMatrix<T>::Get2DArray(string &)
     236  return( new PIYfXDrawer( new POTVectorAdapter<T>(v, false, StringToCmplxDispOption(dopt)), NULL, true) );
     237  }
     238}
     239
     240/* --Methode-- */
     241template <class T>
     242P2DArrayAdapter* NOMAdapter_TMatrix<T>::Get2DArray(string & dopt)
    243243{
    244244Image<T>* img = dynamic_cast<Image<T> *>(mMtx);
    245245if (img != NULL) return ( new ImageAdapter<T>(img, false) );
    246 else return ( new POTMatrixAdapter<T>(mMtx, false) );
    247 }
     246 else return ( new POTMatrixAdapter<T>(mMtx, false, StringToCmplxDispOption(dopt)) );
     247}
     248
    248249
    249250// ---- Specialisation pour complexes -----
    250251DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    251 P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_4> >::Get2DArray(string &)
    252 {
    253 return ( new POTMatrixAdapter< complex<r_4> >(mMtx, false) );
    254 }
    255 DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    256 P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_8> >::Get2DArray(string &)
    257 {
    258 return ( new POTMatrixAdapter< complex<r_8> >(mMtx, false) );
     252P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_4> >::Get2DArray(string & dopt)
     253{
     254  return ( new POTMatrixAdapter< complex<r_4> >(mMtx, false, StringToCmplxDispOption(dopt) ) );
     255}
     256DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
     257P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_8> >::Get2DArray(string & dopt)
     258{
     259  return ( new POTMatrixAdapter< complex<r_8> >(mMtx, false, StringToCmplxDispOption(dopt) ) );
    259260}
    260261// -------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.