Display 2D Lines for mathematic application

  • Thread starter Thread starter Gill
  • Start date Start date
G

Gill

Hi There,


Does anyone can give me advices to choose a graphical
library/control/ocx/other to developp an application displaying 2d
lines from large data set (around 30 000 points).
I have to developp this app using Visual C++(6 or .NET). These data
are coming
right from an electronic device, and I need to display and print
result as graphs in a short amount of time (less than 8 hours :o) )
Of course, it's a common subject, but I'm not aware of last
improvement about graphical resources, so I'm stumped !!
I'm reading doc about GDI, but it seems to be too slow for this kind
of
datasize.
I'm thinking about using library from LabViews or Matlab, but perhaps
it's like using
atomic bomb vs a mosquito :o)

Thanks for any advice
Gill
 
The fastest display stuff around if you want to do it yourself is DirectX,
which is typically used commercially for games. I would imagine any 3rd
party libraries you use would need licensing, so if you're on a budget, and
don't think GDI (or GDI+) is going to be fast enough, then DirectX is a good
choice. GDI+ (the successor to GDI) is far easier to use, though GDI has the
advantage of hardware acceleration. You can probably knock something up
really quickly in GDI+ either using .NET or vanilla C++, and see if that's
going to be fast enough. If it's not, look at something else. You might be
surprised at GDI though - 30,000 points isn't a massive number.

That's my two, good luck with it!

Oh, and you might want to post this on the framework.drawing newsgroup -
there'll be people there who will be able to tell you what kind of speeds to
expect.

Steve
 
I've created a Galaxy Creation Program that has 150,000 Stars. To draw them all (If I'm storing them in a class) takes about 15 seconds (1.6 Ghz Pentium, 64 Meg Vid Card, 512 Megs of RAM). If I don't store them in a class (IE, generate the point and draw it immediatly), it takes about 9 seconds. Most of the time is spent translating the points from "Map" points to "Screen" points, which you'll probably need to do.

If you need any help, write me at Fireangel__NO__SPAM__@__NO__SPAM__comcast.net (I HATE spam)

GE
 
Hi there,
I've created a Galaxy Creation Program that has 150,000 Stars. To
draw them all (If I'm storing them in a class) takes about 15 seconds
(1.6 Ghz Pentium, 64 Meg Vid Card, 512 Megs of RAM). If I don't store
them in a class (IE, generate the point and draw it immediatly), it
takes about 9 seconds. Most of the time is spent translating the
points from "Map" points to "Screen" points, which you'll probably
need to do.
If you need any help, write me at Fireangel__NO__SPAM__@__NO__SPAM__comcast.net (I HATE spam)

OK, FireAngel ..thanks for your help. Could you give me some precision
on the technology you used ?? GDI+/ActiveX ??
 
Hi,
The fastest display stuff around if you want to do it yourself is DirectX,
which is typically used commercially for games. I would imagine any 3rd
party libraries you use would need licensing, so if you're on a budget, and
don't think GDI (or GDI+) is going to be fast enough, then DirectX is a good
choice. GDI+ (the successor to GDI) is far easier to use, though GDI has the
advantage of hardware acceleration. You can probably knock something up
really quickly in GDI+ either using .NET or vanilla C++, and see if that's
going to be fast enough. If it's not, look at something else. You might be
surprised at GDI though - 30,000 points isn't a massive number.

That's my two, good luck with it!

thx for both of them.
So I will investigate both of them for some ploting and graphic samples ...
Oh, and you might want to post this on the framework.drawing newsgroup -
there'll be people there who will be able to tell you what kind of speeds to
expect.

Yes, good idea Steve.

Thanks
Gill
 
Hi There,


Does anyone can give me advices to choose a graphical
library/control/ocx/other to developp an application displaying 2d
lines from large data set (around 30 000 points).
I have to developp this app using Visual C++(6 or .NET). These data
are coming
right from an electronic device, and I need to display and print
result as graphs in a short amount of time (less than 8 hours :o) )
Of course, it's a common subject, but I'm not aware of last
improvement about graphical resources, so I'm stumped !!
I'm reading doc about GDI, but it seems to be too slow for this kind
of
datasize.
I'm thinking about using library from LabViews or Matlab, but perhaps
it's like using
atomic bomb vs a mosquito :o)

Thanks for any advice
Gill


Take a look at our MetaDraw control.
MetaDraw is a drawing / image creation tool
available as either an OCX or a .NET Winforms component
( the OCX is faster )
30,000 points is no trouble at all. We can build up such
an image in under 2 seconds with no problem at all..

You have full control over colors, line styles, line thickness
and you can scroll, zoom, save, print or copy the image to
the clipboard.

If for some reason the different lines will represent different types
of data you can even assign lines to categories and hide and
then use that to hide or show different categories or change
the colors dynamically.

MetaDraw is EASY to use.

-----

Jeff Bennett
(e-mail address removed)

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=================== ===================
 
Back
Top