Ignore:
Timestamp:
Nov 12, 1999, 4:03:09 PM (26 years ago)
Author:
ansari
Message:

ajout arg share ds constructeurs, et methode ContainsSph ds localmap.cc et operateur = , Reza 12/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/spherethetaphi.cc

    r565 r574  
    6161
    6262template <class T>
    63 SphereThetaPhi<T>::SphereThetaPhi(const SphereThetaPhi<T>& s)
     63SphereThetaPhi<T>::SphereThetaPhi(const SphereThetaPhi<T>& s, bool share)
     64  : pixels_(s.pixels_ , share)
    6465{
    6566  if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);
     
    193194{
    194195  double dphi;
    195   int i,j,k;
     196  int i,k;
    196197  bool fgzn = false;
    197198
     
    238239  phi= DeuxPi/(double)NPhi_[i]*(double)(k+.5);
    239240  if (fgzn) phi= DeuxPi-phi;
     241}
     242
     243template <class T>
     244T SphereThetaPhi<T>::SetPixels(T v)
     245{
     246pixels_.Reset(v);
     247return(v);
    240248}
    241249
     
    483491//--
    484492{
    485   int ntotpix,i,j;
     493  int ntotpix,j;
    486494 
    487495  // Decodage et controle des arguments d'appel :
     
    685693FIO_SphereThetaPhi<T>::FIO_SphereThetaPhi(const SphereThetaPhi<T>& obj)
    686694{
    687   dobj= new SphereThetaPhi<T>(obj);
     695  dobj= new SphereThetaPhi<T>(obj, true);
    688696  ownobj= true;
    689697}
Note: See TracChangeset for help on using the changeset viewer.