<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Qwt User's Guide: QwtPointPolar Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Qwt User's Guide <span id="projectnumber">6.0.1</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <h1>QwtPointPolar Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="QwtPointPolar" --> <p>A point in polar coordinates. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="qwt__point__polar_8h_source.html">qwt_point_polar.h</a>></code></p> <p><a href="class_qwt_point_polar-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#afac65de2dca25b0b6a6c5fb917fff424">azimuth</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a73d21f582ee5960011300598e17fab00">isNull</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#ad1f8c93359d28322b6e3eeb9758a66f2">isValid</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a2544921fb33e7601444223572243ed6a">normalized</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#af85df99741e28fbe6bdee96df42fb448">operator!=</a> (const <a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> &) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#af59f940ff7d63de71044a8bba6d749db">operator==</a> (const <a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> &) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#ae5cd7e8ab0505672748f779c9668fe29">QwtPointPolar</a> (const <a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a269241ca9f94f641063fe896cdd77165">QwtPointPolar</a> (const QPointF &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#af1c77f9730d441937e52ff5beee04975">QwtPointPolar</a> (double azimuth, double radius)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a365875acf86a9f052e12784b5f2f7d44">QwtPointPolar</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#ab629fcfb36f0f29df45b256c6bddf194">radius</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#ae509330927d54dbc7cf65fae42083fce">rAzimuth</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a69cf76a959e4417038b4e2684d307847">rRadius</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a32c6c64510fce3e087d332305b4aca9e">setAzimuth</a> (double)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a8cd4f93356a8a8c07400c3ad9ff1b560">setPoint</a> (const QPointF &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#a31ae2f4d6fad44f51ad5e7444a7f21fe">setRadius</a> (double)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_polar.html#ab61dd4130840876c00d79c28ea534d06">toPoint</a> () const </td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A point in polar coordinates. </p> <p>In polar coordinates a point is determined by an angle and a distance. See <a href="http://en.wikipedia.org/wiki/Polar_coordinate_system">http://en.wikipedia.org/wiki/Polar_coordinate_system</a> </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a365875acf86a9f052e12784b5f2f7d44"></a><!-- doxytag: member="QwtPointPolar::QwtPointPolar" ref="a365875acf86a9f052e12784b5f2f7d44" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPointPolar::QwtPointPolar </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a null point, with a radius and azimuth set to 0.0. </p> <dl class="see"><dt><b>See also:</b></dt><dd>QPointF::isNull </dd></dl> </div> </div> <a class="anchor" id="af1c77f9730d441937e52ff5beee04975"></a><!-- doxytag: member="QwtPointPolar::QwtPointPolar" ref="af1c77f9730d441937e52ff5beee04975" args="(double azimuth, double radius)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPointPolar::QwtPointPolar </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>azimuth</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>radius</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a point with coordinates specified by radius and azimuth.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">azimuth</td><td>Azimuth </td></tr> <tr><td class="paramname">radius</td><td>Radius </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ae5cd7e8ab0505672748f779c9668fe29"></a><!-- doxytag: member="QwtPointPolar::QwtPointPolar" ref="ae5cd7e8ab0505672748f779c9668fe29" args="(const QwtPointPolar &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPointPolar::QwtPointPolar </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a point using the values of the point specified. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>Other point </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a269241ca9f94f641063fe896cdd77165"></a><!-- doxytag: member="QwtPointPolar::QwtPointPolar" ref="a269241ca9f94f641063fe896cdd77165" args="(const QPointF &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPointPolar::QwtPointPolar </td> <td>(</td> <td class="paramtype">const QPointF & </td> <td class="paramname"><em>p</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Convert and assign values from a point in Cartesian coordinates</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>Point in Cartesian coordinates </td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_point_polar.html#a8cd4f93356a8a8c07400c3ad9ff1b560">setPoint()</a>, <a class="el" href="class_qwt_point_polar.html#ab61dd4130840876c00d79c28ea534d06">toPoint()</a> </dd></dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="afac65de2dca25b0b6a6c5fb917fff424"></a><!-- doxytag: member="QwtPointPolar::azimuth" ref="afac65de2dca25b0b6a6c5fb917fff424" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double QwtPointPolar::azimuth </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the azimuth. </p> </div> </div> <a class="anchor" id="a73d21f582ee5960011300598e17fab00"></a><!-- doxytag: member="QwtPointPolar::isNull" ref="a73d21f582ee5960011300598e17fab00" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool QwtPointPolar::isNull </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns true if <a class="el" href="class_qwt_point_polar.html#ab629fcfb36f0f29df45b256c6bddf194" title="Returns the radius.">radius()</a> >= 0.0. </p> </div> </div> <a class="anchor" id="ad1f8c93359d28322b6e3eeb9758a66f2"></a><!-- doxytag: member="QwtPointPolar::isValid" ref="ad1f8c93359d28322b6e3eeb9758a66f2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool QwtPointPolar::isValid </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns true if <a class="el" href="class_qwt_point_polar.html#ab629fcfb36f0f29df45b256c6bddf194" title="Returns the radius.">radius()</a> >= 0.0. </p> </div> </div> <a class="anchor" id="a2544921fb33e7601444223572243ed6a"></a><!-- doxytag: member="QwtPointPolar::normalized" ref="a2544921fb33e7601444223572243ed6a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> QwtPointPolar::normalized </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Normalize radius and azimuth</p> <p>When the radius is < 0.0 it is set to 0.0. The azimuth is a value >= 0.0 and < 2 * M_PI. </p> </div> </div> <a class="anchor" id="af85df99741e28fbe6bdee96df42fb448"></a><!-- doxytag: member="QwtPointPolar::operator!=" ref="af85df99741e28fbe6bdee96df42fb448" args="(const QwtPointPolar &) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool QwtPointPolar::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns true if point1 is not equal to point2; otherwise returns false.</p> <p>Two points are equal to each other if radius and azimuth-coordinates are the same. Points are not equal, when the azimuth differs, but other.azimuth() == <a class="el" href="class_qwt_point_polar.html#afac65de2dca25b0b6a6c5fb917fff424" title="Returns the azimuth.">azimuth()</a> % (2 * PI).</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_point_polar.html#a2544921fb33e7601444223572243ed6a">normalized()</a> </dd></dl> </div> </div> <a class="anchor" id="af59f940ff7d63de71044a8bba6d749db"></a><!-- doxytag: member="QwtPointPolar::operator==" ref="af59f940ff7d63de71044a8bba6d749db" args="(const QwtPointPolar &) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool QwtPointPolar::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_qwt_point_polar.html">QwtPointPolar</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns true if point1 is equal to point2; otherwise returns false.</p> <p>Two points are equal to each other if radius and azimuth-coordinates are the same. Points are not equal, when the azimuth differs, but other.azimuth() == <a class="el" href="class_qwt_point_polar.html#afac65de2dca25b0b6a6c5fb917fff424" title="Returns the azimuth.">azimuth()</a> % (2 * PI).</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_point_polar.html#a2544921fb33e7601444223572243ed6a">normalized()</a> </dd></dl> </div> </div> <a class="anchor" id="ab629fcfb36f0f29df45b256c6bddf194"></a><!-- doxytag: member="QwtPointPolar::radius" ref="ab629fcfb36f0f29df45b256c6bddf194" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double QwtPointPolar::radius </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the radius. </p> </div> </div> <a class="anchor" id="ae509330927d54dbc7cf65fae42083fce"></a><!-- doxytag: member="QwtPointPolar::rAzimuth" ref="ae509330927d54dbc7cf65fae42083fce" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double & QwtPointPolar::rAzimuth </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the azimuth. </p> </div> </div> <a class="anchor" id="a69cf76a959e4417038b4e2684d307847"></a><!-- doxytag: member="QwtPointPolar::rRadius" ref="a69cf76a959e4417038b4e2684d307847" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double & QwtPointPolar::rRadius </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the radius. </p> </div> </div> <a class="anchor" id="a32c6c64510fce3e087d332305b4aca9e"></a><!-- doxytag: member="QwtPointPolar::setAzimuth" ref="a32c6c64510fce3e087d332305b4aca9e" args="(double)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtPointPolar::setAzimuth </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>azimuth</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the atimuth to atimuth. </p> </div> </div> <a class="anchor" id="a8cd4f93356a8a8c07400c3ad9ff1b560"></a><!-- doxytag: member="QwtPointPolar::setPoint" ref="a8cd4f93356a8a8c07400c3ad9ff1b560" args="(const QPointF &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtPointPolar::setPoint </td> <td>(</td> <td class="paramtype">const QPointF & </td> <td class="paramname"><em>p</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Convert and assign values from a point in Cartesian coordinates </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>Point in Cartesian coordinates </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a31ae2f4d6fad44f51ad5e7444a7f21fe"></a><!-- doxytag: member="QwtPointPolar::setRadius" ref="a31ae2f4d6fad44f51ad5e7444a7f21fe" args="(double)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtPointPolar::setRadius </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>radius</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the radius to radius. </p> </div> </div> <a class="anchor" id="ab61dd4130840876c00d79c28ea534d06"></a><!-- doxytag: member="QwtPointPolar::toPoint" ref="ab61dd4130840876c00d79c28ea534d06" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QPointF QwtPointPolar::toPoint </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Convert and return values in Cartesian coordinates</p> <dl class="note"><dt><b>Note:</b></dt><dd>Invalid or null points will be returned as QPointF(0.0, 0.0) </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_point_polar.html#ad1f8c93359d28322b6e3eeb9758a66f2" title="Returns true if radius() >= 0.0.">isValid()</a>, <a class="el" href="class_qwt_point_polar.html#a73d21f582ee5960011300598e17fab00" title="Returns true if radius() >= 0.0.">isNull()</a> </dd></dl> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>