Display 2D Lines for mathematic application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gill

    Display 2D Lines for mathematic application

    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
  • Steve McLellan

    #2
    Re: Display 2D Lines for mathematic application

    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.drawi ng newsgroup -
    there'll be people there who will be able to tell you what kind of speeds to
    expect.

    Steve

    "Gill" <gourou_gill@ya hoo.com> wrote in message
    news:f9dc8289.0 407220122.172ed 954@posting.goo gle.com...[color=blue]
    > 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[/color]


    Comment

    • Fireangel

      #3
      Re: Display 2D Lines for mathematic application

      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__SP AM__comcast.net (I HATE spam)

      GE

      "Steve McLellan" wrote:
      [color=blue]
      > 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.drawi ng newsgroup -
      > there'll be people there who will be able to tell you what kind of speeds to
      > expect.
      >
      > Steve
      >
      > "Gill" <gourou_gill@ya hoo.com> wrote in message
      > news:f9dc8289.0 407220122.172ed 954@posting.goo gle.com...[color=green]
      > > 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[/color]
      >
      >
      >[/color]

      Comment

      • Gill

        #4
        Re: Display 2D Lines for mathematic application

        Hi there,
        [color=blue]
        > I've created a Galaxy Creation Program that has 150,000 Stars. To[/color]
        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.[color=blue]
        >
        > If you need any help, write me at Fireangel__NO__ SPAM__@__NO__SP AM__comcast.net (I HATE spam)[/color]

        OK, FireAngel ..thanks for your help. Could you give me some precision
        on the technology you used ?? GDI+/ActiveX ??

        Comment

        • Gill

          #5
          Re: Display 2D Lines for mathematic application

          Hi,[color=blue]
          > 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![/color]

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

          Yes, good idea Steve.

          Thanks
          Gill

          Comment

          • Jeff Bennett

            #6
            Re: Display 2D Lines for mathematic application

            gourou_gill@yah oo.com (Gill) wrote in message news:<f9dc8289. 0407220122.172e d954@posting.go ogle.com>...[color=blue]
            > 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[/color]


            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
            Jeff@Bennet-Tec.Com

            * 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

            =============== ==== =============== ====

            Comment

            Working...