<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qcameralens.cpp --> <title>QCameraLens 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 >QCameraLens</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="#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="#public-slots">Public Slots</a></li> <li class="level1"><a href="#signals">Signals</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">QCameraLens Class</h1> <span class="small-subtitle">(<a href="qt3drender-qcameralens.html">Qt3DRender::QCameraLens</a>)<br/></span> <!-- $$$QCameraLens-brief --> <p><a href="qt3drender-qcameralens.html">Qt3DRender::QCameraLens</a> specifies the projection matrix that will be used to define a Camera for a 3D scene. <a href="#details">More...</a></p> <!-- @@@QCameraLens --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <Qt3DRender/QCameraLens></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.5</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-render-cameralens.html">CameraLens</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qt3dcore-qcomponent.html">Qt3DCore::QComponent</a></td></tr></table></div><ul> <li><a href="qt3drender-qcameralens-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="qt3drender-qcameralens.html#ProjectionType-enum">ProjectionType</a></b> { OrthographicProjection, PerspectiveProjection, FrustumProjection, CustomProjection }</td></tr> </table></div> <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-qcameralens.html#aspectRatio-prop">aspectRatio</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#bottom-prop">bottom</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#exposure-prop">exposure</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#farPlane-prop">farPlane</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#fieldOfView-prop">fieldOfView</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#left-prop">left</a></b> : float</li> </ul></td><td class="topAlign"><ul> <li class="fn"><b><a href="qt3drender-qcameralens.html#nearPlane-prop">nearPlane</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#projectionMatrix-prop">projectionMatrix</a></b> : QMatrix4x4</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#projectionType-prop">projectionType</a></b> : ProjectionType</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#right-prop">right</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcameralens.html#top-prop">top</a></b> : float</li> </ul> </td></tr> </table></div> <ul> <li class="fn">1 property inherited from <a href="qt3dcore-qcomponent.html#properties">Qt3DCore::QComponent</a></li> <li class="fn">3 properties inherited from <a href="qt3dcore-qnode.html#properties">Qt3DCore::QNode</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-qcameralens.html#QCameraLens">QCameraLens</a></b>(QNode *<i>parent</i> = nullptr)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#aspectRatio-prop">aspectRatio</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#bottom-prop">bottom</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#exposure-prop">exposure</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#farPlane-prop">farPlane</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#fieldOfView-prop">fieldOfView</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#left-prop">left</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#nearPlane-prop">nearPlane</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#projectionMatrix-prop">projectionMatrix</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ProjectionType </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#projectionType-prop">projectionType</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#right-prop">right</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setFrustumProjection">setFrustumProjection</a></b>(float <i>left</i>, float <i>right</i>, float <i>bottom</i>, float <i>top</i>, float <i>nearPlane</i>, float <i>farPlane</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setOrthographicProjection">setOrthographicProjection</a></b>(float <i>left</i>, float <i>right</i>, float <i>bottom</i>, float <i>top</i>, float <i>nearPlane</i>, float <i>farPlane</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setPerspectiveProjection">setPerspectiveProjection</a></b>(float <i>fieldOfView</i>, float <i>aspectRatio</i>, float <i>nearPlane</i>, float <i>farPlane</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#top-prop">top</a></b>() const</td></tr> </table></div> <ul> <li class="fn">2 public functions inherited from <a href="qt3dcore-qcomponent.html#public-functions">Qt3DCore::QComponent</a></li> <li class="fn">11 public functions inherited from <a href="qt3dcore-qnode.html#public-functions">Qt3DCore::QNode</a></li> </ul> <a name="public-slots"></a> <h2 id="public-slots">Public Slots</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setAspectRatio">setAspectRatio</a></b>(float <i>aspectRatio</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setBottom">setBottom</a></b>(float <i>bottom</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setExposure">setExposure</a></b>(float <i>exposure</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setFarPlane">setFarPlane</a></b>(float <i>farPlane</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setFieldOfView">setFieldOfView</a></b>(float <i>fieldOfView</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setLeft">setLeft</a></b>(float <i>left</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setNearPlane">setNearPlane</a></b>(float <i>nearPlane</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setProjectionMatrix">setProjectionMatrix</a></b>(const QMatrix4x4 &<i>projectionMatrix</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setProjectionType">setProjectionType</a></b>(ProjectionType <i>projectionType</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setRight">setRight</a></b>(float <i>right</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#setTop">setTop</a></b>(float <i>top</i>)</td></tr> </table></div> <ul> <li class="fn">1 public slot inherited from <a href="qt3dcore-qcomponent.html#public-slots">Qt3DCore::QComponent</a></li> <li class="fn">3 public slots inherited from <a href="qt3dcore-qnode.html#public-slots">Qt3DCore::QNode</a></li> </ul> <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="qt3drender-qcameralens.html#aspectRatio-prop">aspectRatioChanged</a></b>(float <i>aspectRatio</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#bottom-prop">bottomChanged</a></b>(float <i>bottom</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#exposure-prop">exposureChanged</a></b>(float <i>exposure</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#farPlane-prop">farPlaneChanged</a></b>(float <i>farPlane</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#fieldOfView-prop">fieldOfViewChanged</a></b>(float <i>fieldOfView</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#left-prop">leftChanged</a></b>(float <i>left</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#nearPlane-prop">nearPlaneChanged</a></b>(float <i>nearPlane</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#projectionMatrix-prop">projectionMatrixChanged</a></b>(const QMatrix4x4 &<i>projectionMatrix</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#projectionType-prop">projectionTypeChanged</a></b>(QCameraLens::ProjectionType <i>projectionType</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#right-prop">rightChanged</a></b>(float <i>right</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcameralens.html#top-prop">topChanged</a></b>(float <i>top</i>)</td></tr> </table></div> <ul> <li class="fn">3 signals inherited from <a href="qt3dcore-qcomponent.html#signals">Qt3DCore::QComponent</a></li> <li class="fn">4 signals inherited from <a href="qt3dcore-qnode.html#signals">Qt3DCore::QNode</a></li> </ul> <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="qt3drender-qcameralens.html#QCameraLens-1">QCameraLens</a></b>(QCameraLensPrivate &<i>dd</i>, QNode *<i>parent</i> = nullptr)</td></tr> </table></div> <ul> <li class="fn">2 protected functions inherited from <a href="qt3dcore-qnode.html#protected-functions">Qt3DCore::QNode</a></li> </ul> <a name="details"></a> <!-- $$$QCameraLens-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p><a href="qt3drender-qcameralens.html">Qt3DRender::QCameraLens</a> specifies the projection matrix that will be used to define a Camera for a 3D scene.</p> </div> <!-- @@@QCameraLens --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$ProjectionType$$$OrthographicProjection$$$PerspectiveProjection$$$FrustumProjection$$$CustomProjection --> <h3 class="fn" id="ProjectionType-enum"><a name="ProjectionType-enum"></a>enum QCameraLens::<span class="name">ProjectionType</span></h3> <p>Specifies which parameters of <a href="qt3drender-qcameralens.html">Qt3DRender::QCameraLens</a> are used to compute the projection matrix.</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>Qt3DRender::QCameraLens::OrthographicProjection</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Orthogonal projection</td></tr> <tr><td class="topAlign"><code>Qt3DRender::QCameraLens::PerspectiveProjection</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Perspective projection</td></tr> <tr><td class="topAlign"><code>Qt3DRender::QCameraLens::FrustumProjection</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Frustum projection</td></tr> <tr><td class="topAlign"><code>Qt3DRender::QCameraLens::CustomProjection</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Custom user-defined projection</td></tr> </table></div> <!-- @@@ProjectionType --> </div> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$aspectRatio-prop$$$aspectRatio$$$setAspectRatiofloat$$$aspectRatioChangedfloat --> <h3 class="fn" id="aspectRatio-prop"><a name="aspectRatio-prop"></a><span class="name">aspectRatio</span> : <span class="type">float</span></h3> <p>Holds the current aspect ratio of the camera lens.</p> <p><b>Note: </b>: The return value may be undefined if the projection type is not <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>aspectRatio</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setAspectRatio">setAspectRatio</a></b></span>(float <i>aspectRatio</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>aspectRatioChanged</b></span>(float <i>aspectRatio</i>)</td></tr> </table></div> <!-- @@@aspectRatio --> <!-- $$$bottom-prop$$$bottom$$$setBottomfloat$$$bottomChangedfloat --> <h3 class="fn" id="bottom-prop"><a name="bottom-prop"></a><span class="name">bottom</span> : <span class="type">float</span></h3> <p>Holds the current bottom plane of the camera lens.</p> <p><b>Note: </b>The return value may be undefined if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>bottom</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setBottom">setBottom</a></b></span>(float <i>bottom</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>bottomChanged</b></span>(float <i>bottom</i>)</td></tr> </table></div> <!-- @@@bottom --> <!-- $$$exposure-prop$$$exposure$$$setExposurefloat$$$exposureChangedfloat --> <h3 class="fn" id="exposure-prop"><a name="exposure-prop"></a><span class="name">exposure</span> : <span class="type">float</span></h3> <p>Holds the current exposure of the camera lens.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>exposure</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setExposure">setExposure</a></b></span>(float <i>exposure</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>exposureChanged</b></span>(float <i>exposure</i>)</td></tr> </table></div> <!-- @@@exposure --> <!-- $$$farPlane-prop$$$farPlane$$$setFarPlanefloat$$$farPlaneChangedfloat --> <h3 class="fn" id="farPlane-prop"><a name="farPlane-prop"></a><span class="name">farPlane</span> : <span class="type">float</span></h3> <p>Holds the current near plane of the camera lens.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>farPlane</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setFarPlane">setFarPlane</a></b></span>(float <i>farPlane</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>farPlaneChanged</b></span>(float <i>farPlane</i>)</td></tr> </table></div> <!-- @@@farPlane --> <!-- $$$fieldOfView-prop$$$fieldOfView$$$setFieldOfViewfloat$$$fieldOfViewChangedfloat --> <h3 class="fn" id="fieldOfView-prop"><a name="fieldOfView-prop"></a><span class="name">fieldOfView</span> : <span class="type">float</span></h3> <p>Holds the current field of view of the camera lens.</p> <p><b>Note: </b>: The return value may be undefined if the projection type is not <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>fieldOfView</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setFieldOfView">setFieldOfView</a></b></span>(float <i>fieldOfView</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>fieldOfViewChanged</b></span>(float <i>fieldOfView</i>)</td></tr> </table></div> <!-- @@@fieldOfView --> <!-- $$$left-prop$$$left$$$setLeftfloat$$$leftChangedfloat --> <h3 class="fn" id="left-prop"><a name="left-prop"></a><span class="name">left</span> : <span class="type">float</span></h3> <p>Holds the current left plane of the camera lens.</p> <p><b>Note: </b>The return value may be undefined if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>left</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setLeft">setLeft</a></b></span>(float <i>left</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>leftChanged</b></span>(float <i>left</i>)</td></tr> </table></div> <!-- @@@left --> <!-- $$$nearPlane-prop$$$nearPlane$$$setNearPlanefloat$$$nearPlaneChangedfloat --> <h3 class="fn" id="nearPlane-prop"><a name="nearPlane-prop"></a><span class="name">nearPlane</span> : <span class="type">float</span></h3> <p>Holds the current near plane of the camera lens.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>nearPlane</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setNearPlane">setNearPlane</a></b></span>(float <i>nearPlane</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>nearPlaneChanged</b></span>(float <i>nearPlane</i>)</td></tr> </table></div> <!-- @@@nearPlane --> <!-- $$$projectionMatrix-prop$$$projectionMatrix$$$setProjectionMatrixconstQMatrix4x4&$$$projectionMatrixChangedconstQMatrix4x4& --> <h3 class="fn" id="projectionMatrix-prop"><a name="projectionMatrix-prop"></a><span class="name">projectionMatrix</span> : <span class="type">QMatrix4x4</span></h3> <p>Holds the current projection matrix of the camera lens.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><span class="name"><b>projectionMatrix</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setProjectionMatrix">setProjectionMatrix</a></b></span>(const QMatrix4x4 &<i>projectionMatrix</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>projectionMatrixChanged</b></span>(const QMatrix4x4 &<i>projectionMatrix</i>)</td></tr> </table></div> <!-- @@@projectionMatrix --> <!-- $$$projectionType-prop$$$projectionType$$$setProjectionTypeProjectionType$$$projectionTypeChangedQCameraLens::ProjectionType --> <h3 class="fn" id="projectionType-prop"><a name="projectionType-prop"></a><span class="name">projectionType</span> : <span class="type"><a href="qt3drender-qcameralens.html#ProjectionType-enum">ProjectionType</a></span></h3> <p>Holds the type of the camera projection.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> ProjectionType </td><td class="memItemRight bottomAlign"><span class="name"><b>projectionType</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setProjectionType">setProjectionType</a></b></span>(ProjectionType <i>projectionType</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>projectionTypeChanged</b></span>(QCameraLens::ProjectionType <i>projectionType</i>)</td></tr> </table></div> <p><b>See also </b><a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::ProjectionType</a>.</p> <!-- @@@projectionType --> <!-- $$$right-prop$$$right$$$setRightfloat$$$rightChangedfloat --> <h3 class="fn" id="right-prop"><a name="right-prop"></a><span class="name">right</span> : <span class="type">float</span></h3> <p>Holds the current right plane of the camera lens.</p> <p><b>Note: </b>The return value may be undefined if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>right</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setRight">setRight</a></b></span>(float <i>right</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>rightChanged</b></span>(float <i>right</i>)</td></tr> </table></div> <!-- @@@right --> <!-- $$$top-prop$$$top$$$setTopfloat$$$topChangedfloat --> <h3 class="fn" id="top-prop"><a name="top-prop"></a><span class="name">top</span> : <span class="type">float</span></h3> <p>Holds the current top plane of the camera lens.</p> <p><b>Note: </b>The return value may be undefined if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>top</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcameralens.html#setTop">setTop</a></b></span>(float <i>top</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>topChanged</b></span>(float <i>top</i>)</td></tr> </table></div> <!-- @@@top --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QCameraLens[overload1]$$$QCameraLensQNode* --> <h3 class="fn" id="QCameraLens"><a name="QCameraLens"></a>QCameraLens::<span class="name">QCameraLens</span>(<span class="type"><a href="qt3dcore-qnode.html#QNode">QNode</a></span> *<i>parent</i> = nullptr)</h3> <p>Constructs a <a href="qt3drender-qcameralens.html">QCameraLens</a> with given <i>parent</i></p> <!-- @@@QCameraLens --> <!-- $$$QCameraLens$$$QCameraLensQCameraLensPrivate&QNode* --> <h3 class="fn" id="QCameraLens-1"><a name="QCameraLens-1"></a><code>[protected] </code>QCameraLens::<span class="name">QCameraLens</span>(<span class="type">QCameraLensPrivate</span> &<i>dd</i>, <span class="type"><a href="qt3dcore-qnode.html#QNode">QNode</a></span> *<i>parent</i> = nullptr)</h3> <p>Copy constructor.</p><!-- @@@QCameraLens --> <!-- $$$setAspectRatio --> <h3 class="fn" id="setAspectRatio"><a name="setAspectRatio"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setAspectRatio</span>(<span class="type">float</span> <i>aspectRatio</i>)</h3> <p>Sets the projection's aspect ratio to <i>aspectRatio</i>. This triggers a projection matrix update.</p> <p><b>Note: </b>this has no effect if the projection type is not <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#aspectRatio-prop">aspectRatio</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#aspectRatio-prop">aspectRatio</a>().</p> <!-- @@@setAspectRatio --> <!-- $$$setBottom --> <h3 class="fn" id="setBottom"><a name="setBottom"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setBottom</span>(<span class="type">float</span> <i>bottom</i>)</h3> <p>Sets the projection's bottom window coordinate to <i>bottom</i>. This triggers a projection matrix update.</p> <p><b>Note: </b>this has no effect if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#bottom-prop">bottom</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#bottom-prop">bottom</a>().</p> <!-- @@@setBottom --> <!-- $$$setExposure --> <h3 class="fn" id="setExposure"><a name="setExposure"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setExposure</span>(<span class="type">float</span> <i>exposure</i>)</h3> <p>Sets the camera lens' <i>exposure</i></p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#exposure-prop">exposure</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#exposure-prop">exposure</a>().</p> <!-- @@@setExposure --> <!-- $$$setFarPlane --> <h3 class="fn" id="setFarPlane"><a name="setFarPlane"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setFarPlane</span>(<span class="type">float</span> <i>farPlane</i>)</h3> <p>Sets the projection's far plane to <i>farPlane</i>. This triggers a projection matrix update.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#farPlane-prop">farPlane</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#farPlane-prop">farPlane</a>().</p> <!-- @@@setFarPlane --> <!-- $$$setFieldOfView --> <h3 class="fn" id="setFieldOfView"><a name="setFieldOfView"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setFieldOfView</span>(<span class="type">float</span> <i>fieldOfView</i>)</h3> <p>Sets the projection's field of view to <i>fieldOfView</i> degrees. This triggers a projection matrix update.</p> <p><b>Note: </b>this has no effect if the projection type is not <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#fieldOfView-prop">fieldOfView</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#fieldOfView-prop">fieldOfView</a>().</p> <!-- @@@setFieldOfView --> <!-- $$$setFrustumProjection[overload1]$$$setFrustumProjectionfloatfloatfloatfloatfloatfloat --> <h3 class="fn" id="setFrustumProjection"><a name="setFrustumProjection"></a><span class="type">void</span> QCameraLens::<span class="name">setFrustumProjection</span>(<span class="type">float</span> <i>left</i>, <span class="type">float</span> <i>right</i>, <span class="type">float</span> <i>bottom</i>, <span class="type">float</span> <i>top</i>, <span class="type">float</span> <i>nearPlane</i>, <span class="type">float</span> <i>farPlane</i>)</h3> <p>Defines an orthographic projection based on <i>left</i>, <i>right</i>, <i>bottom</i>, <i>top</i>, <i>nearPlane</i>, <i>farPlane</i>.</p> <!-- @@@setFrustumProjection --> <!-- $$$setLeft --> <h3 class="fn" id="setLeft"><a name="setLeft"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setLeft</span>(<span class="type">float</span> <i>left</i>)</h3> <p>Sets the projection's lower left window coordinate to <i>left</i>. This triggers a projection matrix update.</p> <p><b>Note: </b>this has no effect if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#left-prop">left</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#left-prop">left</a>().</p> <!-- @@@setLeft --> <!-- $$$setNearPlane --> <h3 class="fn" id="setNearPlane"><a name="setNearPlane"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setNearPlane</span>(<span class="type">float</span> <i>nearPlane</i>)</h3> <p>Sets the projection's near plane to <i>nearPlane</i>. This triggers a projection matrix update.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#nearPlane-prop">nearPlane</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#nearPlane-prop">nearPlane</a>().</p> <!-- @@@setNearPlane --> <!-- $$$setOrthographicProjection[overload1]$$$setOrthographicProjectionfloatfloatfloatfloatfloatfloat --> <h3 class="fn" id="setOrthographicProjection"><a name="setOrthographicProjection"></a><span class="type">void</span> QCameraLens::<span class="name">setOrthographicProjection</span>(<span class="type">float</span> <i>left</i>, <span class="type">float</span> <i>right</i>, <span class="type">float</span> <i>bottom</i>, <span class="type">float</span> <i>top</i>, <span class="type">float</span> <i>nearPlane</i>, <span class="type">float</span> <i>farPlane</i>)</h3> <p>Defines an orthographic projection based on <i>left</i>, <i>right</i>, <i>bottom</i>, <i>top</i>, <i>nearPlane</i>, <i>farPlane</i>.</p> <!-- @@@setOrthographicProjection --> <!-- $$$setPerspectiveProjection[overload1]$$$setPerspectiveProjectionfloatfloatfloatfloat --> <h3 class="fn" id="setPerspectiveProjection"><a name="setPerspectiveProjection"></a><span class="type">void</span> QCameraLens::<span class="name">setPerspectiveProjection</span>(<span class="type">float</span> <i>fieldOfView</i>, <span class="type">float</span> <i>aspectRatio</i>, <span class="type">float</span> <i>nearPlane</i>, <span class="type">float</span> <i>farPlane</i>)</h3> <p>Defines a perspective projection based on <i>fieldOfView</i>, <i>aspectRatio</i>, <i>nearPlane</i>, <i>farPlane</i>.</p> <!-- @@@setPerspectiveProjection --> <!-- $$$setProjectionMatrix --> <h3 class="fn" id="setProjectionMatrix"><a name="setProjectionMatrix"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setProjectionMatrix</span>(const <span class="type">QMatrix4x4</span> &<i>projectionMatrix</i>)</h3> <p>Sets the project matrix to <i>projectionMatrix</i>.</p> <p><b>Note: </b>This will set the projection type to <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::CustomProjection</a> and thus ignore all other camera parameters that might have been specified.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#projectionMatrix-prop">projectionMatrix</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#projectionMatrix-prop">projectionMatrix</a>().</p> <!-- @@@setProjectionMatrix --> <!-- $$$setProjectionType --> <h3 class="fn" id="setProjectionType"><a name="setProjectionType"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setProjectionType</span>(<span class="type"><a href="qt3drender-qcameralens.html#ProjectionType-enum">ProjectionType</a></span> <i>projectionType</i>)</h3> <p>Sets the lens' projection type <i>projectionType</i>.</p> <p><b>Note: </b>Qt3DRender::QCameraLens::Frustum and <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a> are two different ways of specifying the same projection.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#projectionType-prop">projectionType</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#projectionType-prop">projectionType</a>().</p> <!-- @@@setProjectionType --> <!-- $$$setRight --> <h3 class="fn" id="setRight"><a name="setRight"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setRight</span>(<span class="type">float</span> <i>right</i>)</h3> <p>Sets the projection's upper right window coordinate to <i>right</i>. This triggers a projection matrix update.</p> <p><b>Note: </b>this has no effect if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#right-prop">right</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#right-prop">right</a>().</p> <!-- @@@setRight --> <!-- $$$setTop --> <h3 class="fn" id="setTop"><a name="setTop"></a><code>[slot] </code><span class="type">void</span> QCameraLens::<span class="name">setTop</span>(<span class="type">float</span> <i>top</i>)</h3> <p>Sets the projection's top window coordinate to <i>top</i>. This triggers a projection matrix update.</p> <p><b>Note: </b>this has no effect if the projection type is <a href="qt3drender-qcameralens.html#ProjectionType-enum">Qt3DRender::QCameraLens::PerspectiveProjection</a>.</p><p><b>Note:</b> Setter function for property <a href="qt3drender-qcameralens.html#top-prop">top</a>. </p><p><b>See also </b><a href="qt3drender-qcameralens.html#top-prop">top</a>().</p> <!-- @@@setTop --> </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>