Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 3313

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- q3canvas.cpp -->
<head>
  <title>Qt 4.6: Q3CanvasSpline Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//Q3CanvasSpline"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">Q3CanvasSpline Class Reference<br /><span class="small-subtitle">[<a href="qt3support.html">Qt3Support</a> module]</span>
</h1>
<p>The Q3CanvasSpline class provides multi-bezier splines on a <a href="q3canvas.html">Q3Canvas</a>. <a href="#details">More...</a></p>
<pre> #include &lt;Q3CanvasSpline&gt;</pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html">Porting to Qt 4</a> for more information.</p>
<p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
<p>Inherits <a href="q3canvaspolygon.html">Q3CanvasPolygon</a>.</p>
<ul>
<li><a href="q3canvasspline-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3canvasspline.html#Q3CanvasSpline">Q3CanvasSpline</a></b> ( Q3Canvas * <i>canvas</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3canvasspline.html#dtor.Q3CanvasSpline">~Q3CanvasSpline</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3canvasspline.html#closed">closed</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Q3PointArray </td><td class="memItemRight" valign="bottom"><b><a href="q3canvasspline.html#controlPoints">controlPoints</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3canvasspline.html#setControlPoints">setControlPoints</a></b> ( Q3PointArray <i>ctrl</i>, bool <i>close</i> = true )</td></tr>
</table>
<hr />
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><b><a href="q3canvasspline.html#rtti">rtti</a></b> () const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>5 public functions inherited from <a href="q3canvaspolygon.html#public-functions">Q3CanvasPolygon</a></li>
<li><div bar="2" class="fn"></div>9 public functions inherited from <a href="q3canvaspolygonalitem.html#public-functions">Q3CanvasPolygonalItem</a></li>
<li><div bar="2" class="fn"></div>34 public functions inherited from <a href="q3canvasitem.html#public-functions">Q3CanvasItem</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 protected function inherited from <a href="q3canvaspolygon.html#protected-functions">Q3CanvasPolygon</a></li>
<li><div class="fn"></div>6 protected functions inherited from <a href="q3canvaspolygonalitem.html#protected-functions">Q3CanvasPolygonalItem</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="q3canvasitem.html#protected-functions">Q3CanvasItem</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The Q3CanvasSpline class provides multi-bezier splines on a <a href="q3canvas.html">Q3Canvas</a>.</p>
<p>A Q3CanvasSpline is a sequence of 4-point bezier curves joined together to make a curved shape.</p>
<p>You set the control points of the spline with <a href="q3canvasspline.html#setControlPoints">setControlPoints</a>().</p>
<p>If the bezier is <a href="q3canvasspline.html#closed">closed</a>(), then the first control point will be re-used as the last control point. Therefore, a closed bezier must have a multiple of 3 control points and an open bezier must have one extra point.</p>
<p>The beziers are not necessarily joined &quot;smoothly&quot;. To ensure this, set control points appropriately (general reference texts about beziers will explain this in detail).</p>
<p>Like any other canvas item splines can be moved with <a href="q3canvasitem.html#move">Q3CanvasItem::move</a>() and <a href="q3canvasitem.html#moveBy">Q3CanvasItem::moveBy</a>(), or by setting coordinates with <a href="q3canvasitem.html#setX">Q3CanvasItem::setX</a>(), <a href="q3canvasitem.html#setY">Q3CanvasItem::setY</a>() and <a href="q3canvasitem.html#setZ">Q3CanvasItem::setZ</a>().</p>
<p>See also <a href="http://qt.nokia.com/doc/qtcanvas">QtCanvas</a> and <a href="graphicsview-porting.html">Porting to Graphics View</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/Q3CanvasSpline/Q3CanvasSpline"></a>
<h3 class="fn"><a name="Q3CanvasSpline"></a>Q3CanvasSpline::Q3CanvasSpline ( <a href="q3canvas.html">Q3Canvas</a> * <i>canvas</i> )</h3>
<p>Create a spline with no control points on the canvas <i>canvas</i>.</p>
<p>See also <a href="q3canvasspline.html#setControlPoints">setControlPoints</a>().</p>
<a name="//apple_ref/cpp/instm/Q3CanvasSpline/~Q3CanvasSpline"></a>
<h3 class="fn"><a name="dtor.Q3CanvasSpline"></a>Q3CanvasSpline::~Q3CanvasSpline ()</h3>
<p>Destroy the spline.</p>
<a name="//apple_ref/cpp/instm/Q3CanvasSpline/closed"></a>
<h3 class="fn"><a name="closed"></a>bool Q3CanvasSpline::closed () const</h3>
<p>Returns true if the control points are a closed set; otherwise returns false.</p>
<a name="//apple_ref/cpp/instm/Q3CanvasSpline/controlPoints"></a>
<h3 class="fn"><a name="controlPoints"></a><a href="q3pointarray.html">Q3PointArray</a> Q3CanvasSpline::controlPoints () const</h3>
<p>Returns the current set of control points.</p>
<p>See also <a href="q3canvasspline.html#setControlPoints">setControlPoints</a>() and <a href="q3canvasspline.html#closed">closed</a>().</p>
<a name="//apple_ref/cpp/instm/Q3CanvasSpline/rtti"></a>
<h3 class="fn"><a name="rtti"></a>int Q3CanvasSpline::rtti () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3canvasitem.html#rtti">Q3CanvasItem::rtti</a>().</p>
<p>Returns 8 (<a href="q3canvasitem.html#RttiValues-enum">Q3CanvasItem::Rtti_Spline</a>).</p>
<p>See also <a href="q3canvasitem.html#rtti">Q3CanvasItem::rtti</a>().</p>
<a name="//apple_ref/cpp/instm/Q3CanvasSpline/setControlPoints"></a>
<h3 class="fn"><a name="setControlPoints"></a>void Q3CanvasSpline::setControlPoints ( <a href="q3pointarray.html">Q3PointArray</a> <i>ctrl</i>, bool <i>close</i> = true )</h3>
<p>Set the spline control points to <i>ctrl</i>.</p>
<p>If <i>close</i> is true, then the first point in <i>ctrl</i> will be re-used as the last point, and the number of control points must be a multiple of 3. If <i>close</i> is false, one additional control point is required, and the number of control points must be one of (4, 7, 10, 13, ..&#x2e;)&#x2e;</p>
<p>If the number of control points doesn't meet the above conditions, the number of points will be truncated to the largest number of points that do meet the requirement.</p>
<p>See also <a href="q3canvasspline.html#controlPoints">controlPoints</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>