Results 1 to 6 of 6

Thread: big vector graphics

  1. #1
    Join Date
    Oct 2007
    Location
    Caracas - Venezuela
    Posts
    27
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default big vector graphics

    How do indicate to QGraphicsView that print a function z(x, y) or any matrix,
    where Matrix = Data[however][3] and Z is positive in depth ?

    By example:

    X Y Z
    1 1 1
    1 2 1
    2 1 0



    I know to use the data, I don’t know anything about QGraphicsItem and I read tutorial.
    Please, put a single example.

    PD: By the way “however” is > 140,000.
    Attached Images Attached Images
    Colombo C. Da Encarnaçao Q.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: big vector graphics

    Could you try to rephrase the question? It's not easy to understand what the question is.

  3. #3
    Join Date
    Oct 2007
    Location
    Caracas - Venezuela
    Posts
    27
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default

    I want to plot a surface with data give in a matrix X, Y, Z. Specifically North, East and any parameter. I want to use QGraphicView or other tool. but the tutorials and manuals only talk about 2d & not 3D.

    Thank you

    More detailed:

    I have a matrix with many data (x, y, z)

    Using MatLab I can generate a surfer the next way

    Qt Code:
    1. Plot3d(x,y,z);
    2. titlex(“East”);
    3. titley(“North”);
    4. titlez(“Parameter”);
    5. hold
    To copy to clipboard, switch view to plain text mode 

    and plot other surface in the same plot.

    Surely in Qt must to have any way to surf, something like this

    Qt Code:
    1. For(i=0;i<however;i++)
    2. QGraphicView::setSomethingLike(matrix[i][]);
    To copy to clipboard, switch view to plain text mode 
    Or
    Qt Code:
    1. For(i=0;i<however;i++)
    2. {
    3. QGraphicView::setX(matrix[i][0]);
    4. QGraphicView::setY(matrix[i][1]);
    5. QGraphicView::setZ(matrix[i][2]);
    6. QGraphicView::PrintSurfer(X,Y,Z);
    7. }
    To copy to clipboard, switch view to plain text mode 

    Is only a idea, but how I said, I didn’t find nothing about.

    regards
    Last edited by jpn; 22nd January 2008 at 15:04. Reason: missing [code] tags
    Colombo C. Da Encarnaçao Q.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: big vector graphics


  5. #5
    Join Date
    Oct 2007
    Location
    Caracas - Venezuela
    Posts
    27
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: big vector graphics

    Thank you,
    but what is QtOpenGL Module? is it not enoug? Have you used qwtplot3d before? or why using Qt is possible make complex animation but nobody can make a single plot?

    I repet Thank you very much, but a have many quetions
    Colombo C. Da Encarnaçao Q.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: big vector graphics

    Quote Originally Posted by Colx007 View Post
    but what is QtOpenGL Module?
    It is one of Qt's libraries that provides hardware accelerated support for 2D and 3D drawing using OpenGL.
    is it not enoug?
    It is, but it is lowlevel.

    or why using Qt is possible make complex animation but nobody can make a single plot?
    You can make plots but you have to implement all the drawing and logic yourself (for example converting 3D coordinates into 2D or calculating and drawing polygons that make the surface). 3rd party libraries like Qwt3D help you focus on your goals and not on the details by providing an additional layer over Qt extending it with new architectures and features.

  7. The following user says thank you to wysota for this useful post:

    Colx007 (22nd January 2008)

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.