Changeset 344 in Sophya for trunk/SophyaPI/PIext/pintuple.cc
- Timestamp:
- Aug 2, 1999, 6:52:49 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pintuple.cc
r336 r344 97 97 msz = mMSz; 98 98 if (msz < 1) msz = 1; 99 g->SelMarker( sz, mrk);99 g->SelMarker(msz, mrk); 100 100 101 101 nok = 0; … … 136 136 } 137 137 138 /* --Methode-- */ 139 void PINTuple::AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax) 140 { 141 if (!mNT) return; 142 if ( (xK < 0) || (yK < 0) ) return; 143 144 int ncnt = 0; 145 double xp,yp; 146 char buff[128]; 147 sprintf(buff,"PINTuple: NLines= %d NCol= %d \n", mNT->NbLines(), mNT->NbColumns()); 148 info += buff; 149 info += mNT->LineHeaderToString(); 150 for (int i=0; i<mNT->NbLines(); i++) { 151 xp = mNT->GetCell(i, xK); 152 yp = mNT->GetCell(i, yK); 153 if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) ) continue; 154 ncnt++; 155 if (ncnt > 101) continue; 156 info += mNT->LineToString(i); 157 } 158 if (ncnt >= 101) info += " .... \n"; 159 sprintf(buff," %d points inside selected region \n", ncnt); 160 info += buff; 161 // printf("PINTuple::AppendTextInfo()-DBG %g %g %g %g - %d\n", xmin, ymin, xmax, ymax, ncnt); 162 return; 163 }
Note:
See TracChangeset
for help on using the changeset viewer.