Lazarus
Programming => Graphics and Multimedia => Graphics => Topic started by: dnota on December 23, 2016, 02:14:45 pm
-
Hi, I'm looking for a graphic component to show wind direction, I have a 0-360ยบ value, is there any existing component that already do that?
Thank you very much.
-
What is a "windrose" component? Something like this: http://www.windroseplot.com/features.html?
-
I think "wind rose" means windmill.
Did you check BRGA components?
-
i believe tr_escape has the better idea, although that diagram you showed looks pretty cool wp.
There is a commercial set of weather components available for delphi here (http://www.weather-display.com/index.php) that shows the weather direction graphics that OP meant (i think).
There's only one person that knows for sure :)
i was unable to find a ready to go solution for Lazarus, but as mentioned by tr_escape, it should be fairly easy to implement something similar, even when using a simple solution like a image component.
The component acts more like a wind-vane (https://en.wikipedia.org/wiki/Wind_vane), not wind-mill (https://en.wikipedia.org/wiki/Windmill) :)
-
Maybe he speak spanish?, the literal translation of 'Rosa de los vientos' is 'wind rose', but maybe he's loking for a 'compass rose'
See some pictures here:
https://www.google.com.ar/search?q=rosa+de+los+vientos
Wikipedia:
https://es.wikipedia.org/wiki/Rosa_de_los_vientos
-
It's windroos in Dutch too. Searching for the Dutch eq gives some more pictures:
google windroos I hope (https://www.google.nl/search?q=windroos&client=firefox-b&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwjHks_U0IrRAhUIclAKHSRFB0sQsAQIGw&biw=1350&bih=2283)
Basically it is a compass rose with the wind direction drawn in (sometimes with other visualizers for the strength)
Google says that wind rose (in English) is a synonym for compass rose (search for "compass rose")
-
Ok.
What about that project:
https://mehmetulukaya.files.wordpress.com/2015/05/lazcompass.png (https://mehmetulukaya.files.wordpress.com/2015/05/lazcompass.png)
Maybe dnota modify this project.
-
Hmz, i just discovered the same project. Was importing it into lazarus :)
Yes, that seems like a great starting point, as both the arrow or the heading can rotate.
-
Thank you very much,
Yes, I mean compass rose, but, in Spanish, is "Rosa de los Vientos".
I install bgra components and now I'm tring to install LazCompass, but, I get a lot of errors on lpi file, maybe it's because I'm using lazarus for windows.
-
I'm tring to install LazCompass, but, I get a lot of errors on lpi file, maybe it's because I'm using lazarus for windows.
Lazcompass is just a project,. not a component that requires installation.
I've converted the original delphi project of that compass project (as originally it was written in delphi), and it works without any issues for me.
Could you elaborate on what error message you get when you try opening the lazcompass project ?
If all else fails for you then i'll zip up my conversion and attach it to a new post (but you should be able to just open that lazcompass project yourself).
It doesn't matter that you are running a windows version of lazarus, you should just be able to open the project on any platform (as long as lazarus is installed and the required components are available for your platform -> for windows they are all there)