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

void Impala::Application::MediaTable::ViewerPointCloudModule::NewWindow ( OglGui::Window wnd  )  [inline, virtual]

Reimplemented from Impala::Application::MediaTable::VisualizationModule.

Definition at line 81 of file ViewerPointCloudModule.h.

References Impala::Application::MediaTable::TableViewerPointCloud::AddDataFromTableDataView(), OglGui::ViewerPointCloud::DetailImageInterface(), Impala::Application::MediaTable::OglImageCacheStore::GetInstance(), Impala::Application::MediaTable::TableDataStore::GetInstance(), Impala::Application::MediaTable::TableDataStore::GetTableDataView(), OglGui::OglWindow::H(), OglGui::ViewerPointCloud::MaxVisibleImages(), Impala::Application::MediaTable::ConfigWindowModule::mStringValues, OglGui::ViewerPointCloudNavigator::PointSize(), OglGui::Window::ScaleChildren(), OglGui::ViewerPointCloud::ScaleThreshold(), OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderType(), OglGui::ViewerPointCloud::SetGetOglImageByIdInterface(), OglGui::OglWindow::SetNoMouseInput(), OglGui::ViewerPointCloud::SetOglImageCache(), OglGui::ViewerPointCloudNavigator::SetTarget(), OglGui::Window::SetWindowListener(), and OglGui::OglWindow::W().

00082     {
00083                 int w = wnd->W();
00084         int h = wnd->H();
00085         TableDataStore* tds     = TableDataStore::GetInstance();
00086         TableDataView*  mSource = tds->GetTableDataView(mStringValues["View"]);
00087  
00088                 TableViewerPointCloud* vpCloud =
00089             new TableViewerPointCloud(wnd, mSource, 4, 4, 2*w/3-4, 2*h/2-4);
00090 
00091         WindowView2D* detailWnd =
00092             new WindowView2D(wnd, 2*w/3+4, 4, w/3-4, h/2-4, NULL);
00093 
00094         detailWnd->SetBorderType(BEV_ETCHED);
00095         vpCloud->SetBorderType(BEV_ETCHED);
00096 
00097         ViewerPointCloudNavigator* vpcNavigator =
00098             new ViewerPointCloudNavigator(wnd, 2*w/3+4, h/2+4, w/3-4, h/2-4);
00099         vpcNavigator->SetTarget(vpCloud);
00100                 vpcNavigator->SetNoMouseInput(true);
00101                 vpcNavigator->PointSize(2);
00102                 wnd->SetWindowListener(this, (void *) vpcNavigator);
00103 
00104         vpCloud->DetailImageInterface(detailWnd);
00105         vpCloud->ScaleThreshold(10);
00106         vpCloud->SetGetOglImageByIdInterface(this);
00107         vpCloud->SetOglImageCache(OglImageCacheStore::GetInstance());
00108         vpCloud->MaxVisibleImages(150);
00109 
00110                 vpCloud->AddDataFromTableDataView(mStringValues["X"],
00111                                                                                   mStringValues["Y"], 
00112                                                                                   mStringValues["Image"]);
00113                 
00114 
00115         wnd->ScaleChildren();
00116         wnd->SetBackground(oglGUI_BG);
00117         }

Here is the call graph for this function:


Generated on Fri Mar 19 10:44:22 2010 for ImpalaSrc by  doxygen 1.5.1