Changeset 574 in Sophya for trunk/SophyaLib/Samba/pixelmap.h


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/pixelmap.h

    r568 r574  
    8484// overloading of (int,int)     in CartesianMap
    8585
     86/*! Setting pixel values to a constant */
     87virtual T SetPixels(T v);
     88inline T operator = (T v) { return(SetPixels(v)); }
     89                     
    8690//++
    8791DVList& Info()
     
    118122return(ContainsSph(v.Theta(), v.Phi()));
    119123}
     124template <class T>
     125T PixelMap<T>::SetPixels(T v)
     126{
     127int k;
     128for(k=0; k<NbPixels(); k++) PixVal(k) = v;
     129return(v);
     130}
    120131
    121132#endif
Note: See TracChangeset for help on using the changeset viewer.