Results 1 to 2 of 2

Thread: get the point of a fitted curve

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default get the point of a fitted curve

    Sorry to repost again my problem.
    I have a fitted curve (the attribute of the curve is setted to Fitted).
    I suppose that in this way Qwt compute for me the interpolated points.
    well, if it so, I would use these interpolated points, in order to do other calculations.
    I use this code
    Qt Code:
    1. t = (QwtSplineCurveFitter*)dSolar[11]->curveFitter();
    2. sp= t->spline();
    3. qDebug()<<"draw,spline..."<<sp.points();
    To copy to clipboard, switch view to plain text mode 
    dSolar[11] is simply a QwtPlotCurve.
    Why I get an empty QPolygonF?
    Helps appreciated

  2. #2
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: get the point of a fitted curve

    Maybe, the splines created inside QwtPlotCurve are local.
    So, I tried this one:
    Qt Code:
    1.  
    2.  
    3.  
    4. QPolygonF interpolatedPoints;
    5. interpolatedPoints = sp.fitCurve(sunP[11]);
    6. qDebug()<<interpolatedPoints;
    To copy to clipboard, switch view to plain text mode 
    but the result is a long list of equal points.

Similar Threads

  1. Get the points of a fitted curve
    By giusepped in forum Qwt
    Replies: 4
    Last Post: 25th December 2008, 08:42
  2. Check a point inside or outside a road?
    By kstking in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2007, 19:48
  3. Moving the (0.0) point on the scene
    By maverick_pol in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2007, 16:34

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.