- Timestamp:
- 08/01/13 12:06:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Plotter2.cpp
r2830 r2834 182 182 info->xData.clear(); 183 183 info->xData.reserve(inXData.size()); 184 for (u int i = 0; i < inXData.size(); ++i) {184 for (unsigned int i = 0; i < inXData.size(); ++i) { 185 185 info->xData.push_back(inXData[i]); 186 186 … … 192 192 info->yData.clear(); 193 193 info->yData.reserve(inYData.size()); 194 for (u int i = 0; i < inYData.size(); ++i) {194 for (unsigned int i = 0; i < inYData.size(); ++i) { 195 195 info->yData.push_back(inYData[i]); 196 196 … … 231 231 maxYData = minYData; 232 232 233 for (u int i = 0; i < vData.size(); ++i) {234 for (u int j = 0; j < vData[i].xData.size(); ++j) {233 for (unsigned int i = 0; i < vData.size(); ++i) { 234 for (unsigned int j = 0; j < vData[i].xData.size(); ++j) { 235 235 updateXDataRange(vData[i].xData[j]); 236 236 updateYDataRange(vData[i].yData[j]); … … 352 352 void Plotter2::getViewInfo() { 353 353 std::cout << "===================" << std::endl << std::flush; 354 for (u int i = 0; i < vInfo.size(); ++i) {354 for (unsigned int i = 0; i < vInfo.size(); ++i) { 355 355 std::cout << "[" << i << "] " << std::endl; 356 356 std::cout << "vpPos: "; … … 367 367 368 368 std::cout << "vdatasize=" << vInfo[i].vData.size() << std::endl; 369 for (u int j = 0; j < vInfo[i].vData.size(); ++j) {369 for (unsigned int j = 0; j < vInfo[i].vData.size(); ++j) { 370 370 std::cout << "vdataxdatasize=" << vInfo[i].vData[j].xData.size() << ", "; 371 for (u int k = 0; k < vInfo[i].vData[j].xData.size(); ++k) {371 for (unsigned int k = 0; k < vInfo[i].vData[j].xData.size(); ++k) { 372 372 std::cout << "(" << vInfo[i].vData[j].xData[k] << ", "; 373 373 std::cout << vInfo[i].vData[j].yData[k] << ") "; … … 995 995 cpgscr(1, 0.0, 0.0, 0.0); // set foreground color black 996 996 997 for (u int i = 0; i < vInfo.size(); ++i) {997 for (unsigned int i = 0; i < vInfo.size(); ++i) { 998 998 Plotter2ViewportInfo vi = vInfo[i]; 999 999 … … 1022 1022 1023 1023 // data 1024 for (u int j = 0; j < vi.vData.size(); ++j) {1024 for (unsigned int j = 0; j < vi.vData.size(); ++j) { 1025 1025 cpgstbg(0); // reset background colour to the initial one (white) 1026 1026 cpgsci(1); // reset foreground colour to the initial one (black) … … 1062 1062 1063 1063 // masks 1064 for (u int j = 0; j < vi.vRect.size(); ++j) {1064 for (unsigned int j = 0; j < vi.vRect.size(); ++j) { 1065 1065 cpgstbg(0); // reset background colour to the initial one (white) 1066 1066 cpgsci(1); // reset foreground colour to the initial one (black)
Note:
See TracChangeset
for help on using the changeset viewer.