<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qpicktriangleevent.cpp --> <title>QPickTriangleEvent Class | Qt 3D 5.9</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.9</td><td ><a href="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-cpp.html">C++ Classes</a></td><td >QPickTriangleEvent</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</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="#properties">Properties</a></li> <li class="level1"><a href="#public-functions">Public 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">QPickTriangleEvent Class</h1> <span class="small-subtitle">(<a href="qt3drender-qpicktriangleevent.html">Qt3DRender::QPickTriangleEvent</a>)<br/></span> <!-- $$$QPickTriangleEvent-brief --> <p>The <a href="qt3drender-qpicktriangleevent.html">QPickTriangleEvent</a> class holds information when a triangle is picked <a href="#details">More...</a></p> <!-- @@@QPickTriangleEvent --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QPickTriangleEvent></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += 3drender</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.7</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-render-picktriangleevent.html">PickTriangleEvent</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qt3drender-qpickevent.html">Qt3DRender::QPickEvent</a></td></tr></table></div><ul> <li><a href="qt3drender-qpicktriangleevent-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <div class="table"><table class="propsummary"> <tr><td class="topAlign"><ul> <li class="fn"><b><a href="qt3drender-qpicktriangleevent.html#triangleIndex-prop">triangleIndex</a></b> : const uint</li> <li class="fn"><b><a href="qt3drender-qpicktriangleevent.html#uvw-prop">uvw</a></b> : const QVector3D</li> <li class="fn"><b><a href="qt3drender-qpicktriangleevent.html#vertex1Index-prop">vertex1Index</a></b> : const uint</li> </ul></td><td class="topAlign"><ul> <li class="fn"><b><a href="qt3drender-qpicktriangleevent.html#vertex2Index-prop">vertex2Index</a></b> : const uint</li> <li class="fn"><b><a href="qt3drender-qpicktriangleevent.html#vertex3Index-prop">vertex3Index</a></b> : const uint</li> </ul> </td></tr> </table></div> <ul> <li class="fn">8 properties inherited from <a href="qt3drender-qpickevent.html#properties">Qt3DRender::QPickEvent</a></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"> </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#QPickTriangleEvent">QPickTriangleEvent</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#QPickTriangleEvent-1">QPickTriangleEvent</a></b>(const QPointF &<i>position</i>, const QVector3D &<i>worldIntersection</i>, const QVector3D &<i>localIntersection</i>, float <i>distance</i>, uint <i>triangleIndex</i>, uint <i>vertex1Index</i>, uint <i>vertex2Index</i>, uint <i>vertex3Index</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#QPickTriangleEvent-2">QPickTriangleEvent</a></b>(const QPointF &<i>position</i>, const QVector3D &<i>worldIntersection</i>, const QVector3D &<i>localIntersection</i>, float <i>distance</i>, uint <i>triangleIndex</i>, uint <i>vertex1Index</i>, uint <i>vertex2Index</i>, uint <i>vertex3Index</i>, Buttons <i>button</i>, int <i>buttons</i>, int <i>modifiers</i>, const QVector3D &<i>uvw</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#triangleIndex">triangleIndex</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVector3D </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#uvw">uvw</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#vertex1Index">vertex1Index</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#vertex2Index">vertex2Index</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qpicktriangleevent.html#vertex3Index">vertex3Index</a></b>() const</td></tr> </table></div> <ul> <li class="fn">8 public functions inherited from <a href="qt3drender-qpickevent.html#public-functions">Qt3DRender::QPickEvent</a></li> </ul> <h3>Additional Inherited Members</h3> <ul> <li class="fn">1 public slot inherited from <a href="qt3drender-qpickevent.html#public-slots">Qt3DRender::QPickEvent</a></li> <li class="fn">1 signal inherited from <a href="qt3drender-qpickevent.html#signals">Qt3DRender::QPickEvent</a></li> </ul> <a name="details"></a> <!-- $$$QPickTriangleEvent-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qt3drender-qpicktriangleevent.html">QPickTriangleEvent</a> class holds information when a triangle is picked</p> <p>When QPickingSettings::pickMode() is set to <a href="qt3drender-qpickingsettings.html#PickMethod-enum">QPickingSettings::TrianglePicking</a>, the signals on <a href="qt3drender-qobjectpicker.html">QObjectPicker</a> will carry an instance of <a href="qt3drender-qpicktriangleevent.html">QPickTriangleEvent</a>.</p> <p>This contains the details of the triangle that was picked.</p> <p><b>Note: </b>In the case of indexed rendering, the point indices are relative to the array of coordinates, not the array of indices.</p></div> <p><b>See also </b><a href="qt3drender-qpickingsettings.html">QPickingSettings</a>, <a href="qt3drender-qpickevent.html">QPickEvent</a>, <a href="qt3drender-qobjectpicker.html">QObjectPicker</a>, and <a href="qt3drender-qattribute.html">QAttribute</a>.</p> <!-- @@@QPickTriangleEvent --> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$triangleIndex-prop$$$triangleIndex --> <h3 class="fn" id="triangleIndex-prop"><a name="triangleIndex-prop"></a><span class="name">triangleIndex</span> : const <span class="type">uint</span></h3> <p>Specifies the triangle index of the event</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> uint </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qpicktriangleevent.html#triangleIndex">triangleIndex</a></b></span>() const</td></tr> </table></div> <!-- @@@triangleIndex --> <!-- $$$uvw-prop$$$uvw --> <h3 class="fn" id="uvw-prop"><a name="uvw-prop"></a><span class="name">uvw</span> : const <span class="type">QVector3D</span></h3> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qpicktriangleevent.html#uvw">uvw</a></b></span>() const</td></tr> </table></div> <!-- @@@uvw --> <!-- $$$vertex1Index-prop$$$vertex1Index --> <h3 class="fn" id="vertex1Index-prop"><a name="vertex1Index-prop"></a><span class="name">vertex1Index</span> : const <span class="type">uint</span></h3> <p>Specifies the index of the first vertex in the triangle</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> uint </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qpicktriangleevent.html#vertex1Index">vertex1Index</a></b></span>() const</td></tr> </table></div> <!-- @@@vertex1Index --> <!-- $$$vertex2Index-prop$$$vertex2Index --> <h3 class="fn" id="vertex2Index-prop"><a name="vertex2Index-prop"></a><span class="name">vertex2Index</span> : const <span class="type">uint</span></h3> <p>Specifies the index of the second vertex in the triangle</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> uint </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qpicktriangleevent.html#vertex2Index">vertex2Index</a></b></span>() const</td></tr> </table></div> <!-- @@@vertex2Index --> <!-- $$$vertex3Index-prop$$$vertex3Index --> <h3 class="fn" id="vertex3Index-prop"><a name="vertex3Index-prop"></a><span class="name">vertex3Index</span> : const <span class="type">uint</span></h3> <p>Specifies the index of the third vertex in the triangle</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> uint </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qpicktriangleevent.html#vertex3Index">vertex3Index</a></b></span>() const</td></tr> </table></div> <!-- @@@vertex3Index --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QPickTriangleEvent[overload1]$$$QPickTriangleEvent --> <h3 class="fn" id="QPickTriangleEvent"><a name="QPickTriangleEvent"></a>QPickTriangleEvent::<span class="name">QPickTriangleEvent</span>()</h3> <p>Constructs a new <a href="qt3drender-qpickevent.html">QPickEvent</a>.</p> <!-- @@@QPickTriangleEvent --> <!-- $$$QPickTriangleEvent$$$QPickTriangleEventconstQPointF&constQVector3D&constQVector3D&floatuintuintuintuint --> <h3 class="fn" id="QPickTriangleEvent-1"><a name="QPickTriangleEvent-1"></a>QPickTriangleEvent::<span class="name">QPickTriangleEvent</span>(const <span class="type">QPointF</span> &<i>position</i>, const <span class="type">QVector3D</span> &<i>worldIntersection</i>, const <span class="type">QVector3D</span> &<i>localIntersection</i>, <span class="type">float</span> <i>distance</i>, <span class="type">uint</span> <i>triangleIndex</i>, <span class="type">uint</span> <i>vertex1Index</i>, <span class="type">uint</span> <i>vertex2Index</i>, <span class="type">uint</span> <i>vertex3Index</i>)</h3> <p><a href="qt3drender-qpicktriangleevent.html">QPickTriangleEvent::QPickTriangleEvent</a> Constructs a new <a href="qt3drender-qpickevent.html">QPickEvent</a> with the given parameters <i>position</i>, <i>worldIntersection</i>, <i>localIntersection</i>, <i>distance</i>, <i>triangleIndex</i>, <i>vertex1Index</i>, <i>vertex2Index</i> and <i>vertex3Index</i></p> <!-- @@@QPickTriangleEvent --> <!-- $$$QPickTriangleEvent$$$QPickTriangleEventconstQPointF&constQVector3D&constQVector3D&floatuintuintuintuintButtonsintintconstQVector3D& --> <h3 class="fn" id="QPickTriangleEvent-2"><a name="QPickTriangleEvent-2"></a>QPickTriangleEvent::<span class="name">QPickTriangleEvent</span>(const <span class="type">QPointF</span> &<i>position</i>, const <span class="type">QVector3D</span> &<i>worldIntersection</i>, const <span class="type">QVector3D</span> &<i>localIntersection</i>, <span class="type">float</span> <i>distance</i>, <span class="type">uint</span> <i>triangleIndex</i>, <span class="type">uint</span> <i>vertex1Index</i>, <span class="type">uint</span> <i>vertex2Index</i>, <span class="type">uint</span> <i>vertex3Index</i>, <span class="type"><a href="qt3drender-qpickevent.html#Buttons-enum">Buttons</a></span> <i>button</i>, <span class="type">int</span> <i>buttons</i>, <span class="type">int</span> <i>modifiers</i>, const <span class="type">QVector3D</span> &<i>uvw</i>)</h3> <p>Default constructs an instance of QPickTriangleEvent.</p><!-- @@@QPickTriangleEvent --> <!-- $$$triangleIndex --> <h3 class="fn" id="triangleIndex"><a name="triangleIndex"></a><span class="type">uint</span> QPickTriangleEvent::<span class="name">triangleIndex</span>() const</h3> <p><a href="qt3drender-qpicktriangleevent.html#triangleIndex-prop">QPickTriangleEvent::triangleIndex</a> Returns the index of the picked triangle</p> <p><b>Note:</b> Getter function for property <a href="qt3drender-qpicktriangleevent.html#triangleIndex-prop">triangleIndex</a>. </p><!-- @@@triangleIndex --> <!-- $$$uvw --> <h3 class="fn" id="uvw"><a name="uvw"></a><span class="type">QVector3D</span> QPickTriangleEvent::<span class="name">uvw</span>() const</h3> <p>Returns the 3D coordinates u,v, and w.</p> <p><b>Note:</b> Getter function for property <a href="qt3drender-qpicktriangleevent.html#uvw-prop">uvw</a>. </p><!-- @@@uvw --> <!-- $$$vertex1Index --> <h3 class="fn" id="vertex1Index"><a name="vertex1Index"></a><span class="type">uint</span> QPickTriangleEvent::<span class="name">vertex1Index</span>() const</h3> <p><a href="qt3drender-qpicktriangleevent.html#vertex1Index-prop">QPickTriangleEvent::vertex1Index</a> Returns the index of the first point of the picked triangle</p> <p><b>Note:</b> Getter function for property <a href="qt3drender-qpicktriangleevent.html#vertex1Index-prop">vertex1Index</a>. </p><!-- @@@vertex1Index --> <!-- $$$vertex2Index --> <h3 class="fn" id="vertex2Index"><a name="vertex2Index"></a><span class="type">uint</span> QPickTriangleEvent::<span class="name">vertex2Index</span>() const</h3> <p><a href="qt3drender-qpicktriangleevent.html#vertex2Index-prop">QPickTriangleEvent::vertex2Index</a> Returns the index of the second point of the picked triangle</p> <p><b>Note:</b> Getter function for property <a href="qt3drender-qpicktriangleevent.html#vertex2Index-prop">vertex2Index</a>. </p><!-- @@@vertex2Index --> <!-- $$$vertex3Index --> <h3 class="fn" id="vertex3Index"><a name="vertex3Index"></a><span class="type">uint</span> QPickTriangleEvent::<span class="name">vertex3Index</span>() const</h3> <p><a href="qt3drender-qpicktriangleevent.html#vertex3Index-prop">QPickTriangleEvent::vertex3Index</a> Returns index of third point of picked triangle</p> <p><b>Note:</b> Getter function for property <a href="qt3drender-qpicktriangleevent.html#vertex3Index-prop">vertex3Index</a>. </p><!-- @@@vertex3Index --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 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>