Definition at line 25 of file mainPlay.cpp. References Impala::Visualization::AppController::AddControl(), Impala::CmdOptions::GetDouble(), Impala::CmdOptions::GetInstance(), Impala::Visualization::AppController::Instance(), Impala::Visualization::AppController::MainLoop(), OglGui::Window::MapKeysTo(), mRoiHeight, mRoiWidth, mVideoNav, mViewScale, mVp, mZoomedIm, mZoomFac, OglGui::OglWindow::SetAlwaysDraw(), Impala::Visualization::AppControlSrc::SetSrc(), and Impala::Visualization::VideoNav::SetVideoNavListener(). 00026 : 00027 Window(x, y, SuggestWndWidth(1, src->FrameWidth()) + (doZoom ? 270 : 0), 00028 SuggestWndHeight(1, src->FrameHeight()) + 25 + 25, mainIs2d), 00029 AppControlSrc(1) 00030 { 00031 CmdOptions& options = CmdOptions::GetInstance(); 00032 SetSrc(src); // tell AppControlSrc about src 00033 AppController::Instance().AddControl((AppControlSrc*) this, true); 00034 00035 mViewScale = options.GetDouble("viewScale"); 00036 mVideoNav = new VideoNav(this, src); 00037 mVideoNav->SetVideoNavListener(this); 00038 mRoiWidth = 32; 00039 mRoiHeight = 32; 00040 mZoomFac = 5; 00041 int zWidth = mRoiWidth * mZoomFac; 00042 int zHeight = mRoiHeight * mZoomFac; 00043 mZoomedIm = 00044 (doZoom) ? ArrayCreate<Array2dVec3UInt8>(zWidth, zHeight) : 0; 00045 mVp = 00046 (doZoom) ? MakeViewport(zWidth+40, zHeight+40, vpIs2d) : 0; 00047 00048 #if defined(OGL_USING_GLUT) && !defined(APP_CONTROLLER_ALT) 00049 SetAlwaysDraw(); // UpdateScene() doesn't work. 00050 #endif 00051 MapKeysTo(mVideoNav); 00052 AppController::Instance().MainLoop(); 00053 }
Here is the call graph for this function:
|