Definition at line 93 of file SimilarityTableSetRank.h. References Impala::Visualization::Plot::Plot::Add(), Impala::Core::Database::DataDocument::AddConcept(), Impala::Visualization::AppControlDoc::AddDocListener(), OglGui::StringSelector::AddString(), Impala::Visualization::Plot::Plot::AutoScale(), Impala::CmdOptions::GetBool(), Impala::Core::Table::SimilarityTableSet::GetDescription(), Impala::Core::ImageSet::IxsDocument::GetImageSet(), Impala::Core::VideoSet::SegmentationDocument::GetImSetKeyframes(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::Core::VideoSet::SegmentationDocument::GetKeyframes(), Impala::Core::Table::SimilarityTableSet::GetNames(), OglGui::OglWindow::GetOGLWND(), Impala::Visualization::Plot::Points::HighLightColor(), Impala::Visualization::ImageSetIdxGridScroller::ImSetIdxGrid(), info(), mAnno, mAnnoConcept, mAnnoSet, mCurConcept, mCurFileId, mDataDoc, mFloatWnd, mIdxGridTotalTxt, mImageSelected, mImagesSet, mImSetIdxGrid, mImSetIdxGridScroller, mInfoText, mIxsDoc, mKeyframes, mKeyframeSet, mLine1, mLine2, mLineData1, mLineData2, mLineSize1, mLineSize2, mNeedle2, mNrToShow, mOptionBits, mPlotLine1, mPlotLine2, mPlotPoints, mPoints, mPunsOnly, mQualifiedRanking, mRkfCheckBox, mSegDoc, mSelectedRanking, mShowNextFrom, mSimSet, mStartIm, mStringSelector, mVideoCheckBox, mVideoText, mViewWidth, OglGui::StaticText::SetAlign(), OglGui::OglWindow::SetBorderType(), OglGui::CheckBox::SetCheckBoxListener(), Impala::Visualization::Plot::Plottable::SetColor(), Impala::Core::Database::DataDocument::SetConcept(), Impala::Visualization::Plot::Plot::SetDrawAxes(), Impala::Visualization::ImageSetIdxGrid::SetImageSetIdxGridListener(), Impala::Visualization::ImagesWindow::SetImagesListener(), Impala::Visualization::ShowNextFromControl::SetListener(), Impala::Visualization::PunsOnlyControl::SetListener(), Impala::Visualization::Plot::Plottable::SetPlottableMouseListener(), OglGui::StringSelector::SetStringListener(), Impala::Visualization::ImagesWindow::SetViewSize(), OglGui::OglWindow::SetVisible(), and Impala::Visualization::ImageSetIdxGrid::ShowDims(). 00096 { 00097 mSimSet = simSet; 00098 mAnnoSet = annoSet; 00099 mImagesSet = 0; 00100 mImSetIdxGrid = 0; 00101 mIdxGridTotalTxt = 0;; 00102 00103 mShowNextFrom = 0; 00104 mCurConcept = -1; 00105 mAnno = 0; 00106 mAnnoConcept = -2; 00107 mQualifiedRanking = new AnnotationTable(); 00108 mSelectedRanking = new AnnotationTable(); 00109 mStartIm = 0; 00110 mLineSize1 = -1; 00111 mLineData1 = 0; 00112 mLineSize2 = -1; 00113 mLineData2 = 0; 00114 mPoints = 0; 00115 mFloatWnd = 0; 00116 mViewWidth = thumbWidth * viewScale + 0.5; 00117 00118 mOptionBits = -1; 00119 mCurFileId = -1; 00120 mImageSelected = -1; 00121 00122 CmdOptions& options = CmdOptions::GetInstance(); 00123 mNrToShow = options.GetInt("annoNrToShow", 200); 00124 int truthNrToShow = options.GetInt("annoNrToShowConceptsTruth",-1); 00125 int simNrToShow = options.GetInt("annoNrToShowConceptsSim",-1); 00126 int conNrToShow = options.GetInt("annoNrToShowConcepts",-1); 00127 if (showPlotPoint && truthNrToShow!=-1) 00128 mNrToShow = truthNrToShow; 00129 else if (showPlotLine && simNrToShow!=-1) 00130 mNrToShow = simNrToShow; 00131 else if (conNrToShow != -1) 00132 mNrToShow = conNrToShow; 00133 00134 mKeyframes = mSegDoc ? mSegDoc->GetKeyframes() : 0; 00135 mKeyframeSet = 00136 mSegDoc ? mSegDoc->GetImSetKeyframes(true) : mIxsDoc->GetImageSet(); 00137 AddDocListener(this); 00138 00139 mStringSelector = new OglGui::StringSelector(this, wndWidth, 60); 00140 mStringSelector->SetStringListener(this, 0); 00141 int heightUsed = 60; 00142 00143 mPlotLine1 = 0; 00144 mPlotLine2 = 0; 00145 if (showPlotLine) 00146 { 00147 mPlotLine1 = new Plot::Plot(this, wndWidth, 180); 00148 heightUsed += 180; 00149 mLine1 = new Visualization::Plot::Line(0); 00150 mPlotLine1->Add(mLine1); 00151 mPlotLine1->AutoScale(); 00152 mPlotLine1->SetDrawAxes(true); 00153 00154 mPlotLine2 = new Visualization::Plot::Plot(this, wndWidth, 180); 00155 heightUsed += 180; 00156 mLine2 = new Visualization::Plot::Line(0); 00157 mLine2->SetPlottableMouseListener(this,mPlotLine2); 00158 mPlotLine2->Add(mLine2); 00159 mPlotLine2->AutoScale(); 00160 mPlotLine2->SetDrawAxes(true); 00161 mNeedle2 = new Plot::PlotNeedle(0,1500,0,1,0); 00162 //mNeedle2->SetRoundOffset(0.6); 00163 mNeedle2->SetColor(1,(165./255),0); 00164 mPlotLine2->Add(mNeedle2); 00165 } 00166 00167 mPlotPoints = 0; 00168 if (showPlotPoint) 00169 { 00170 int h = mSegDoc ? 430 : 215; 00171 mPlotPoints = new Plot::Plot(this, wndWidth, h); 00172 heightUsed += h; 00173 mPoints = new Plot::Points(); 00174 mPoints->SetPlottableMouseListener(this,mPlotPoints); 00175 mPoints->HighLightColor(0xffffa500); 00176 mPlotPoints->Add(mPoints); 00177 //mPlotPoints->AutoScale(); 00178 mPlotPoints->SetDrawAxes(true); 00179 } 00180 00181 String info = (mSimSet) ? mSimSet->GetDescription() : "no sims"; 00182 mInfoText = new OglGui::TextArea(this, wndWidth/2 - 5, 20, info); 00183 mInfoText->SetBorderType(0); 00184 mVideoCheckBox = new OglGui::CheckBox(this, 100, 20, "OneVideo", false); 00185 mVideoCheckBox->SetCheckBoxListener(this, 0); 00186 00187 mVideoText = new OglGui::TextArea(this, wndWidth/2 - 110, 20, "empty"); 00188 mVideoText->SetBorderType(0); 00189 heightUsed += 20; 00190 00191 mRkfCheckBox = new OglGui::CheckBox(this, 110, 20, "Only RKF", false); 00192 mRkfCheckBox->SetCheckBoxListener(this, 0); 00193 if (!mSegDoc) 00194 { 00195 mVideoCheckBox->SetVisible(false); 00196 mVideoText->SetVisible(false); 00197 mRkfCheckBox->SetVisible(false); 00198 } 00199 00200 mPunsOnly = new PunsOnlyControl(this, 334, 20, 13); 00201 mPunsOnly->SetListener(this); 00202 00203 heightUsed += 30; 00204 00205 if (!options.GetBool("conceptIdxGrid",true)) 00206 { 00207 mShowNextFrom = new ShowNextFromControl(this, 350, 20, mNrToShow); 00208 mShowNextFrom->SetListener(this); 00209 new OglGui::Strut(this,200,1); 00210 00211 int nrRow = (wndHeight - heightUsed) / (thumbHeight + 6); 00212 mImagesSet = new ImageSet(this, thumbWidth, thumbHeight, viewScale, 00213 nrImOnRow, nrRow); 00214 mImagesSet->ActivateInfoBox(false); 00215 mImagesSet->SetImagesListener(this, 0); 00216 } 00217 else 00218 { 00219 mIdxGridTotalTxt = new OglGui::StaticText(this, 160, 20, "Total:"); 00220 mIdxGridTotalTxt->SetAlign(oglLeftAlign); 00221 mImSetIdxGridScroller = 00222 new ImageSetIdxGridScroller(this,2,2,wndWidth-4, 00223 wndHeight-heightUsed-14,nrImOnRow); 00224 mNrToShow = 1000000; 00225 mImSetIdxGrid = mImSetIdxGridScroller->ImSetIdxGrid(); 00226 mImSetIdxGrid->SetImageSetIdxGridListener(this); 00227 //mImSetIdxGrid->ShowNames(false); 00228 mImSetIdxGrid->ShowDims(false); 00229 oglSys.SetSelectColor(mImSetIdxGrid->GetOGLWND(),0xffffa500); 00230 } 00231 00232 if (mPlotPoints || mPlotLine2) 00233 { 00234 mFloatWnd = new ImagesWindow(this,0,0,200,200); 00235 mFloatWnd->SetViewSize(200,200); 00236 } 00237 00238 std::vector<String> names; 00239 if (mSimSet) 00240 names = mSimSet->GetNames(); 00241 for (int i=0 ; i<names.size() ; i++) 00242 { 00243 mStringSelector->AddString(names[i]); 00244 mDataDoc->AddConcept(names[i]); 00245 } 00246 mDataDoc->SetConcept(0); 00247 }
Here is the call graph for this function:
|