Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. What graphics library would be best for 2D CAD work?

What graphics library would be best for 2D CAD work?

Scheduled Pinned Locked Moved IT & Infrastructure
graphicsgame-devquestioncsharpc++
14 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C CoffeeAddict19

    I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

    1 Offline
    1 Offline
    123 0
    wrote on last edited by
    #4

    CoffeeAddict19 wrote:

    I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

    We used straight GDI for the bulk of the wysiwyg, vector-based page editor that is part of the development system we wrote, resorting to GDI+ only for the conversion functions that are missing in the old GDI (JPEG to BITMAP, for example). Our editor is simple and smooth and includes the usual graphics objects (rectangles, ellipses, lines, open and closed polygons, etc), plus text (in different fonts, styles, and colors) and pictures (which can be sized, cropped, rotated, mirrored, and flipped); it also supports grouping of objects (to any depth), various units of measure, snap grids, reduction, enlargement, multiple pages in different orientations, and it saves everything in ascii text. The interface is unique: it is modeless, and has none of the usual "tools"; nevertheless, it is easy to learn and very easy to use. I'd be glad to send you a copy, with source code, to give you some ideas - it's written in Plain English (about 4300 lines), but you can just think of it as pseudocode if you decide to write in another language. Interested? help@osmosian.com.

    1 Reply Last reply
    0
    • C CoffeeAddict19

      I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

      1 Offline
      1 Offline
      123 0
      wrote on last edited by
      #5

      CoffeeAddict19 wrote:

      I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

      We used straight GDI for the bulk of the wysiwyg, vector-based page editor that is part of the development system we wrote, resorting to GDI+ only for the conversion functions that are missing in the old GDI (JPEG to BITMAP, for example). Our editor is simple and smooth and includes the usual graphics objects (rectangles, ellipses, lines, open and closed polygons, etc), plus text (in different fonts, styles, and colors) and pictures (which can be sized, cropped, rotated, mirrored, and flipped); it also supports grouping of objects (to any depth), various units of measure, snap grids, reduction, enlargement, multiple pages in different orientations, and it saves everything in ascii text. The interface is unique: it is modeless, and has none of the usual "tools"; nevertheless, it is easy to learn and very easy to use. I'd be glad to send you a copy, with source code, to give you some ideas - it's written in Plain English (about 4300 lines), but you can just think of it as pseudocode if you decide to write in another language. Interested? help@osmosian.com.

      M 1 Reply Last reply
      0
      • 1 123 0

        CoffeeAddict19 wrote:

        I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

        We used straight GDI for the bulk of the wysiwyg, vector-based page editor that is part of the development system we wrote, resorting to GDI+ only for the conversion functions that are missing in the old GDI (JPEG to BITMAP, for example). Our editor is simple and smooth and includes the usual graphics objects (rectangles, ellipses, lines, open and closed polygons, etc), plus text (in different fonts, styles, and colors) and pictures (which can be sized, cropped, rotated, mirrored, and flipped); it also supports grouping of objects (to any depth), various units of measure, snap grids, reduction, enlargement, multiple pages in different orientations, and it saves everything in ascii text. The interface is unique: it is modeless, and has none of the usual "tools"; nevertheless, it is easy to learn and very easy to use. I'd be glad to send you a copy, with source code, to give you some ideas - it's written in Plain English (about 4300 lines), but you can just think of it as pseudocode if you decide to write in another language. Interested? help@osmosian.com.

        M Offline
        M Offline
        Monty2
        wrote on last edited by
        #6

        Well the deleted message reads Score: 2.1 (3 votes) that probably means one voted 5 and two people voted 1 (they probably marked it as spam) only 2 people thats a bit harsh probably but with your record who knows ... :)


        If you think you can than you can, if you think you can't you are right.

        P C 2 Replies Last reply
        0
        • M Monty2

          Well the deleted message reads Score: 2.1 (3 votes) that probably means one voted 5 and two people voted 1 (they probably marked it as spam) only 2 people thats a bit harsh probably but with your record who knows ... :)


          If you think you can than you can, if you think you can't you are right.

          P Offline
          P Offline
          Pravarakhya
          wrote on last edited by
          #7

          I agree with you here[^]

          Pravar My Image Processing Article! Rate it!! My Blog

          1 Reply Last reply
          0
          • C CoffeeAddict19

            I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

            E Offline
            E Offline
            El Corazon
            wrote on last edited by
            #8

            CoffeeAddict19 wrote:

            It dosen't need to be multiplatform (windows xp/2000/vista).

            If it doesn't need to be multiplatform, or have the option for multi-platform, DirectX/Direct3D is the "fastest" solution from a performance standpoint. If you are going to use DirectX/Direct3D you might consider .Net. Of the choices you do offer, I would suggest OpenGL, but only because you restrict it to those options. You can suppliment your startup with some 3rd party libraries that simplify your work: Open Scene Graph[^] nVidia Scene Graph[^] or another scene graph of your choice (there are dozens if you want to expand the question). nVidia scene graph is handy because it is optimized for a hardware set, but then you are making it performance optimized for nVidia hardware and slower on ATI.

            _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

            1 Reply Last reply
            0
            • M Monty2

              Well the deleted message reads Score: 2.1 (3 votes) that probably means one voted 5 and two people voted 1 (they probably marked it as spam) only 2 people thats a bit harsh probably but with your record who knows ... :)


              If you think you can than you can, if you think you can't you are right.

              C Offline
              C Offline
              CoffeeAddict19
              wrote on last edited by
              #9

              WTF happened?:confused:

              E 1 Reply Last reply
              0
              • C CoffeeAddict19

                WTF happened?:confused:

                E Offline
                E Offline
                El Corazon
                wrote on last edited by
                #10

                CoffeeAddict19 wrote:

                WTF happened?

                Full discussion here.[^] Right or wrong, we have a salesman who refuses to obey the no-advertising rule of the site because he does not believe it. Right or wrong he has a product that he likes to reference in any post related to programming. Right or wrong he has been around a while, posted many posts referencing his product, been admonished by members and owners to stop spamming the site. His answer is there for you to read and make your own decision. -- modified at 12:53 Monday 8th January, 2007

                _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                C 1 Reply Last reply
                0
                • C CoffeeAddict19

                  I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

                  1 Offline
                  1 Offline
                  123 0
                  wrote on last edited by
                  #11

                  CoffeeAddict19 wrote:

                  I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

                  I'm sorry if you've already seen this, CoffeeAddict19, but the mob keeps deleting it. I think it's a good offer, even if you just glance at our solution to the problem and throw it away. I can almost guarantee you'll get some ideas out of it. We used straight GDI for the bulk of the wysiwyg, vector-based page editor that is part of the development system we wrote, resorting to GDI+ only for the conversion functions that are missing in the old GDI (JPEG to BITMAP, for example). Our editor is simple and smooth and includes the usual graphics objects (rectangles, ellipses, lines, open and closed polygons, etc), plus text (in different fonts, styles, and colors) and pictures (which can be sized, cropped, rotated, mirrored, and flipped); it also supports grouping of objects (to any depth), various units of measure, snap grids, reduction, enlargement, multiple pages in different orientations, and it saves everything in ascii text. The interface is unique: it is modeless, and has none of the usual "tools"; nevertheless, it is easy to learn and very easy to use. I'd be glad to send you a copy, with source code, to give you some ideas - it's written in Plain English (about 4300 lines), but you can just think of it as pseudocode if you decide to write in another language. Interested? help@osmosian.com.

                  1 Reply Last reply
                  0
                  • C CoffeeAddict19

                    I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #12

                    Take a look at this[^] article and the others by this author. Elaine :rose:

                    The tigress is here :-D

                    1 Reply Last reply
                    0
                    • E El Corazon

                      CoffeeAddict19 wrote:

                      WTF happened?

                      Full discussion here.[^] Right or wrong, we have a salesman who refuses to obey the no-advertising rule of the site because he does not believe it. Right or wrong he has a product that he likes to reference in any post related to programming. Right or wrong he has been around a while, posted many posts referencing his product, been admonished by members and owners to stop spamming the site. His answer is there for you to read and make your own decision. -- modified at 12:53 Monday 8th January, 2007

                      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                      C Offline
                      C Offline
                      Chris S Kaiser
                      wrote on last edited by
                      #13

                      And here's a funny too: Clickety Reference to not spamming anymore.[^]

                      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                      1 Reply Last reply
                      0
                      • C CoffeeAddict19

                        I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

                        1 Offline
                        1 Offline
                        123 0
                        wrote on last edited by
                        #14

                        CoffeeAddict19 wrote:

                        I'm thinking about writing a simple 2D CAD drawing program. It won't have anything near the complexity of a commercial CAD program, essentially it'll be a sophisticated vector based clone of MS Paint. It dosen't need to be multiplatform (windows xp/2000/vista). My question is, which graphics API or GUI would you recommend? MFC/GDI+, Qt4, OpenGL, DirectX, SDL? The only thing I won't use is .NET.

                        Again, I apologize if you've already seen this. It keeps getting deleted. We used straight GDI for the bulk of the wysiwyg, vector-based page editor that is part of the development system we wrote, resorting to GDI+ only for the conversion functions that are missing in the old GDI (JPEG to BITMAP, for example). Our editor is simple and smooth and includes the usual graphics objects (rectangles, ellipses, lines, open and closed polygons, etc), plus text (in different fonts, styles, and colors) and pictures (which can be sized, cropped, rotated, mirrored, and flipped); it also supports grouping of objects (to any depth), various units of measure, snap grids, reduction, enlargement, multiple pages in different orientations, and it saves everything in ascii text. The interface is unique: it is modeless, and has none of the usual "tools"; nevertheless, it is easy to learn and very easy to use. I'd be glad to send you a copy, with source code, to give you some ideas - it's written in Plain English (about 4300 lines), but you can just think of it as pseudocode if you decide to write in another language. Interested? help@osmosian.com.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups