<html>
<head>
<title>QGraphicsRotation Class Reference</title>
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr></tr>
<td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" tppabs="http://pyqt4doc.appspot.com/images/rb-logo.png" width="32"></td>
<td width="1">  </td>
<td class="postheader" valign="center">
<a href="index.html" tppabs="http://pyqt4doc.appspot.com/index.html"><font color="#004faf">Home</font></a> · <a href="index.htm" tppabs="http://pyqt4doc.appspot.com/classes.html"><font color="#004faf">All Classes</font></a> · <a href="index.htm" tppabs="http://pyqt4doc.appspot.com/modules.html"><font color="#004faf">Modules</font></a>  · <a href="qss.html"><font color="#004faf">QSS HELP</font></a>  · <a href="qtqss.html"><font color="#004faf">QSS 案例</font></a> · <a href="HTTP://VER007.COM"><font color="#004faf">VER007 HOME</font></a> 
</td>
</table>
<h1 align="center">QGraphicsRotation Class Reference<br><sup><sup>[<a href="index.htm" tppabs="http://pyqt4doc.appspot.com/qtgui.html">QtGui</a> module]</sup></sup>
</h1>
<p>该QGraphicsRotation类提供围绕给定轴的旋转变换。<a href="#details">More...</a></p>

<p>继承<a href="qgraphicstransform.html" tppabs="http://pyqt4doc.appspot.com/qgraphicstransform.html">QGraphicsTransform</a>。</p>
<h3>Methods</h3>
<ul>
<li>
<div class="fn"></div>
<b><a href="qgraphicsrotation.html#QGraphicsRotation" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#QGraphicsRotation">__init__</a></b> (<i>self</i>, QObject <i>parent</i> = None)</li>
<li>
<div class="fn"></div>float <b><a href="qgraphicsrotation.html#angle" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#angle">angle</a></b> (<i>self</i>)</li>
<li>
<div class="fn"></div>
<b><a href="qgraphicsrotation.html#applyTo" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#applyTo">applyTo</a></b> (<i>self</i>, QMatrix4x4 <i>matrix</i>)</li>
<li>
<div class="fn"></div>QVector3D <b><a href="qgraphicsrotation.html#axis" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#axis">axis</a></b> (<i>self</i>)</li>
<li>
<div class="fn"></div>QVector3D <b><a href="qgraphicsrotation.html#origin" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#origin">origin</a></b> (<i>self</i>)</li>
<li>
<div class="fn"></div>
<b><a href="qgraphicsrotation.html#setAngle" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#setAngle">setAngle</a></b> (<i>self</i>, float)</li>
<li>
<div class="fn"></div>
<b><a href="qgraphicsrotation.html#setAxis" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#setAxis">setAxis</a></b> (<i>self</i>, QVector3D <i>axis</i>)</li>
<li>
<div class="fn"></div>
<b><a href="qgraphicsrotation.html#setAxis-2" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#setAxis-2">setAxis</a></b> (<i>self</i>, Qt.Axis <i>axis</i>)</li>
<li>
<div class="fn"></div>
<b><a href="qgraphicsrotation.html#setOrigin" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#setOrigin">setOrigin</a></b> (<i>self</i>, QVector3D <i>point</i>)</li>
</ul>
<h3>Qt Signals</h3>
<ul>
<li>
<div class="fn"></div>void <b><a href="qgraphicsrotation.html#angleChanged" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#angleChanged">angleChanged</a></b> ()</li>
<li>
<div class="fn"></div>void <b><a href="qgraphicsrotation.html#axisChanged" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#axisChanged">axisChanged</a></b> ()</li>
<li>
<div class="fn"></div>void <b><a href="qgraphicsrotation.html#originChanged" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#originChanged">originChanged</a></b> ()</li>
</ul>
<a name="details"></a><div class="ad">
<hr>
 
