Changeset 344 in Sophya for trunk/SophyaPI/PIext/pistlist.cc


Ignore:
Timestamp:
Aug 2, 1999, 6:52:49 PM (26 years ago)
Author:
ercodmgr
Message:

1/ Extension de fonctionalites de gestion de repertoires (Lock, ...)
2/ Plus de NTupIntf_Adapter quand les objets heritent de NTupleInterface
3/ Support pour affichage info texte, ds PINtuple et PIStarList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistlist.cc

    r205 r344  
    101101}
    102102
     103/* --Methode-- */
     104void PIStarList::AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax)
     105{
     106BStar *sti;
     107double xp,yp;
     108double flx,fnd;
     109char buff[128];
     110int ncnt = 0;
     111sprintf(buff,"PIStarList: NStars \n", mStL->NbStars() );
     112info += buff;
     113info += "  Num:   XPos       YPos     Flux      Fond \n";
     114for (int i=0; i<mStL->NbStars(); i++) {
     115  sti = mStL->Star(i);
     116  if ( !(sti->Nice(BStar::flagOK)) )  continue;
     117  flx = sti->Flux();
     118  if ( (flx < mFmin) || (flx > mFmax) )  continue;
     119  xp = sti->PosX();   yp = sti->PosY();
     120  if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) )  continue;
     121  ncnt++;
     122  if (ncnt > 101) continue;
     123  fnd = sti->Fond();
     124  sprintf(buff,"%6d: %8.3g %8.3g %8.3g %8.3g \n", i, xp, yp, flx, fnd);
     125  info += buff;
     126  }
     127if (ncnt >= 101) info += " .... \n";
     128sprintf(buff," %d stars inside selected region \n", ncnt);
     129info += buff;
     130return;
     131}
Note: See TracChangeset for help on using the changeset viewer.