Changeset 854
- Timestamp:
- Jan 18, 2008, 6:39:54 PM (17 years ago)
- Location:
- trunk/vizservers/nanovis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/nanovis/NvColorTableRenderer.cpp
r580 r854 20 20 21 21 glViewport(0, 0, width, height); 22 22 23 glMatrixMode(GL_PROJECTION); 23 24 glPushMatrix(); 24 25 glLoadIdentity(); 25 26 gluOrtho2D(0, width, 0, height); 27 26 28 glMatrixMode(GL_MODELVIEW); 27 29 glPushMatrix(); … … 44 46 _fonts->resize(width, height); 45 47 _fonts->begin(); 48 46 49 glPushMatrix(); 47 glTranslatef(width - 110, 5, 0.0f);48 _fonts->draw("Quantum dot lab - www.nanohub.org");50 glTranslatef(width - 110, 5, 0.0f); 51 _fonts->draw("Quantum dot lab - www.nanohub.org"); 49 52 glPopMatrix(); 53 50 54 glPushMatrix(); 51 glTranslatef(30, height - 25, 0.0f);52 _fonts->draw("%.08lf", rangeMin);55 glTranslatef(30, height - 25, 0.0f); 56 _fonts->draw("%.08lf", rangeMin); 53 57 glPopMatrix(); 58 54 59 glPushMatrix(); 55 glTranslatef(width - 110, height - 25, 0.0f); 56 _fonts->draw("%.08lf", rangeMax); 60 glTranslatef(width - 110, height - 25, 0.0f); 61 _fonts->draw("%.08lf", rangeMax); 62 glPopMatrix(); 63 57 64 _fonts->end(); 58 65 } -
trunk/vizservers/nanovis/nanovis.cpp
r851 r854 1350 1350 //assert(glGetError()==0); 1351 1351 1352 //lic->convolve(); //flow line integral convolution1353 //psys->advect(); //advect particles1354 1355 1352 //start final rendering 1356 1353 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear screen … … 1395 1392 } 1396 1393 1397 glPushMatrix(); 1394 // TBD : This will be removed after being sure that all the functions work well. 1395 //glPushMatrix(); 1396 1398 1397 //now render things in the scene 1399 1398 if (axis_on) { … … 1414 1413 particleRenderer->render(); 1415 1414 } 1416 //lic->render(); //display the line integral convolution result1417 1415 //soft_display_verts(); 1418 1416 //perf->enable(); 1419 //psys->render();1420 1417 //perf->disable(); 1421 1418 //fprintf(stderr, "particle pixels: %d\n", perf->get_pixel_count()); 1422 1419 //perf->reset(); 1423 1420 1424 perf->enable();1421 //perf->enable(); 1425 1422 vol_renderer->render_all(); 1423 //perf->disable(); 1426 1424 1427 perf->disable(); 1428 1429 for (unsigned int i = 0; i < heightMap.size(); ++i) { 1425 for (unsigned int i = 0; i < heightMap.size(); ++i) 1426 { 1430 1427 if (heightMap[i]->isVisible()) { 1431 1428 heightMap[i]->render(renderContext); 1432 }1429 } 1433 1430 } 1434 1431 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.