Lazarus

Programming => Graphics and Multimedia => Graphics => Topic started by: dnota on December 23, 2016, 02:14:45 pm

Title: Wind rose component
Post 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.

Title: Re: Wind rose component
Post by: wp on December 23, 2016, 02:45:25 pm
What is a "windrose" component? Something like this: http://www.windroseplot.com/features.html?

Title: Re: Wind rose component
Post by: tr_escape on December 23, 2016, 02:53:13 pm
I think "wind rose" means windmill.

Did you check BRGA components?

Title: Re: Wind rose component
Post by: molly on December 23, 2016, 03:09:21 pm
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)  :)
Title: Re: Wind rose component
Post by: lainz on December 23, 2016, 04:22:05 pm
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
Title: Re: Wind rose component
Post by: marcov on December 23, 2016, 04:29:45 pm
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")
Title: Re: Wind rose component
Post by: tr_escape on December 23, 2016, 06:34:47 pm
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.
Title: Re: Wind rose component
Post by: molly on December 23, 2016, 07:02:31 pm
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.
Title: Re: Wind rose component
Post by: dnota on December 24, 2016, 05:09:22 pm
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.

Title: Re: Wind rose component
Post by: molly on December 24, 2016, 05:50:06 pm
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)
TinyPortal © 2005-2018