Definition at line 64 of file VideoNav.h. References Impala::Core::Stream::RgbDataSrc::FrameHeight(), Impala::Core::Stream::RgbDataSrc::FrameWidth(), OglGui::Window::GetParent(), mLastFrameHeight, mLastFrameWidth, mSrc, mViewScale, OglGui::OglWindow::SetDimensions(), OglGui::OglWindow::WndHeight(), and OglGui::OglWindow::WndY(). Referenced by Impala::Visualization::VxsDocumentGuiPlay::HandleNewFile(). 00065 { 00066 mSrc = src; 00067 if (!mSrc) 00068 { 00069 DeleteViewers(); 00070 return; 00071 } 00072 if ((mLastFrameWidth != mSrc->FrameWidth()) || 00073 (mLastFrameHeight != mSrc->FrameHeight())) 00074 { 00075 int border = (GetParent()) ? 2 : 0; 00076 int newWidth = mViewScale * mSrc->FrameWidth() + border; 00077 int newHeight = mViewScale * mSrc->FrameHeight() + border + 25; 00078 int dy = newHeight - WndHeight(); 00079 SetDimensions(RETAIN, WndY() - dy, newWidth, newHeight); 00080 DeleteViewers(); 00081 mLastFrameWidth = mSrc->FrameWidth(); 00082 mLastFrameHeight = mSrc->FrameHeight(); 00083 } 00084 }
Here is the call graph for this function:
|