GorgonControl Support

Got a project that uses Gorgon? Got some code snippets that use Gorgon in an interesting way? Got milk? Post your screenshots, descriptions, and/or code here.
Forum rules
Keep it on-topic and DO NOT be disrespectful of other peoples work. Criticism is fine, as long as it's constructive.

Please note that the owner(s) of this website are not responsible for the content of any files uploaded. Please use them at your own risk.

If a file contains objectionable material please pm Tape_Worm or a moderator and it will be dealt with.

Please don't post objectionable files. If you post objectionable material (i.e. porn, warez, viruses or plagiarized work) your post will be deleted and you will be banned.
 
Sun Mar 08, 2009 4:13 am

  • Hello,

    As I choosed to use this library for my software which does CAD drawing, I had to develop a control that manages to use the RenderWindow only for the displayed area of the Scrolled control. So this control has DocumentWidth and DocumentHeight property, the mouse event send back the document coordonates in the actual viewed area. My code use .Net 3.5 (for the nice feature of adding methods to already defined classes). It adds support for Arc drawing. If it helps someone. I have done it because It was exploding the video memory when the control had size superior to the max resolution of the video card.

    GGCad.jpg


    GorgonControl.zip
    You do not have the required permissions to view the files attached to this post.
    User avatar
    gourky
     

Sun Mar 08, 2009 1:12 pm

  • That's awesome! Thank for you for providing the source for your control, I'm sure it'll come in handy. Excellent work.

    I moved it to the Projects that use Gorgon forum because it seems to make more sense being there.
    haikus are easy
    but sometimes they don't make sense
    refrigerator.
    User avatar
    Tape_Worm
    Site Admin
    Site Admin
     
    Posts: 324
    Joined: Wed Feb 27, 2008 9:15 pm
    Location: Canada

Mon Mar 09, 2009 6:23 am

  • Hello,

    You will find there a sample project with GorgonControl (needs dotnet 3.5), that shows you simple shapes drawing as well as loop drawing. The control has been updated since first message. Comments are inside the code. By the way, there is a little bug with drawing horizontal or vertical lines. if width or height are negative, its does not draw it...

    GorgonControlSample.zip


    GGCad that is not yet finished, is a CAD software that generate G-Code programs for CNC (Computer Numerical Control) milling or turning. It has a very different way to operate than other similar tools as your drawing, and the way you order shapes will drive the way g-code is generated. The overall philosophy makes it very fast and easy to use even if you do not have idea of how CNC does work. It supports either millimeter or inch coordonates, point, lines, circles, ellipses, arcs, splines (b-spline, bézier, natural-cubic, polygons). I already use it to draw and cut ribs for wing planes.

    GGCad.zip


    If any question, do no hesitate

    Gourky
    (I am not English native speaker so :D ...)
    You do not have the required permissions to view the files attached to this post.
    User avatar
    gourky
     

Mon Mar 09, 2009 11:46 am

  • I've added ggcad to the user screenshots section. Can you review the description to make sure that it's correct ? I've done my best to correct any grammatical or spelling errors (believe me, as someone who speaks the language natively, I know it's a pain in the ass to write grammatically correct English), but I noticed in the screenshot that circle is incorrectly spelled "cercle". Just wanted to let you know in case you weren't already aware of it. Also, sometimes, but not always, the damned picture viewer I use takes a little while to get the image and displays the 'red X' while it's loading, just be patient, it should show up.

    The app looks very impressive, when you get it ready for download/sale/etc... let me know and I'll add a link to it on the main page.

    As for negative width and height lines, yeah, there's no real support for that in the library. I may correct it in the future (if I ever get time), but until then it should be easy enough to work around (just offset the horizontal or vertical start point by the width/height and draw with an absolute width/height). Also the source code to Gorgon is freely available, so it'll be easy enough to patch it yourself if you want to go that route.
    haikus are easy
    but sometimes they don't make sense
    refrigerator.
    User avatar
    Tape_Worm
    Site Admin
    Site Admin
     
    Posts: 324
    Joined: Wed Feb 27, 2008 9:15 pm
    Location: Canada

Mon Mar 09, 2009 12:15 pm

  • Seems ok. I saw the "cercle" after having sent the screen shot (Mixing French and English :D ). Changed are done (I use xml file for countries... fast, easy). For horizontal lines. I did the modification in the Added method :

    Code: Select all
    RenderWindow.Line(Vector2D v1, Vector2D V2, Color c)


    It is in the GrogonControl source. I did not want to touch the library code to keep compatibility with next release. But it would be good to add vector2d and RenderTarget methods I added in next release.

    Anyway, I will keep in touch when GGCad will be finished.
    User avatar
    gourky
     

Mon Mar 30, 2009 1:12 am

  • Hello,

    Here is the last version of the control with minor enhancements.
    Arc method is modified with circle octants support to reduce computing.
    Offset property is added for drawing.

    GorgonControlSample.zip


    Gourky
    You do not have the required permissions to view the files attached to this post.
    User avatar
    gourky
     



 

Return to Projects that use Gorgon




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest
cron