Definition at line 105 of file ShotDetailSidebar.h. References OglGui::ALLSIDES, OglGui::B2T, OglGui::OglWindow::ConnectTo(), OglGui::TextEdit::Editable(), Impala::Core::VideoSet::SegmentationDocument::GetVideoSet(), OglGui::L2L, mPrecalcResults, mSegDoc, mSetFrames, mSetFramesShown, mShotDetailText, mShotKeyframes, mShotPreview, mShotPreviewImage, mShotPreviewView, mShotSimilarityPreview, mShowPreviewBars, mSidebarListener, mStills, mThreadSet, mThumbHeight, mThumbWidth, mVisualQueryEngine, OglGui::R2R, OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderType(), OglGui::T2T, OglGui::Window::Window(), OglGui::OglWindow::WndHeight(), and OglGui::OglWindow::WndWidth(). 00107 { 00108 mThreadSet = threadset; 00109 mSegDoc = segDoc; 00110 mThumbWidth = (thumbW / 4) * 3; 00111 mThumbHeight = (thumbH / 4) * 3; 00112 mShotPreviewView = NULL; 00113 mSidebarListener = NULL; 00114 mShotPreviewImage = NULL; 00115 mShowPreviewBars = false; 00116 mPrecalcResults = 20; 00117 00118 mVisualQueryEngine = new VisualQueryEngine(mThreadSet, mPrecalcResults); 00119 00120 mStills = new Core::VideoSet::Stills(segDoc->GetVideoSet(), "stills"); 00121 00122 int xpos, ypos, xwid, ywid; 00123 int labelBackColor = oglTrLIGHTGREY; 00124 00125 xwid = mThumbWidth + 4; 00126 ywid = mThumbHeight + 4; 00127 xpos = (WndWidth() - xwid) / 2; 00128 ypos = WndHeight() - 6; 00129 mShotPreview = new Window(this, xpos, ypos-ywid, xwid, ywid, true); 00130 mShotPreview->ConnectTo(this, L2L|R2R|T2T|B2T); 00131 00132 xpos = 2; 00133 ypos -= ywid + 6; 00134 xwid = WndWidth() - 4; 00135 ywid = 20; 00136 StaticText* labelStills = 00137 new StaticText(this, xpos, ypos-ywid, xwid, ywid, "Shot samples:"); 00138 labelStills->ConnectTo(this, T2T|B2T); 00139 labelStills->SetBackground(labelBackColor); 00140 00141 xpos = 2; 00142 ypos -= ywid + 1; 00143 xwid = WndWidth() - 4; 00144 ywid = (int)(mThumbHeight / 3.0f) + 20; 00145 mShotKeyframes = new Window(this, xpos, ypos-ywid, xwid, ywid, true); 00146 mShotKeyframes->ConnectTo(this, L2L|R2R|T2T|B2T); 00147 00148 xpos = 2; 00149 ypos -= ywid + 8; 00150 xwid = WndWidth() - 4; 00151 ywid = 20; 00152 StaticText* labelDetails = 00153 new StaticText(this, xpos, ypos-ywid, xwid, ywid, "Information:"); 00154 labelDetails->ConnectTo(this, T2T|B2T); 00155 labelDetails->SetBackground(labelBackColor); 00156 00157 xpos = 2; 00158 ypos -= ywid + 1; 00159 xwid = WndWidth() - 4; 00160 ywid = 88; 00161 mShotDetailText = new OglGui::TextEdit(this, xpos, ypos-ywid, xwid, 00162 ywid, "Shot details here", 0); 00163 mShotDetailText->Editable(false); 00164 mShotDetailText->SetBackground(0); 00165 mShotDetailText->SetBorderType(0); 00166 mShotDetailText->ConnectTo(this, L2L|R2R|T2T|B2T); 00167 00168 xpos = 2; 00169 ypos -= ywid + 1; 00170 xwid = WndWidth() - 4; 00171 ywid = 20; 00172 StaticText* labelSimilars = 00173 new StaticText(this, xpos, ypos-ywid, xwid, ywid, "Similarity:"); 00174 labelSimilars->ConnectTo(this, T2T|B2T); 00175 labelSimilars->SetBackground(labelBackColor); 00176 00177 xpos = 2; 00178 ypos -= ywid + 1; 00179 xwid = WndWidth() - 4; 00180 ywid = ypos - 4; 00181 mShotSimilarityPreview = new Window(this,xpos,ypos-ywid,xwid,ywid,true); 00182 mShotSimilarityPreview->ConnectTo(this, ALLSIDES); 00183 00184 mSetFramesShown = mShotKeyframes->WndWidth() / (int)(thumbW/3.0f) + 1; 00185 mSetFrames = new Visualization::ImageSet(mShotKeyframes,thumbW, thumbH, 00186 0.33, mSetFramesShown, 1); 00187 mSetFrames->SetMakeViewWithRect(true); 00188 mSetFrames->ActivateInfoBox(false); 00189 //mSetFrames->SetImagesListener(this, 0); 00190 }
Here is the call graph for this function:
|