Sophie

Sophie

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

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">
<!-- qgraphicstransform.cpp -->
<head>
  <title>Qt 4.6: QGraphicsRotation Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QGraphicsRotation"></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">QGraphicsRotation Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
</h1>
<p>The QGraphicsRotation class provides a rotation transformation around a given axis. <a href="#details">More...</a></p>
<pre> #include &lt;QGraphicsRotation&gt;</pre><p>Inherits <a href="qgraphicstransform.html">QGraphicsTransform</a>.</p>
<p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qgraphicsrotation-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li><div class="fn"><b><a href="qgraphicsrotation.html#angle-prop">angle</a></b> : qreal</div></li>
<li><div class="fn"><b><a href="qgraphicsrotation.html#axis-prop">axis</a></b> : QVector3D</div></li>
<li><div class="fn"><b><a href="qgraphicsrotation.html#origin-prop">origin</a></b> : QVector3D</div></li>
</ul>
<ul>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</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="qgraphicsrotation.html#QGraphicsRotation">QGraphicsRotation</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#dtor.QGraphicsRotation">~QGraphicsRotation</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#angle-prop">angle</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QVector3D </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#axis-prop">axis</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QVector3D </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#origin-prop">origin</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#angle-prop">setAngle</a></b> ( qreal )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#axis-prop">setAxis</a></b> ( const QVector3D &amp; <i>axis</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#axis-prop">setAxis</a></b> ( Qt::Axis <i>axis</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#origin-prop">setOrigin</a></b> ( const QVector3D &amp; <i>point</i> )</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 void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#applyTo">applyTo</a></b> ( QMatrix4x4 * <i>matrix</i> ) const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>1 public function inherited from <a href="qgraphicstransform.html#public-functions">QGraphicsTransform</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<hr />
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#angleChanged">angleChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#axisChanged">axisChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#originChanged">originChanged</a></b> ()</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="qgraphicstransform.html#protected-slots">QGraphicsTransform</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QGraphicsRotation class provides a rotation transformation around a given axis.</p>
<p>You can provide the desired axis by assigning a <a href="qvector3d.html">QVector3D</a> to the axis property or by passing a member if <a href="qt.html#Axis-enum">Qt::Axis</a> to the setAxis convenience function. By default the axis is (0, 0, 1) i.e&#x2e;, rotation around the Z axis.</p>
<p>The angle property, which is provided by QGraphicsRotation, now describes the number of degrees to rotate around this axis.</p>
<p>QGraphicsRotation provides certain parameters to help control how the rotation should be applied.</p>
<p>The origin is the point that the item is rotated around (i.e&#x2e;, it stays fixed relative to the parent as the rest of the item is rotated). By default the origin is <a href="qpointf.html">QPointF</a>(0, 0).</p>
<p>The angle property provides the number of degrees to rotate the item clockwise around the origin. This value also be negative, indicating a counter-clockwise rotation. For animation purposes it may also be useful to provide rotation angles exceeding (-360, 360) degrees, for instance to animate how an item rotates several times.</p>
<p>Note: the final rotation is the combined effect of a rotation in 3D space followed by a projection back to 2D. If several rotations are performed in succession, they will not behave as expected unless they were all around the Z axis.</p>
<p>See also <a href="qgraphicstransform.html">QGraphicsTransform</a>, <a href="qgraphicsitem.html#setRotation">QGraphicsItem::setRotation</a>(), and <a href="qtransform.html#rotate">QTransform::rotate</a>().</p>
<hr />
<h2>Property Documentation</h2>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/angle"></a>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/setAngle"></a>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/angleChanged"></a>
<h3 class="fn"><a name="angle-prop"></a>angle : <a href="qtglobal.html#qreal-typedef">qreal</a></h3>
<p>This property holds the angle for clockwise rotation, in degrees.</p>
<p>The angle can be any real number; the default value is 0.0&#x2e; A value of 180 will rotate 180 degrees, clockwise. If you provide a negative number, the item will be rotated counter-clockwise. Normally the rotation angle will be in the range (-360, 360), but you can also provide numbers outside of this range (e.g&#x2e;, a angle of 370 degrees gives the same result as 10 degrees).</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><b>angle</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setAngle</b> ( qreal )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#angleChanged">angleChanged</a></b> ()</td></tr>
</table>
<p>See also <a href="qgraphicsrotation.html#origin-prop">origin</a>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/axis"></a>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/setAxis"></a>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/axisChanged"></a>
<h3 class="fn"><a name="axis-prop"></a>axis : <a href="qvector3d.html">QVector3D</a></h3>
<p>This property holds a rotation axis, specified by a vector in 3D space.</p>
<p>This can be any axis in 3D space. By default the axis is (0, 0, 1), which is aligned with the Z axis. If you provide another axis, <a href="qgraphicsrotation.html">QGraphicsRotation</a> will provide a transformation that rotates around this axis. For example, if you would like to rotate an item around its X axis, you could pass (1, 0, 0) as the axis.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QVector3D </td><td class="memItemRight" valign="bottom"><b>axis</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setAxis</b> ( const QVector3D &amp; <i>axis</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setAxis</b> ( Qt::Axis <i>axis</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#axisChanged">axisChanged</a></b> ()</td></tr>
</table>
<p>See also <a href="qtransform.html">QTransform</a> and <a href="qgraphicsrotation.html#angle-prop">QGraphicsRotation::angle</a>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/origin"></a>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/setOrigin"></a>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/originChanged"></a>
<h3 class="fn"><a name="origin-prop"></a>origin : <a href="qvector3d.html">QVector3D</a></h3>
<p>This property holds the origin of the rotation in 3D space.</p>
<p>All rotations will be done relative to this point (i.e&#x2e;, this point will stay fixed, relative to the parent, when the item is rotated).</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QVector3D </td><td class="memItemRight" valign="bottom"><b>origin</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setOrigin</b> ( const QVector3D &amp; <i>point</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsrotation.html#originChanged">originChanged</a></b> ()</td></tr>
</table>
<p>See also <a href="qgraphicsrotation.html#angle-prop">angle</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/QGraphicsRotation"></a>
<h3 class="fn"><a name="QGraphicsRotation"></a>QGraphicsRotation::QGraphicsRotation ( <a href="qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a new <a href="qgraphicsrotation.html">QGraphicsRotation</a> with the given <i>parent</i>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/~QGraphicsRotation"></a>
<h3 class="fn"><a name="dtor.QGraphicsRotation"></a>QGraphicsRotation::~QGraphicsRotation ()</h3>
<p>Destroys the graphics rotation.</p>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/angleChanged"></a>
<h3 class="fn"><a name="angleChanged"></a>void QGraphicsRotation::angleChanged ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the angle has changed.</p>
<p>See also <a href="qgraphicsrotation.html#angle-prop">QGraphicsRotation::angle</a>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/applyTo"></a>
<h3 class="fn"><a name="applyTo"></a>void QGraphicsRotation::applyTo ( <a href="qmatrix4x4.html">QMatrix4x4</a> * <i>matrix</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicstransform.html#applyTo">QGraphicsTransform::applyTo</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/axisChanged"></a>
<h3 class="fn"><a name="axisChanged"></a>void QGraphicsRotation::axisChanged ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the axis of the object changes.</p>
<p>See also <a href="qgraphicsrotation.html#axis-prop">QGraphicsRotation::axis</a>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsRotation/originChanged"></a>
<h3 class="fn"><a name="originChanged"></a>void QGraphicsRotation::originChanged ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the origin has changed.</p>
<p>See also <a href="qgraphicsrotation.html#origin-prop">QGraphicsRotation::origin</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>