Results 1 to 9 of 9

Thread: how to display DGN file

  1. #1
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to display DGN file

    I need to display a DGN file .Any plugin is available?
    otherwise how do I proceed?
    "A fool can ask More questions that a wise man cannot answer"
    /home/nithyanair/Pics/image.jpg

  2. #2
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display DGN file

    I highly doubt it exists for Qt.

    I'm assuming your talking about V8 DGN Cad format?
    Read this http://www.bentley.com/en-US/Product...ation/OpenDGN/ , specifically look at the section with the bold heading "V8 DGN Specification" near the bottom of the page.

    On the surface it appears you could write your own reader. Read the doco on writing ImageFormat plugins. I wrote one for TIF and I'm nearly done on a .TGA one. It's fairly straight forward to get the plugin happening, but there'll be lots of work implementing the specification. Hunt around for an open source project that implements it, then link the QtDGN ImageFormat plugin to that.

  3. #3
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display DGN file

    Any specific functionalities that any one know that is being implemented to see a DGN file?.
    using dgnlib it will give the elementary information.How to display it?

    Any body Knows to integrate Qt with dgnlib?

  4. #4
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display DGN file

    If you have a .o / .lib file or even the source code for libdgn, then you need to creatre a Qt Image Format plugin. I'll tell you what I'll do, I have a CodeSmithTools template here which I wrote to assist with the creation of an Image Format Skeleton. I'll build you a skeleton for DGN and post it on the forum tonight (it's now 7am where I am).
    I'll put in code comments suggesting where you should put code to link to an existing libdgn proejct.

    Sound good??
    Last edited by stevey; 21st April 2008 at 23:03.

  5. #5
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display DGN file

    By the way, do you want to be able to edit the DGN rendered image, or just view?

  6. #6
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display DGN file

    Ya It really sounds good and Thank you if you could.
    I just need to display the dgn file as background of my application.

  7. #7
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display DGN file

    No worries, I'll see what I can do.
    I found the dgnlib source code, I'll go the whole hog and attempt to build a complete plugin.
    I'll schtick the skeleton template up here tonight as well just in case someone else wants to have a go and gets it done before me

  8. #8
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display DGN file

    Is there any way to render the elementary information what dgnlib is giving to be directly displayed?

  9. #9
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display DGN file

    Well, clearly any ca package that uses it does do that step.
    Wether it's in the dgnlib api or not will determine if we need to write the code to render to a pixmap is yet to be told. I haven't had a good look at it yet.

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  2. Display a file from Directory tree to show in QTextEdit
    By vvdounai in forum Qt Programming
    Replies: 1
    Last Post: 13th November 2007, 14:43
  3. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  4. Can't display .jpg,.jpeg file in my QT app
    By Shalabh in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2007, 15:52
  5. How to display a file in the textBrowser
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2006, 20:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.