</div>
<h2>Detailed Description</h2>
<p>该QGraphicsRotation类提供围绕给定轴的旋转变换。</p>
<p>您可以通过分配提供所需的轴<a href="qvector3d.html" tppabs="http://pyqt4doc.appspot.com/qvector3d.html">QVector3D</a>该轴属性或者通过一个成员,如果<a href="qt.html#Axis-enum" tppabs="http://pyqt4doc.appspot.com/qt.html#Axis-enum">Qt.Axis</a>到setAxis方便的功能。默认情况下,该轴为(0 ,0,1 ),即,围绕Z轴旋转。</p>
<p>角特性,这是由QGraphicsRotation提供,现在描述了围绕该轴旋转的度数。</p>
<p>QGraphicsRotation提供某些参数,以帮助控制如何旋转应该被应用。</p>
<p>原点是该项目围绕其旋转(即,它保持固定的相对于父作为产品的其馀部分被转动)的位置。默认情况下,原点是<a href="qpointf.html" tppabs="http://pyqt4doc.appspot.com/qpointf.html">QPointF</a>(0 ,0)。</p>
<p>角属性提供的度数为围绕原点的项目按顺时针方向旋转。该值也可以是负的,表示逆时针旋转。对于动画的目的,也可能是有用的,以提供旋转角度超过( -360 , 360 )度,例如以动画如何项目旋转几次。</p>
<p>注意:最后一次旋转是在三维空间中的旋转后投影回2D的综合效应。如果几个旋转是连续进行的,他们不会像预期的那样,除非他们都绕Z轴。</p>
<hr>
<h2>Method Documentation</h2>
<h3 class="fn">
<a name="QGraphicsRotation"></a>QGraphicsRotation.__init__ (<i>self</i>, <a href="qobject.html" tppabs="http://pyqt4doc.appspot.com/qobject.html">QObject</a> <i>parent</i> = None)</h3>
<p>该<i>parent</i>的说法,如果不是没有,原因<i>self</i>通过Qt的,而不是PyQt的拥有。</p>
<p>构造一个新的<a href="qgraphicsrotation.html" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html">QGraphicsRotation</a>用给定的<i>parent</i>。</p>


<h3 class="fn">
<a name="angle"></a>float QGraphicsRotation.angle (<i>self</i>)</h3>
<h3 class="fn">
<a name="applyTo"></a>QGraphicsRotation.applyTo (<i>self</i>, <a href="qmatrix4x4.html" tppabs="http://pyqt4doc.appspot.com/qmatrix4x4.html">QMatrix4x4</a> <i>matrix</i>)</h3>
<p>从重新实现<a href="qgraphicstransform.html#applyTo" tppabs="http://pyqt4doc.appspot.com/qgraphicstransform.html#applyTo">QGraphicsTransform.applyTo</a>( ) 。</p>


<h3 class="fn">
<a name="axis"></a><a href="qvector3d.html" tppabs="http://pyqt4doc.appspot.com/qvector3d.html">QVector3D</a> QGraphicsRotation.axis (<i>self</i>)</h3>
<h3 class="fn">
<a name="origin"></a><a href="qvector3d.html" tppabs="http://pyqt4doc.appspot.com/qvector3d.html">QVector3D</a> QGraphicsRotation.origin (<i>self</i>)</h3>
<h3 class="fn">
<a name="setAngle"></a>QGraphicsRotation.setAngle (<i>self</i>, float)</h3>
<h3 class="fn">
<a name="setAxis"></a>QGraphicsRotation.setAxis (<i>self</i>, <a href="qvector3d.html" tppabs="http://pyqt4doc.appspot.com/qvector3d.html">QVector3D</a> <i>axis</i>)</h3>
<h3 class="fn">
<a name="setAxis-2"></a>QGraphicsRotation.setAxis (<i>self</i>, <a href="qt.html#Axis-enum" tppabs="http://pyqt4doc.appspot.com/qt.html#Axis-enum">Qt.Axis</a> <i>axis</i>)</h3>
<h3 class="fn">
<a name="setOrigin"></a>QGraphicsRotation.setOrigin (<i>self</i>, <a href="qvector3d.html" tppabs="http://pyqt4doc.appspot.com/qvector3d.html">QVector3D</a> <i>point</i>)</h3>
<hr>
<h2>Qt Signal Documentation</h2>
<h3 class="fn">
<a name="angleChanged"></a>void angleChanged ()</h3>
<p>这是该信号的默认超载。</p>
<p>这个信号被发射时的角度发生了变化。</p>
<p><b>See also</b> <a href="qgraphicsrotation.html#angle-prop" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#angle-prop">QGraphicsRotation.angle</a>。</p>


<h3 class="fn">
<a name="axisChanged"></a>void axisChanged ()</h3>
<p>这是该信号的默认超载。</p>
<p>这个信号被发射时的对象更改轴。</p>
<p><b>See also</b> <a href="qgraphicsrotation.html#axis-prop" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#axis-prop">QGraphicsRotation.axis</a>。</p>


<h3 class="fn">
<a name="originChanged"></a>void originChanged ()</h3>
<p>这是该信号的默认超载。</p>
<p>这个信号被发射时的原点已经改变。</p>
<p><b>See also</b> <a href="qgraphicsrotation.html#origin-prop" tppabs="http://pyqt4doc.appspot.com/qgraphicsrotation.html#origin-prop">QGraphicsRotation.origin</a>。</p>
<address>
<div class="ad">
<br> 
<br><hr>
</div>
<div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address">
<td align="left" width="25%">PyQt 4.10.3 for X11</td>
<td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com/">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com/">Nokia</a> 2012</td>
<td align="right" width="25%">Qt 4.8.5</td>
</tr></table></div>
</address>
</body>
</html>