Definition at line 453 of file Plot.h. References Impala::Visualization::Plot::Plot::Axis::GetTick(), Impala::Visualization::Plot::Plot::Axis::GetTickCount(), mAxisX, mAxisY, mFontBase, OglGui::OglWindow::mOglWnd, Pixel2Window(), and UpdateAxes(). Referenced by DisplayFunc(). 00454 { 00455 UpdateAxes(); 00456 if (!mFontBase) 00457 FindOglFont(mOglWnd, 0, &mFontBase); 00458 00459 glColor3d(1,1,0); 00460 double x1,y1,tick; 00461 Pixel2Window(4, 4, x1, y1); 00462 00463 int i; 00464 for(i=0 ; i<mAxisX.GetTickCount() ; i++) 00465 { 00466 tick = mAxisX.GetTick(i); 00467 glRasterPos3d(tick, y1, 0); 00468 std::ostringstream os; 00469 os << tick; 00470 oglSys.PrintFont(mFontBase, (char*) os.str().c_str()); 00471 } 00472 for(i=0 ; i<mAxisY.GetTickCount() ; i++) 00473 { 00474 tick = mAxisY.GetTick(i); 00475 glRasterPos3d(x1, tick, 0); 00476 std::ostringstream os; 00477 os << tick; 00478 oglSys.PrintFont(mFontBase, (char*) os.str().c_str()); 00479 } 00480 00481 double x2,y2; 00482 Pixel2Window(20, 20, x1, y1); 00483 Pixel2Window(mOglWnd->width-20, mOglWnd->height-20, x2, y2); 00484 glBegin(GL_LINE_STRIP); 00485 glVertex2d(x2,y1); 00486 glVertex2d(x1,y1); 00487 glVertex2d(x1,y2); 00488 glEnd(); 00489 00490 glColor3d(0.6,0.6,0); 00491 glBegin(GL_LINES); 00492 for(i=0 ; i<mAxisX.GetTickCount() ; i++) 00493 { 00494 tick = mAxisX.GetTick(i); 00495 glVertex3d(tick, y1, 0); 00496 glVertex3d(tick, y2, 0); 00497 } 00498 for(i=0 ; i<mAxisY.GetTickCount() ; i++) 00499 { 00500 tick = mAxisY.GetTick(i); 00501 glVertex3d(x1, tick, 0); 00502 glVertex3d(x2, tick, 0); 00503 } 00504 glEnd(); 00505 00506 }
Here is the call graph for this function:
|