From 44f83ac64537ca6ac13a97a2c267492bdd288fe7 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 22 Aug 2013 12:08:47 +0300 Subject: Selection improvements for bars: - Signal to notify of selection change - Setting selection via API Change-Id: I87c71005d76b15dd259f745392ff7b5112d146b5 Reviewed-by: Miikka Heikkinen --- src/datavis3d/utils/utils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/datavis3d/utils/utils.cpp') diff --git a/src/datavis3d/utils/utils.cpp b/src/datavis3d/utils/utils.cpp index d5ae95e9..61583151 100644 --- a/src/datavis3d/utils/utils.cpp +++ b/src/datavis3d/utils/utils.cpp @@ -209,7 +209,9 @@ QVector3D Utils::getSelection(QPoint mousepos, int height) GLubyte pixel[4]; glReadPixels(mousepos.x(), height - mousepos.y(), 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, (void *)pixel); - //qDebug() << "rgba" << pixel[0] << pixel[1] << pixel[2];// << pixel[3]; + + //qDebug() << "rgba" << pixel[0] << pixel[1] << pixel[2] << pixel[3] << "mousepos:" << mousepos << "height:" << height; + //#else //// These work with desktop OpenGL //// They offer a lot higher possible object count and a possibility to use object ids -- cgit v1.2.3