> I have built a large c++ application with fltk windows in Visual Studio. I
> would like to add a window for viewing of maps and plotting icons in
> desired coordinates on the map. There are a lot of libraries out there
> that can view maps, so I would prefer not to write my own map viewer
> window. However, the things that I found are activeX, c# or Java based.
> 
> Do any of you knows an easy way to embed map viewing window into a c++
> fltk application ?

If you have some existing mechanism for rendering the maps, and it is happy to 
draw to a window that it is passed, then it is fairly trivial to derive your 
own class from a fltk window then pass a handle to that onto the render app and 
have it draw into your window.

I've used this approach to show video in a fltk window, where the video tool 
was outputting via DirectDraw; we just passed the fltk window handle into the 
DirectDraw context and "as if by magic" the picture appears... something 
similar might work.

Or, if you can find a map tool that output via GL, then that would be pretty 
easy to build into a fltk app too, I should think (that's what we did, though 
the code is not available...)



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to