Definition at line 227 of file ViewerPointCloud.h. References OglGui::ViewerPoint::cMagicNr, OglGui::OglWindow::mOglWnd, OglGui::ViewerPoint::PointX(), and OglGui::ViewerPoint::PointY(). Referenced by OglGui::ViewerPointCloudNavigator::DisplayFunc(). 00230 { 00231 LIST *obj, *objList = mOglWnd->objectList; 00232 ULONG selCol = mOglWnd->selectCol; 00233 00234 glPushMatrix(); 00235 ptSize = (ptSize < 1.f) ? 1.f : ptSize; 00236 glPointSize(ptSize); 00237 glTranslatef(trX, trY, 0.f); 00238 glScalef(scaleX, scaleY, 1.f); 00239 00240 glBegin(GL_POINTS); 00241 ForAllElements(obj, objList) 00242 { 00243 OGLVIEW* view = (OGLVIEW*) obj->info; 00244 if ((view->tags & ignoreTag) || 00245 !(view->SysData2 == (void*)ViewerPoint::cMagicNr)) 00246 continue; 00247 bool selected = (view->tags & selectedTag) != 0; 00248 ViewerPoint* vp = (ViewerPoint*) view->SysData1; 00249 float x = vp->PointX() + offX; 00250 float y = vp->PointY() + offY; 00251 ULONG borderCol = view->borderCol; 00252 SetColor(selected ? selCol : borderCol); 00253 glVertex2f(x, y); 00254 if (selected && ptSize >= 3.f) 00255 { 00256 glEnd(); 00257 glPointSize(ptSize-2); 00258 glBegin(GL_POINTS); 00259 UCHAR r, g, b; 00260 COLOR2RGB(borderCol, r, g, b); 00261 glColor3ub(r, g, b); 00262 glVertex2f(x, y); 00263 glEnd(); 00264 glPointSize(ptSize); 00265 glBegin(GL_POINTS); 00266 } 00267 } 00268 glEnd(); 00269 glPopMatrix(); 00270 }
Here is the call graph for this function:
|