Changeset 1984 for trunk/packages/vizservers/nanovis/NvLIC.cpp
- Timestamp:
- Dec 8, 2010, 2:03:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/NvLIC.cpp
r1515 r1984 153 153 NvLIC::make_patterns() 154 154 { 155 T race("begin make_patterns\n");155 TRACE("begin make_patterns\n"); 156 156 if (disListID > 0) { 157 157 glDeleteLists(disListID, Npat); … … 159 159 disListID = glGenLists(Npat); 160 160 161 T race("DisplayList : %d\n", disListID);161 TRACE("DisplayList : %d\n", disListID); 162 162 163 163 int lut[256]; … … 193 193 glTexImage2D(GL_TEXTURE_2D, 0, 4, NPN, NPN, 0, 194 194 GL_RGBA, GL_UNSIGNED_BYTE, pat); 195 T race("finish make_patterns\n");195 TRACE("finish make_patterns\n"); 196 196 } 197 197 … … 470 470 /* 471 471 { 472 //T race("RENDER LIC\n");472 //TRACE("RENDER LIC\n"); 473 473 //glBindTexture(GL_TEXTURE_2D, pattern_tex); 474 474 glCallList(1 % Npat + disListID); … … 505 505 float scaleX, float scaleY, float scaleZ, float max) 506 506 { 507 T race("NvLIC: vector field is assigned [%d]\n", texID);507 TRACE("NvLIC: vector field is assigned [%d]\n", texID); 508 508 _vectorFieldId = texID; 509 509 origin = ori; … … 524 524 int yi = (int) (y*size); 525 525 526 //T race("(xi yi) = (%d %d), ", xi, yi);526 //TRACE("(xi yi) = (%d %d), ", xi, yi); 527 527 vx = slice_vector[4 * (xi+yi*size)]; 528 528 vy = slice_vector[4 * (xi+yi*size)+1]; 529 529 r = vx*vx + vy*vy; 530 530 531 //T race("(vx vx) = (%f %f), r=%f, ", vx, vy, r);531 //TRACE("(vx vx) = (%f %f), r=%f, ", vx, vy, r); 532 532 if (r > (dmax*dmax)) { 533 533 r = sqrt(r); … … 539 539 *py = y + vy; 540 540 541 //T race("vel %f %f -> %f %f, (dmax = %f)\n", x, y, *px, *py, dmax);541 //TRACE("vel %f %f -> %f %f, (dmax = %f)\n", x, y, *px, *py, dmax); 542 542 } 543 543
Note: See TracChangeset
for help on using the changeset viewer.