Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved] Qwt3dplot - Plot stored data in cartesian coordinates

    General and Desktop
    2
    5
    1486
    Loading More Posts
    • 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.
    • A
      avmg last edited by

      Hi,

      I want to 3D-plot some data stored in 3 arrays which defines X, Y and Z coordinates. I found the loadFromData function but i try it without success.

      Does anybody got experience with this library?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        I'd advise to post this question directly on the QwtPlot3d project forum. You're more likely to get a quick answer.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • A
          avmg last edited by

          The truth is that I only post here after I spend some hours trying myself, and searching in internet. I would like to ask in the Qwt3DPlot forum but looks like it doesn't exists because when you click there it sends you to sourceforge, not to a forum. I search also in QtCentre but couldn't find too much information.

          The qwt3dplot APIs documentation is not clear enough for me, but Im not going to give up, I will keep trying.

          Thanks
          Andrew

          1 Reply Last reply Reply Quote 0
          • A
            avmg last edited by

            Sorry, i thought sourceforge is only to share/store code. I found the troubleshooter...

            1 Reply Last reply Reply Quote 0
            • A
              avmg last edited by

              Hi again,

              Finally i solved using volumeplot type, here i attach an example of the process:

              @//Creating a widget and adding a VolumePlot inside:
              QWidget *wm3D = new QWidget(this);
              m3Dplot = new VolumePlot(wm3D);

              //Function example of how to add data:
              void form::add_m3Ddata_point(double x, double y, double z){
              m3Ddata.push_back(Voxel(x,y,z,0,0,255,255)); // The last 4 numbers are for select the color in rgba format
              }

              //Adding the data to the VolumePlot:
              m3Dplot->createDataset(m3Ddata,true);
              m3Dplot->updateData();
              m3Dplot->updateGL();@

              Thanks!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post