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