Hallo!
Currently I'm developing a scientific application, which is written in
C++ for Windows.
I've already implemented 3D visualization using OpenGL, and everything
work fine.
The next step is 2D plotting of output data.
The problem: I'm looking for an OpenGL 2D plotting library for several
months
without any result. There are thousands of plotting libraries using
Windows GDI,
Windows GDI+, .NET, GTK and everything you can imagine. And what about
OpenGL? Yes, it's a trivial task, and obviously I could code the stuff
by myself
using Amanith or whatever else. As for Win GDI it's much more trivial
task,
but there are a number of ready implementations.
Could anybody help me? A name of any freeware\opensource OpenGL
2D plotting library would be very helpful to me.
|
|
0
|
|
|
|
Reply
|
gopa12345 (1)
|
11/29/2006 4:59:16 PM |
|
gopa12345@mail.ru wrote:
> Could anybody help me? A name of any freeware\opensource OpenGL
> 2D plotting library would be very helpful to me.
Try out this one:
http://qwt.sourceforge.net/
It is per se not based on OpenGL, but with Qt4 I think you can use OpenGL as
the drawing backend. But I haven't checked this information. I have only
used Qwt with Qt 3.x, which was fine and very nice.
Arne
--
[--- PGP key FD05BED7 --- http://www.root42.de/ ---]
|
|
0
|
|
|
|
Reply
|
Arne
|
11/29/2006 5:09:26 PM
|
|
> Try out this one:
>
> http://qwt.sourceforge.net/
Unfortunally, this library doesn't use OpenGL. Besides that my user
unterface is MFC-based (though Linux port is planned, so OpenGL is
needed), so I can't use Qt-based controls at all.
|
|
0
|
|
|
|
Reply
|
gopa12345
|
11/29/2006 6:29:17 PM
|
|
Have you considered writing one ? I have also
looked for a library like this for a while now.
I would contribute to the development.
gopa12345@mail.ru wrote:
>> Try out this one:
>>
>> http://qwt.sourceforge.net/
>
> Unfortunally, this library doesn't use OpenGL. Besides that my user
> unterface is MFC-based (though Linux port is planned, so OpenGL is
> needed), so I can't use Qt-based controls at all.
>
|
|
0
|
|
|
|
Reply
|
A
|
11/29/2006 9:41:27 PM
|
|
I have no time to write a good library (e.g. powerful, object-oriented,
reusable) deserving the development. I have several students at hand,
one of them may be able to write something, but I don't think that the
result can be reusable at all.
|
|
0
|
|
|
|
Reply
|
gopa12345
|
11/30/2006 4:01:22 AM
|
|
> I would contribute to the development.
What code could you contribute? Maybe this code would be a good
starting point for my student. Of course, I would share the results,
maybe my students are better than I think.
|
|
0
|
|
|
|
Reply
|
gopa12345
|
11/30/2006 4:08:36 AM
|
|
gopa12345@mail.ru wrote:
>> Try out this one:
>>
>> http://qwt.sourceforge.net/
>
> Unfortunally, this library doesn't use OpenGL. Besides that my user
> unterface is MFC-based (though Linux port is planned, so OpenGL is
> needed), so I can't use Qt-based controls at all
Hm, you see: If you had started developing with Qt from the start, the
porting to Linux wouldn't have been a problem, since you seem to need
OpenGL only for porting. BTW, Qt also has excellent OpenGL support.
Arne
--
[--- PGP key FD05BED7 --- http://www.root42.de/ ---]
|
|
0
|
|
|
|
Reply
|
Arne
|
11/30/2006 10:52:59 AM
|
|
gopa12345@mail.ru wrote:
>> Try out this one:
>>
>> http://qwt.sourceforge.net/
>
> Unfortunally, this library doesn't use OpenGL. Besides that my user
> unterface is MFC-based (though Linux port is planned, so OpenGL is
> needed), so I can't use Qt-based controls at all.
It's *far* easier to port Qt drawing to OpenGL than it is to port MFC
to anything else. Been there, done that.
- Keith
|
|
0
|
|
|
|
Reply
|
Keith
|
11/30/2006 2:16:23 PM
|
|
Java2d. In java 1.6, it uses OpenGL.
jbw
<gopa12345@mail.ru> wrote in message
news:1164859281.943596.67410@h54g2000cwb.googlegroups.com...
>I have no time to write a good library (e.g. powerful, object-oriented,
> reusable) deserving the development. I have several students at hand,
> one of them may be able to write something, but I don't think that the
> result can be reusable at all.
>
|
|
0
|
|
|
|
Reply
|
jbwest
|
12/1/2006 2:03:16 AM
|
|
> Java2d. In java 1.6, it uses OpenGL.
No Java. The code is C++.
No Qt. BTW, the Linux port is just planned, I'm not implementing it
now.
Need OpenGL 2D plotting library.
Some small pieces of code will be helpful.
|
|
0
|
|
|
|
Reply
|
gopa12345
|
12/2/2006 11:44:10 AM
|
|
gopa12345@mail.ru wrote:
> Hallo!
>
> Currently I'm developing a scientific application, which is written in
> C++ for Windows.
> I've already implemented 3D visualization using OpenGL, and everything
> work fine.
> The next step is 2D plotting of output data.
>
> The problem: I'm looking for an OpenGL 2D plotting library for several
> months
> without any result. There are thousands of plotting libraries using
> Windows GDI,
> Windows GDI+, .NET, GTK and everything you can imagine.
Based on what I have read elsewhere in this thread, I suggest you team
up with the other chap willing to contribute and pick from these
thousands of libraries an open source, C/C++ version with:
(a) the best API
(b) the best internal design
(c) using the simplest graphics primitives (ie, not some black-box
graphics lib that adds all sort of added value you will not be sure how
to recreate
Then replace every call to xyz-draw-line with gopa-draw-line. Have
gopa-draw-line call xyz-dra-line. Make sure it still works.
Then have gopa-draw-line compile conditionally to target either XYZ or
OpenGL, and write the OpenGL code to draw a line.
That adds an OpenGL back end to the open-source library you chose.
Contribute back for ongoing enhancement and support.
Alternatively, just fork the thing and modify xyz-draw-line to use OpenGL.
my2, kzo
--
Cells: http://common-lisp.net/project/cells/
"I'll say I'm losing my grip, and it feels terrific."
-- Smiling husband to scowling wife, New Yorker cartoon
|
|
0
|
|
|
|
Reply
|
Ken
|
12/4/2006 5:37:05 PM
|
|
> Based on what I have read elsewhere in this thread, I suggest you team
> up with the other chap willing to contribute and pick from these
> thousands of libraries an open source, C/C++ version.
> That adds an OpenGL back end to the open-source library you chose.
> Contribute back for ongoing enhancement and support.
Yes, you are right. But I've got slighly different idea.
I have found an excellent C++ OpenGL library - VTK, which includes some
kind of 2D plotting routines. Moreover, there are several links to
VtkPlot libray based on VTK that does the 2D plotting job. But the
web-site of VtkPlot is empty, and I've failed to find a copy of the
VtkPlot library. Has anyone a source code of the VtkPlot library?
The second option is to port from Python to C++ another VTK-based
plotting code - the MayaVi Data Visualizer
(http://mayavi.sourceforge.net/). I'm planning to contact the author.
If anybody is interested to participate in the port, please write in
this thread. Any VTK C++ 2D plotting code snippets are also welcomed.
|
|
0
|
|
|
|
Reply
|
gopa12345
|
12/5/2006 6:39:04 AM
|
|
|
11 Replies
386 Views
(page loaded in 0.15 seconds)
|