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

void Impala::Application::MediaTable::TableViewerPointCloud::AddDataFromTableDataView ( std::string  columnX,
std::string  columnY,
std::string  columnImage 
) [inline]

Definition at line 32 of file TableViewerPointCloud.h.

References Impala::Core::Matrix::GetColumn(), Impala::Application::MediaTable::TableDataViewController::GetColumnMinMax(), Impala::Application::MediaTable::TableDataView::GetFilteredRows(), OglGui::OglWindow::GetOGLWND(), Impala::Application::MediaTable::TableDataView::GetSortedDoubleData(), Impala::Application::MediaTable::TableDataView::GetSortedIntData(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), OglGui::OglWindow::H(), ILOG_USER, Impala::Application::MediaTable::TableDataViewController::MarkToColor(), mColumns, Impala::Application::DemoCamera2d::oglWnd, OglGui::ViewerPoint::SetId(), Impala::Application::MediaTable::TableDataSource::TYPE_INT, and OglGui::OglWindow::W().

Referenced by Impala::Application::MediaTable::ViewerPointCloudModule::NewWindow().

00035         {
00036                 mColumns[0] = columnX;
00037                 mColumns[1] = columnY;
00038                 mColumns[2] = columnImage;
00039                 
00040                 ILOG_USER("Added TableViewerPointCloud for " << columnX << " vs " << columnY << " with images from " << columnImage);           
00041                 
00042         OGLWND *oglWnd = GetOGLWND();
00043                 double xmin = 0, xmax = 0, ymin = 0, ymax = 0;
00044                 GetColumnMinMax(columnX, xmin, xmax);
00045                 GetColumnMinMax(columnY, ymin, ymax);
00046                 double xrange = xmax - xmin;
00047                 double yrange = ymax - ymin;
00048                 for (int i=0; i<GetTableDataView()->GetFilteredRows(); i++)
00049         {
00050                 OGLVIEW* view = viewSys.View2D(oglWnd,0,0,0,6,6);
00051             viewSys.SetTags(view, FlexViewTags);
00052             viewSys.ClearTags(view, visibleTag|showBgTag);
00053                         
00054             view->borderCol = MarkToColor(GetTableDataView()->GetMark(i));
00055                         double x, y;
00056                         if(GetTableDataView()->GetColumn(columnX)->GetType() == TableDataSource::TYPE_INT)
00057                     x = GetTableDataView()->GetSortedIntData(columnX, i);
00058                         else
00059                                 x = GetTableDataView()->GetSortedDoubleData(columnX, i);
00060                         if(GetTableDataView()->GetColumn(columnY)->GetType() == TableDataSource::TYPE_INT)
00061                     y = GetTableDataView()->GetSortedIntData(columnY, i);
00062                         else
00063                                 y = GetTableDataView()->GetSortedDoubleData(columnY, i);
00064                         
00065                         x -= xmin + xrange/2;
00066                         y -= ymin + yrange/2;
00067                         x *= W()/xrange;
00068                         y *= H()/yrange;
00069             ViewerPoint* vp = new ViewerPoint(view, x, y);
00070             vp->SetId(GetTableDataView()->GetSortedQuid(columnImage, i));
00071         }
00072         }

Here is the call graph for this function:


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