Results 1 to 2 of 2

Thread: QWtPolar Chart(Need help to Individual calibrate the Azimuth axis)

  1. #1
    Join Date
    Sep 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default QWtPolar Chart(Need help to Individual calibrate the Azimuth axis)

    Hi

    I have a scenario where i need to calibrate the Individual azimuth axis with Different values.
    For eg:- say i have 4 azimuth axis(0,90,180,360);
    Each axis should be calibrated with different Minimum and maximum Upper limits.
    for eg
    0 Degree axis should have a minimum and maximum value of 0 to 10.
    90 Degree axis should have a minimum and maximum value of 10 to 100.
    180 Degree axis should have a minimum and maximum value of 100 to 200.

    Can anyone suggest me how to calibrate the azimuth axis individually.
    Thanks in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,195
    Thanked 847 Times in 796 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWtPolar Chart(Need help to Individual calibrate the Azimuth axis)

    You have to start with deriving from QwtScaleTransformation implementing xForm/invXForm. like described above. p1, p2 are the angles while s1, s2 are the values from your scale.

    Next you have to derive from QwtScaleEngine, where you return your transformation. You don't need a valid implementation of the autoScale method ( you don't want autoscaling for the azimuth scale ), but for divideScale. It is for calculating the ticks - in your case you can return some fixed positions.

    Then assign your engine with QwtPolarPlot::setAxisScaleEngine() - let's see what happens.

    Uwe

Similar Threads

  1. Replies: 7
    Last Post: 13th April 2011, 08:42
  2. How to Calibrate Touchscreen
    By yagabey in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 16th March 2010, 13:07
  3. Replies: 1
    Last Post: 9th October 2008, 07:23
  4. calibrate function
    By sar_van81 in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2007, 07:51
  5. Azimuth and elevation widgets?
    By high_flyer in forum General Discussion
    Replies: 2
    Last Post: 27th July 2006, 09:44

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.