How to draw/plot a Heatmap shaped as a cone using Qt Quick/Open gl
-
Hello, I hope everyone is doing great.
I am new to Qt, so I am still experiencing stuff and recolting informations, but i am quite blocked and dont know where to find the answers and ressources i need to resolve my problem.
My problem is the following:
I have a program in LabView that allows you to display a cone heatmap graph. It use two 2D array of values for each X/Y point ( which is basically used to draw the cone's shape and also another 2D array for the value of each point (if the value is high, the point will turn to the black color, if it is low, it will turn into a blue one). This is how it looks like:
With arrays looking like this :
My mission is to reproduce the same result but in a Qt Android app.
I already did some work and came with this result :
But there is few problems :
-
The first one is that the QImage and Pixmap in which i draw each pixel dont appear in my android emulator on qt, it just shows a totally black picture which is quite ambarassing since i want this to work on android.
-
The second is that i don't use the two txt file in which i store the two 2D Array for X and Y positions to draw the cone. I only use the amplitude values 2D array to get the red for each point and i don't know how could do that.
-
Ultimately the final problem is about how i draw this image : Let me explain, i draw the color of each one of the pixel on the Image, that cause a problem since i will later draw on a cone and it will have, I believe, some space for the pixel in the cone bottom. I was wondering that maybe Qt Quick must have some tools to do partially what i want to do, since it works with OpenGl which is also used for the labView program
I remind you that for now i'm not using Qt quick, but just some basic Qt C++ program with a HeatMap class implementation.
To be honest, I searched everywhere and pratically read every similar posts ( such as this one : https://forum.qt.io/topic/108057/plot-heat-map-using-qt/14 who was really useful), but I still don't know what i need to learn and use (I tried qwt, many user's libraries such as this one : http://jkriege2.github.io/JKQtPlotter/index.html, but for some reasons they don't work when i tried their exemples, or don't work with my android emulator).
If you have any advices or solutions for my problems i would be really thankful.
Also If you have questions or want more details I can explain it in a more deeper wayThank you in advance !
-