Changeset 574 in Sophya for trunk/SophyaLib/Samba/localmap.cc


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

    r568 r574  
    107107//++
    108108template<class T>
    109 LocalMap<T>::LocalMap(const LocalMap<T>& lm)
     109LocalMap<T>::LocalMap(const LocalMap<T>& lm, bool share)
     110  : pixels_(lm.pixels_, share)
     111
    110112//
    111113//    copy constructor
     
    131133  tgAngleX_= lm.tgAngleX_;
    132134  tgAngleY_= lm.tgAngleY_;
    133   pixels_= lm.pixels_;
    134135}
    135136
     
    210211    }
    211212  return *(pixels_.Data()+k);
     213}
     214
     215template<class T>
     216bool LocalMap<T>::ContainsSph(double theta, double phi) const
     217{
     218// $CHECK$  Reza 11/11/99 - A modifier
     219return(true);
    212220}
    213221
     
    281289  // retour au plan utilisateur
    282290  ReferenceToUser(theta, phi);
     291}
     292
     293template <class T>
     294T LocalMap<T>::SetPixels(T v)
     295{
     296pixels_.Reset(v);
     297return(v);
    283298}
    284299 
     
    584599//--
    585600{
    586   dobj= new LocalMap<T>(obj);
     601  dobj= new LocalMap<T>(obj, true);
    587602  ownobj= true;
    588603}
Note: See TracChangeset for help on using the changeset viewer.