Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Visualization::SegmentationDocumentGuiStills::SegmentationDocumentGuiStills ( OglGui::Window parent,
int  w,
int  h,
int  nrImOnRow,
int  thumbW,
int  thumbH,
double  viewScale,
bool  doFullSize,
bool  imageStills,
SegmentationDocument segDoc,
int  controlId 
) [inline]

Definition at line 34 of file SegmentationDocumentGuiStills.h.

References Impala::Visualization::AppControlDoc::AddDocListener(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Core::Database::DataDocument::GetThumbScale(), Impala::Core::VideoSet::SegmentationDocument::GetVideoSet(), mCheckBox, mDoFullSize, mForceUpdate, mFrameSkipField, mImagesSet, mImageStills, mNrIm, mSegDoc, mStills, mViewScale, SetAsBox(), OglGui::OglWindow::SetBorderType(), OglGui::Button::SetButtonListener(), Impala::Visualization::ImagesWindow::SetImagesListener(), and OglGui::CheckBox::SetSelected().

00039                                                  :
00040         Window(parent, w, h, true),
00041         AppControlDoc(controlId, segDoc)
00042     {
00043         mSegDoc = segDoc;
00044         AddDocListener(this);
00045 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00046         mStills = new Stills(segDoc->GetVideoSet(), "stills");
00047 #else // REPOSITORY_USED
00048         Persistency::StillsLocator loc(segDoc->GetVideoSet()->GetLocator(),
00049                                        "stills");
00050         mStills = Persistency::StillsRepository().Get(loc, segDoc->GetVideoSet());
00051 #endif // REPOSITORY_USED
00052         mViewScale = viewScale;
00053         mDoFullSize = doFullSize;
00054         mImageStills = imageStills;
00055         mForceUpdate = false;
00056 
00057         int line = 20;
00058         mCheckBox = new OglGui::CheckBox(this, 150, line, "Update stills");
00059         mCheckBox->SetSelected(false);
00060         mFrameSkipField = 0;
00061         if (!mImageStills)
00062         {
00063             OglGui::TextArea* tArea = new OglGui::TextArea(this, 80, 1*line,
00064                                                            "Frame skip");
00065             tArea->SetBorderType(0);
00066             mFrameSkipField = new OglGui::TextField(this, 60, 20, "15");
00067         }
00068         OglGui::Button* but = new OglGui::Button(this, 80, 22, "Update (u)");
00069         but->SetButtonListener(this, 0);
00070         OglGui::Strut* strut = new OglGui::Strut(this, 4000, 1);
00071         int imWidth = (mDoFullSize) ? thumbW/mSegDoc->GetThumbScale() : thumbW;
00072         int imHeight = (mDoFullSize) ? thumbH/mSegDoc->GetThumbScale(): thumbH;
00073         if (mDoFullSize)
00074         {
00075             nrImOnRow = 4;
00076             mViewScale = 0.85 * mViewScale;
00077         }
00078         int nrRow = (mDoFullSize) ? 4 : 7;
00079         mNrIm = nrImOnRow * nrRow;
00080         mImagesSet = new ImageSet(this, imWidth, imHeight, mViewScale,
00081                                   nrImOnRow, nrRow);
00082         mImagesSet->SetMakeViewWithRect(true);
00083         mImagesSet->ActivateInfoBox(false);
00084         mImagesSet->SetImagesListener(this, 0);
00085         SetAsBox(mImagesSet);
00086     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:47:22 2010 for ImpalaSrc by  doxygen 1.5.1