diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-08-22 12:08:47 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-08-22 13:17:36 +0300 |
commit | 44f83ac64537ca6ac13a97a2c267492bdd288fe7 (patch) | |
tree | 19399700a719b18dda5c060a2b57ea76a85e1211 /src/datavis3d/utils/utils.cpp | |
parent | 3ab324d0a6d6ff5fa7d15588ee2dc613f0c5e4b9 (diff) |
Selection improvements for bars:
- Signal to notify of selection change
- Setting selection via API
Change-Id: I87c71005d76b15dd259f745392ff7b5112d146b5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavis3d/utils/utils.cpp')
-rw-r--r-- | src/datavis3d/utils/utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 |