New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small changes of measurement tool #3299
Small changes of measurement tool #3299
Conversation
- Changing the measurement tool icon - Add separator in the toolbar With the addition of separators, the tools are clearly divided into: Tools | TimeSeries | Settings Furthermore, the crosshairs can then also be added to the tools.
@Nirus2000 My first guess why measure tool is drawn in background is because the measure tool is not the last registered Ok, the performance drop is bad. I don't know if we can keep the current drawing with EDIT: The disadvantage of the current situation is that when the measure tool needs a redraw, then a redraw of the complete chart is triggered. But actually only the measuring lines would have to be deleted and redrawn. |
@OnkelDok |
What do you mean with "your" Crosshair? Don't know that I provided a crosshair which can be installed. But I assume I misunderstand your comment. Can you please explain with more detail? |
#3004 (comment) this one... |
Ah ok, I understand. And what is not working? Do you have a screenshot or video? Maybe it's due to some logical changes/improvements @buchen has made. EDIT: I've proposed a fix for the wrong drawing order. Regarding the perfomance, maybe we have to draw on a separate canvas/area and not on the chart plot area. I believe the tool tip is also drawn as separate element. When I have time the next days, I'll take a look at it. Maybe I'll come up with something. |
What I can think of: the chart is drawn into a an image. And then the drawing of the measurement is taking the image, drawing the measurement, and drawing it on the plot area. But of course this is a substantial change - possible also to SWTChart. I believe ´the tooltip is a separate UI element of the operating system - a different "window". Then the OS takes care. |
BTW, just to mention on my Mac (Apple M1, 32GB) the painting is super smooth. Bildschirmaufnahme.2023-04-22.um.09.43.26.mp4 |
Okay, I merged this PR. Unfortunately, this closes the PR and hence "closes" the performance discussion. Shall we move it to a issue ticket (I assume it is not easy to solve) |
@buchen can you please test again with a bigger time interval? Start date around 2005, like in video from @Nirus2000.
Yes, a separate ticket would be good. |
With the addition of separators, the tools are clearly divided into:
Tools | TimeSeries | Settings
Furthermore, the crosshairs can then also be added to the tools.