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

Impala::Visualization::SegmentationDocumentGuiMain::SegmentationDocumentGuiMain ( OglGui::Window parent,
int  wndWidth,
int  wndHeight,
int  nrImOnRow,
int  imWidth,
int  imHeight,
double  viewScale,
bool  showAnno,
SegmentationDocument segDoc,
Array2dVec3UInt8 logoIm,
bool  logoAnim,
int  controlId 
) [inline]

Definition at line 37 of file SegmentationDocumentGuiMain.h.

References Impala::Visualization::DataDocumentGui< DataDocT >::BUT_BOOKMARK, Impala::Visualization::DataDocumentGui< DataDocT >::BUT_UNBOOKMARK, IM_BOOKMARKED, IM_CURRENT, IM_RETRIEVED, mBookmarkedImages, mCurrentShotStrip, mRetrievedImages, mSegDoc, PLAY, OglGui::OglWindow::SetBorderType(), OglGui::Button::SetButtonListener(), Impala::Visualization::ImagesWindow::SetImagesListener(), and Impala::Visualization::ImagesWindow::SetViewListener().

00043                                                :
00044         DataDocumentGui<SegmentationDocument>(parent, wndWidth, wndHeight,
00045                                               segDoc, controlId, showAnno,
00046                                               showAnno, false, 1, 6, showAnno,
00047                                               showAnno)
00048     {
00049         mSegDoc = segDoc;
00050 
00051         int line = 20;
00052         mBookmarkedImages = new ImageStrip(this, imWidth, imHeight,
00053                                                 viewScale, nrImOnRow);
00054         mBookmarkedImages->SetImagesListener(this, IM_BOOKMARKED);
00055         mBookmarkedImages->ActivateInfoBox(false);
00056 
00057         mCurrentShotStrip = 0;
00058         if (logoAnim || logoIm)
00059         {
00060             mCurrentShotStrip = new ImageStrip(this, imWidth, imHeight,
00061                                                viewScale, nrImOnRow-1);
00062             new LogoWindow(this, logoIm, logoAnim, 190, 170);
00063         }
00064         else
00065         {
00066             mCurrentShotStrip = new ImageStrip(this, imWidth, imHeight,
00067                                                viewScale, nrImOnRow);
00068         }
00069         mCurrentShotStrip->SetImagesListener(this, IM_CURRENT);
00070         mCurrentShotStrip->SetMakeViewWithRect(true);
00071         mCurrentShotStrip->SetViewListener(this);
00072         mCurrentShotStrip->ActivateInfoBox(false);
00073         //mCurrentShotText = new OglGui::TextArea(this, wndWidth-20, 3*line, "");
00074 
00075         // buttons
00076         OglGui::Button* but;
00077         OglGui::Strut* strut = new OglGui::Strut(this, 4000, 1);
00078 
00079         OglGui::TextArea* tArea = new OglGui::TextArea(this, 80, line,
00080                                                        "Current shot");
00081         tArea->SetBorderType(0);
00082         but = new OglGui::Button(this, 100, 22, "Play");
00083         but->SetButtonListener(this, PLAY);
00084         if (!showAnno)
00085         {
00086             but = new OglGui::Button(this, 150, 22, "Bookmark (b)");
00087             but->SetButtonListener(this, BUT_BOOKMARK);
00088             but = new OglGui::Button(this, 170, 22, "Unbookmark (B)");
00089             but->SetButtonListener(this, BUT_UNBOOKMARK);
00090         }
00091 
00092         strut = new OglGui::Strut(this, 4000, 1);
00093 
00094         mRetrievedImages = new ImageSet(this, imWidth, imHeight, viewScale,
00095                                         nrImOnRow, 3);
00096         mRetrievedImages->SetImagesListener(this, IM_RETRIEVED);
00097         mRetrievedImages->ActivateInfoBox(false);
00098     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:25:02 2011 for ImpalaSrc by  doxygen 1.5.1