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

void OglGui::ViewerPointCloudNavigator::ShowVisiblePart (  )  [inline]

Definition at line 39 of file ViewerPointCloudNavigator.h.

References OglGui::OglWindow::H(), mMaxX, mMaxY, mMinX, mMinY, mViewerPointCloud, mVisiblePartColor, OglGui::ViewerPointCloud::Point2Wnd(), and OglGui::OglWindow::W().

Referenced by DisplayFunc().

00040     {
00041         float vpcW = mViewerPointCloud->W();
00042         float vpcH = mViewerPointCloud->H();
00043         float virtX1 = mMinX, virtY1 = mMinY;
00044         float virtX2 = mMaxX, virtY2 = mMaxY;
00045 
00046         mViewerPointCloud->Point2Wnd(virtX1, virtY1);
00047         mViewerPointCloud->Point2Wnd(virtX2, virtY2);
00048 
00049         float x1 = (-virtX1/(virtX2-virtX1)) * W();
00050         float y1 = (-virtY1/(virtY2-virtY1)) * H();
00051         float x2 = ((-virtX1+vpcW)/(virtX2-virtX1)) * W();
00052         float y2 = ((-virtY1+vpcH)/(virtY2-virtY1)) * H();
00053 
00054         SetSolidFillColor(mVisiblePartColor);
00055         int bInfo[3];
00056         oglSys.StartBlend(bInfo);
00057         FillRectangle(x1, y1, x2-x1, y2-y1);
00058         SetSolidLineColor(oglBLACK);
00059         DrawRectangle(x1, y1, x2-x1, y2-y1);
00060         oglSys.EndBlend(bInfo);
00061     }

Here is the call graph for this function:


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