Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 845e36bb3ecce380666d628d88446962 > files > 91

qtdatavis3d5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qabstract3dinputhandler.cpp -->
  <title>QAbstract3DInputHandler Class | Qt Data Visualization 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtdatavisualization-index.html">Qt Data Visualization</a></td><td ><a href="qtdatavisualization-module.html">C++ Classes</a></td><td >QAbstract3DInputHandler</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtdatavisualization-index.html">Qt Data Visualization | Commercial or GPLv3</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QAbstract3DInputHandler Class</h1>
<!-- $$$QAbstract3DInputHandler-brief -->
<p>The base class for implementations of input handlers. <a href="#details">More...</a></p>
<!-- @@@QAbstract3DInputHandler -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QAbstract3DInputHandler&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  QtDataVisualization 1.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qtdatavisualization-abstractinputhandler3d.html">AbstractInputHandler3D</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="q3dinputhandler.html">Q3DInputHandler</a></p>
</td></tr></table></div><ul>
<li><a href="qabstract3dinputhandler-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#InputView-enum">InputView</a></b> { InputViewNone, InputViewOnPrimary, InputViewOnSecondary }</td></tr>
</table></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qabstract3dinputhandler.html#inputPosition-prop">inputPosition</a></b> : QPoint</li>
<li class="fn"><b><a href="qabstract3dinputhandler.html#inputView-prop">inputView</a></b> : InputView</li>
<li class="fn"><b><a href="qabstract3dinputhandler.html#scene-prop">scene</a></b> : Q3DScene*</li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#dtor.QAbstract3DInputHandler">~QAbstract3DInputHandler</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#inputPosition-prop">inputPosition</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstract3DInputHandler::InputView </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#inputView-prop">inputView</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b>(QMouseEvent *<i>event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#mouseMoveEvent">mouseMoveEvent</a></b>(QMouseEvent *<i>event</i>, const QPoint &amp;<i>mousePos</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#mousePressEvent">mousePressEvent</a></b>(QMouseEvent *<i>event</i>, const QPoint &amp;<i>mousePos</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#mouseReleaseEvent">mouseReleaseEvent</a></b>(QMouseEvent *<i>event</i>, const QPoint &amp;<i>mousePos</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3DScene *</td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#scene-prop">scene</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#inputPosition-prop">setInputPosition</a></b>(const QPoint &amp;<i>position</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#inputView-prop">setInputView</a></b>(QAbstract3DInputHandler::InputView <i>inputView</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#scene-prop">setScene</a></b>(Q3DScene *<i>scene</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#touchEvent">touchEvent</a></b>(QTouchEvent *<i>event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#wheelEvent">wheelEvent</a></b>(QWheelEvent *<i>event</i>)</td></tr>
</table></div>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#inputView-prop">inputViewChanged</a></b>(QAbstract3DInputHandler::InputView <i>view</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#inputPosition-prop">positionChanged</a></b>(const QPoint &amp;<i>position</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#scene-prop">sceneChanged</a></b>(Q3DScene *<i>scene</i>)</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="protected-functions"></a>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#QAbstract3DInputHandler">QAbstract3DInputHandler</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#prevDistance">prevDistance</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#previousInputPos">previousInputPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#setPrevDistance">setPrevDistance</a></b>(int <i>distance</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstract3dinputhandler.html#setPreviousInputPos">setPreviousInputPos</a></b>(const QPoint &amp;<i>position</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QAbstract3DInputHandler-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The base class for implementations of input handlers.</p>
<p><a href="qabstract3dinputhandler.html">QAbstract3DInputHandler</a> is the base class that is subclassed by different input handling implementations that take input events and translate those to camera and light movements. Input handlers also translate raw input events to slicing and selection events in the scene.</p>
</div>
<!-- @@@QAbstract3DInputHandler -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$InputView$$$InputViewNone$$$InputViewOnPrimary$$$InputViewOnSecondary -->
<h3 class="fn" id="InputView-enum"><a name="InputView-enum"></a>enum QAbstract3DInputHandler::<span class="name">InputView</span></h3>
<p>Predefined input views for mouse and touch based input handlers.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QAbstract3DInputHandler::InputViewNone</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Mouse or touch not on a view.</td></tr>
<tr><td class="topAlign"><code>QAbstract3DInputHandler::InputViewOnPrimary</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Mouse or touch input received on the primary view area. If secondary view is displayed when <a href="qabstract3dinputhandler.html#inputView-prop">inputView</a> becomes InputViewOnPrimary, secondary view is closed.</td></tr>
<tr><td class="topAlign"><code>QAbstract3DInputHandler::InputViewOnSecondary</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Mouse or touch input received on the secondary view area.</td></tr>
</table></div>
<!-- @@@InputView -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$inputPosition-prop$$$inputPosition$$$setInputPositionconstQPoint&$$$positionChangedconstQPoint& -->
<h3 class="fn" id="inputPosition-prop"><a name="inputPosition-prop"></a><span class="name">inputPosition</span> : <span class="type">QPoint</span></h3>
<p>This property holds the last input position based on the processed input events.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QPoint </td><td class="memItemRight bottomAlign"><span class="name"><b>inputPosition</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInputPosition</b></span>(const QPoint &amp;<i>position</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>positionChanged</b></span>(const QPoint &amp;<i>position</i>)</td></tr>
</table></div>
<!-- @@@inputPosition -->
<!-- $$$inputView-prop$$$inputView$$$setInputViewQAbstract3DInputHandler::InputView$$$inputViewChangedQAbstract3DInputHandler::InputView -->
<h3 class="fn" id="inputView-prop"><a name="inputView-prop"></a><span class="name">inputView</span> : <span class="type"><a href="qabstract3dinputhandler.html#InputView-enum">InputView</a></span></h3>
<p>This property holds the current enumerated input view based on the view of the processed input events.</p>
<p>One of the <a href="qabstract3dinputhandler.html#InputView-enum">InputView</a> enum values.</p>
<p>When the view changes, the <code>inputViewChanged</code> signal is emitted.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QAbstract3DInputHandler::InputView </td><td class="memItemRight bottomAlign"><span class="name"><b>inputView</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInputView</b></span>(QAbstract3DInputHandler::InputView <i>inputView</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>inputViewChanged</b></span>(QAbstract3DInputHandler::InputView <i>view</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qabstract3dinputhandler.html#InputView-enum">InputView</a>.</p>
<!-- @@@inputView -->
<!-- $$$scene-prop$$$scene$$$setSceneQ3DScene*$$$sceneChangedQ3DScene* -->
<h3 class="fn" id="scene-prop"><a name="scene-prop"></a><span class="name">scene</span> : <span class="type"><a href="q3dscene.html">Q3DScene</a></span>*</h3>
<p>This property holds the 3D scene this abstract input handler is controlling.</p>
<p>One input handler can control one scene. Setting a scene to an input handler does not transfer the ownership of the scene.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Q3DScene *</td><td class="memItemRight bottomAlign"><span class="name"><b>scene</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScene</b></span>(Q3DScene *<i>scene</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>sceneChanged</b></span>(Q3DScene *<i>scene</i>)</td></tr>
</table></div>
<!-- @@@scene -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAbstract3DInputHandler[overload1]$$$QAbstract3DInputHandlerQObject* -->
<h3 class="fn" id="QAbstract3DInputHandler"><a name="QAbstract3DInputHandler"></a><code>[protected] </code>QAbstract3DInputHandler::<span class="name">QAbstract3DInputHandler</span>(<span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs the base class. An optional <i>parent</i> parameter can be given and is then passed to QObject constructor.</p>
<!-- @@@QAbstract3DInputHandler -->
<!-- $$$~QAbstract3DInputHandler[overload1]$$$~QAbstract3DInputHandler -->
<h3 class="fn" id="dtor.QAbstract3DInputHandler"><a name="dtor.QAbstract3DInputHandler"></a><code>[virtual] </code>QAbstract3DInputHandler::<span class="name">~QAbstract3DInputHandler</span>()</h3>
<p>Destroys the base class.</p>
<!-- @@@~QAbstract3DInputHandler -->
<!-- $$$mouseDoubleClickEvent[overload1]$$$mouseDoubleClickEventQMouseEvent* -->
<h3 class="fn" id="mouseDoubleClickEvent"><a name="mouseDoubleClickEvent"></a><code>[virtual] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">mouseDoubleClickEvent</span>(<span class="type">QMouseEvent</span> *<i>event</i>)</h3>
<p>Override this to handle mouse double click events. Mouse double click event is given in the <i>event</i>.</p>
<!-- @@@mouseDoubleClickEvent -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent*constQPoint& -->
<h3 class="fn" id="mouseMoveEvent"><a name="mouseMoveEvent"></a><code>[virtual] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">mouseMoveEvent</span>(<span class="type">QMouseEvent</span> *<i>event</i>, const <span class="type">QPoint</span> &amp;<i>mousePos</i>)</h3>
<p>Override this to handle mouse move events. Mouse move event is given in the <i>event</i> and the mouse position in <i>mousePos</i>.</p>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent*constQPoint& -->
<h3 class="fn" id="mousePressEvent"><a name="mousePressEvent"></a><code>[virtual] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">mousePressEvent</span>(<span class="type">QMouseEvent</span> *<i>event</i>, const <span class="type">QPoint</span> &amp;<i>mousePos</i>)</h3>
<p>Override this to handle mouse press events. Mouse press event is given in the <i>event</i> and the mouse position in <i>mousePos</i>.</p>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent*constQPoint& -->
<h3 class="fn" id="mouseReleaseEvent"><a name="mouseReleaseEvent"></a><code>[virtual] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">mouseReleaseEvent</span>(<span class="type">QMouseEvent</span> *<i>event</i>, const <span class="type">QPoint</span> &amp;<i>mousePos</i>)</h3>
<p>Override this to handle mouse release events. Mouse release event is given in the <i>event</i> and the mouse position in <i>mousePos</i>.</p>
<!-- @@@mouseReleaseEvent -->
<!-- $$$prevDistance[overload1]$$$prevDistance -->
<h3 class="fn" id="prevDistance"><a name="prevDistance"></a><code>[protected] </code><span class="type">int</span> QAbstract3DInputHandler::<span class="name">prevDistance</span>() const</h3>
<p>Returns the manhattan length between last two input positions.</p>
<p><b>See also </b><a href="qabstract3dinputhandler.html#setPrevDistance">setPrevDistance</a>().</p>
<!-- @@@prevDistance -->
<!-- $$$previousInputPos[overload1]$$$previousInputPos -->
<h3 class="fn" id="previousInputPos"><a name="previousInputPos"></a><code>[protected] </code><span class="type">QPoint</span> QAbstract3DInputHandler::<span class="name">previousInputPos</span>() const</h3>
<p>Returns the previous input position.</p>
<p><b>See also </b><a href="qabstract3dinputhandler.html#setPreviousInputPos">setPreviousInputPos</a>().</p>
<!-- @@@previousInputPos -->
<!-- $$$setPrevDistance[overload1]$$$setPrevDistanceint -->
<h3 class="fn" id="setPrevDistance"><a name="setPrevDistance"></a><code>[protected] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">setPrevDistance</span>(<span class="type">int</span> <i>distance</i>)</h3>
<p>Sets the <i>distance</i> (manhattan length) between last two input positions.</p>
<p><b>See also </b><a href="qabstract3dinputhandler.html#prevDistance">prevDistance</a>().</p>
<!-- @@@setPrevDistance -->
<!-- $$$setPreviousInputPos[overload1]$$$setPreviousInputPosconstQPoint& -->
<h3 class="fn" id="setPreviousInputPos"><a name="setPreviousInputPos"></a><code>[protected] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">setPreviousInputPos</span>(const <span class="type">QPoint</span> &amp;<i>position</i>)</h3>
<p>Sets the previous input position to the point given by <i>position</i>.</p>
<p><b>See also </b><a href="qabstract3dinputhandler.html#previousInputPos">previousInputPos</a>().</p>
<!-- @@@setPreviousInputPos -->
<!-- $$$touchEvent[overload1]$$$touchEventQTouchEvent* -->
<h3 class="fn" id="touchEvent"><a name="touchEvent"></a><code>[virtual] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">touchEvent</span>(<span class="type">QTouchEvent</span> *<i>event</i>)</h3>
<p>Override this to handle touch input events. Touch event is given in the <i>event</i>.</p>
<!-- @@@touchEvent -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQWheelEvent* -->
<h3 class="fn" id="wheelEvent"><a name="wheelEvent"></a><code>[virtual] </code><span class="type">void</span> QAbstract3DInputHandler::<span class="name">wheelEvent</span>(<span class="type">QWheelEvent</span> *<i>event</i>)</h3>
<p>Override this to handle wheel events. Wheel event is given in the <i>event</i>.</p>
<!-- @@@wheelEvent -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>