<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qcamera.cpp --> <title>QCamera Class | Qt 3D 5.12.2</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="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-cpp.html">C++ Classes</a></td><td >QCamera</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qt3d-index.html">Qt 5.12.2 Reference Documentation</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="#public-slots">Public Slots</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="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QCamera Class</h1> <span class="small-subtitle">(<a href="qt3drender-qcamera.html">Qt3DRender::QCamera</a>)<br/></span> <!-- $$$QCamera-brief --> <p>The <a href="qt3drender-qcamera.html">QCamera</a> class defines a view point through which the scene will be rendered. <a href="#details">More...</a></p> <!-- @@@QCamera --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <Qt3DRender/QCamera></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-camera.html">Camera</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qt3dcore-qentity.html">Qt3DCore::QEntity</a></td></tr></table></div><ul> <li><a href="qt3drender-qcamera-members.html">List of all members, including inherited members</a></li> <li><a href="qt3drender-qcamera-obsolete.html">Obsolete 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-qcamera.html#CameraTranslationOption-enum">CameraTranslationOption</a></b> { TranslateViewCenter, DontTranslateViewCenter }</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-qcamera.html#aspectRatio-prop">aspectRatio</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#bottom-prop">bottom</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#exposure-prop">exposure</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#farPlane-prop">farPlane</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#fieldOfView-prop">fieldOfView</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#left-prop">left</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#nearPlane-prop">nearPlane</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#position-prop">position</a></b> : QVector3D</li> </ul></td><td class="topAlign"><ul> <li class="fn"><b><a href="qt3drender-qcamera.html#projectionMatrix-prop">projectionMatrix</a></b> : QMatrix4x4</li> <li class="fn"><b><a href="qt3drender-qcamera.html#projectionType-prop">projectionType</a></b> : Qt3DRender::QCameraLens::ProjectionType</li> <li class="fn"><b><a href="qt3drender-qcamera.html#right-prop">right</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#top-prop">top</a></b> : float</li> <li class="fn"><b><a href="qt3drender-qcamera.html#upVector-prop">upVector</a></b> : QVector3D</li> <li class="fn"><b><a href="qt3drender-qcamera.html#viewCenter-prop">viewCenter</a></b> : QVector3D</li> <li class="fn"><b><a href="qt3drender-qcamera.html#viewVector-prop">viewVector</a></b> : const QVector3D</li> </ul> </td></tr> </table></div> <ul> <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-qcamera.html#QCamera">QCamera</a></b>(Qt3DCore::QNode *<i>parent</i> = nullptr)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.html#left-prop">left</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt3DRender::QCameraLens *</td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#lens">lens</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#nearPlane-prop">nearPlane</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#pan">pan</a></b>(float <i>angle</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#pan-1">pan</a></b>(float <i>angle</i>, const QVector3D &<i>axis</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#panAboutViewCenter">panAboutViewCenter</a></b>(float <i>angle</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#panAboutViewCenter-1">panAboutViewCenter</a></b>(float <i>angle</i>, const QVector3D &<i>axis</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#panRotation">panRotation</a></b>(float <i>angle</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVector3D </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#position-prop">position</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QMatrix4x4 </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#projectionMatrix-prop">projectionMatrix</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QCameraLens::ProjectionType </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.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-qcamera.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-qcamera.html#roll">roll</a></b>(float <i>angle</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#rollAboutViewCenter">rollAboutViewCenter</a></b>(float <i>angle</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#rollRotation">rollRotation</a></b>(float <i>angle</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#rotate">rotate</a></b>(const QQuaternion &<i>q</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#rotateAboutViewCenter">rotateAboutViewCenter</a></b>(const QQuaternion &<i>q</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#rotation">rotation</a></b>(float <i>angle</i>, const QVector3D &<i>axis</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#tilt">tilt</a></b>(float <i>angle</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#tiltAboutViewCenter">tiltAboutViewCenter</a></b>(float <i>angle</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QQuaternion </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#tiltRotation">tiltRotation</a></b>(float <i>angle</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#top-prop">top</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt3DCore::QTransform *</td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#transform">transform</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#translate">translate</a></b>(const QVector3D &<i>vLocal</i>, Qt3DRender::QCamera::CameraTranslationOption <i>option</i> = TranslateViewCenter)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#translateWorld">translateWorld</a></b>(const QVector3D &<i>vWorld</i>, Qt3DRender::QCamera::CameraTranslationOption <i>option</i> = TranslateViewCenter)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVector3D </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#upVector-prop">upVector</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVector3D </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#viewCenter-prop">viewCenter</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVector3D </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#viewVector-prop">viewVector</a></b>() const</td></tr> </table></div> <ul> <li class="fn">4 public functions inherited from <a href="qt3dcore-qentity.html#public-functions">Qt3DCore::QEntity</a></li> <li class="fn">13 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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.html#setPosition">setPosition</a></b>(const QVector3D &<i>position</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.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-qcamera.html#setProjectionType">setProjectionType</a></b>(QCameraLens::ProjectionType <i>type</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.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-qcamera.html#setTop">setTop</a></b>(float <i>top</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#setUpVector">setUpVector</a></b>(const QVector3D &<i>upVector</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#setViewCenter">setViewCenter</a></b>(const QVector3D &<i>viewCenter</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#viewAll">viewAll</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#viewEntity">viewEntity</a></b>(Qt3DCore::QEntity *<i>entity</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#viewSphere">viewSphere</a></b>(const QVector3D &<i>center</i>, float <i>radius</i>)</td></tr> </table></div> <ul> <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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.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-qcamera.html#position-prop">positionChanged</a></b>(const QVector3D &<i>position</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.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-qcamera.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-qcamera.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-qcamera.html#top-prop">topChanged</a></b>(float <i>top</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#upVector-prop">upVectorChanged</a></b>(const QVector3D &<i>upVector</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#viewCenter-prop">viewCenterChanged</a></b>(const QVector3D &<i>viewCenter</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qcamera.html#viewVector-prop">viewVectorChanged</a></b>(const QVector3D &<i>viewVector</i>)</td></tr> </table></div> <ul> <li class="fn">4 signals inherited from <a href="qt3dcore-qnode.html#signals">Qt3DCore::QNode</a></li> </ul> <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="qt3drender-qcamera.html#staticMetaObject-var">staticMetaObject</a></b></td></tr> </table></div> <h3>Additional Inherited Members</h3> <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> <!-- $$$QCamera-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qt3drender-qcamera.html">QCamera</a> class defines a view point through which the scene will be rendered.</p> </div> <!-- @@@QCamera --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$CameraTranslationOption$$$TranslateViewCenter$$$DontTranslateViewCenter --> <h3 class="fn" id="CameraTranslationOption-enum"><a name="CameraTranslationOption-enum"></a>enum QCamera::<span class="name">CameraTranslationOption</span></h3> <p>This enum specifies how camera view center is translated</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::QCamera::TranslateViewCenter</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Translate the view center causing the view direction to remain the same</td></tr> <tr><td class="topAlign"><code>Qt3DRender::QCamera::DontTranslateViewCenter</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Don't translate the view center causing the view direction to change</td></tr> </table></div> <!-- @@@CameraTranslationOption --> </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.</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-qcamera.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 of the camera.</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-qcamera.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.</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-qcamera.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 camera far plane.</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-qcamera.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 in degrees.</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-qcamera.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 of the camera.</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-qcamera.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 camera near plane.</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-qcamera.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 --> <!-- $$$position-prop$$$position$$$setPositionconstQVector3D&$$$positionChangedconstQVector3D& --> <h3 class="fn" id="position-prop"><a name="position-prop"></a><span class="name">position</span> : <span class="type">QVector3D</span></h3> <p>Holds the camera's position in coordinates relative to the parent entity.</p> <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>position</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcamera.html#setPosition">setPosition</a></b></span>(const QVector3D &<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 QVector3D &<i>position</i>)</td></tr> </table></div> <!-- @@@position --> <!-- $$$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.</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-qcamera.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$$$setProjectionTypeQCameraLens::ProjectionType$$$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">Qt3DRender::QCameraLens::ProjectionType</a></span></h3> <p>Holds the type of the camera projection.</p> <ul> <li><a href="qml-qt3d-render-cameralens.html">CameraLens</a>.OrthographicProjection</li> <li><a href="qml-qt3d-render-cameralens.html">CameraLens</a>.PerspectiveProjection</li> <li><a href="qml-qt3d-render-cameralens.html">CameraLens</a>.FrustumProjection</li> <li><a href="qml-qt3d-render-cameralens.html">CameraLens</a>.CustomProjection</li> </ul> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QCameraLens::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-qcamera.html#setProjectionType">setProjectionType</a></b></span>(QCameraLens::ProjectionType <i>type</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 of the camera.</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-qcamera.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 of the camera.</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-qcamera.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 --> <!-- $$$upVector-prop$$$upVector$$$setUpVectorconstQVector3D&$$$upVectorChangedconstQVector3D& --> <h3 class="fn" id="upVector-prop"><a name="upVector-prop"></a><span class="name">upVector</span> : <span class="type">QVector3D</span></h3> <p>Holds the camera's up vector in coordinates relative to the parent entity.</p> <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>upVector</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcamera.html#setUpVector">setUpVector</a></b></span>(const QVector3D &<i>upVector</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>upVectorChanged</b></span>(const QVector3D &<i>upVector</i>)</td></tr> </table></div> <!-- @@@upVector --> <!-- $$$viewCenter-prop$$$viewCenter$$$setViewCenterconstQVector3D&$$$viewCenterChangedconstQVector3D& --> <h3 class="fn" id="viewCenter-prop"><a name="viewCenter-prop"></a><span class="name">viewCenter</span> : <span class="type">QVector3D</span></h3> <p>Holds the camera's view center in coordinates relative to the parent entity.</p> <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>viewCenter</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qcamera.html#setViewCenter">setViewCenter</a></b></span>(const QVector3D &<i>viewCenter</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>viewCenterChanged</b></span>(const QVector3D &<i>viewCenter</i>)</td></tr> </table></div> <!-- @@@viewCenter --> <!-- $$$viewVector-prop$$$viewVector$$$viewVectorChangedconstQVector3D& --> <h3 class="fn" id="viewVector-prop"><a name="viewVector-prop"></a><span class="name">viewVector</span> : const <span class="type">QVector3D</span></h3> <p>Holds the camera's view vector in coordinates relative to the parent entity.</p> <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>viewVector</b></span>() const</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>viewVectorChanged</b></span>(const QVector3D &<i>viewVector</i>)</td></tr> </table></div> <!-- @@@viewVector --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QCamera[overload1]$$$QCameraQt3DCore::QNode* --> <h3 class="fn" id="QCamera"><a name="QCamera"></a>QCamera::<span class="name">QCamera</span>(<span class="type"><a href="qt3dcore-qnode.html">Qt3DCore::QNode</a></span> *<i>parent</i> = nullptr)</h3> <p>Creates a new <a href="qt3drender-qcamera.html">QCamera</a> instance with the specified <i>parent</i>.</p> <!-- @@@QCamera --> <!-- $$$lens[overload1]$$$lens --> <h3 class="fn" id="lens"><a name="lens"></a><span class="type"><a href="qt3drender-qcameralens.html">Qt3DRender::QCameraLens</a></span> *QCamera::<span class="name">lens</span>() const</h3> <p>Returns the current lens.</p> <!-- @@@lens --> <!-- $$$pan[overload1]$$$panfloat --> <h3 class="fn" id="pan"><a name="pan"></a><span class="type">void</span> QCamera::<span class="name">pan</span>(<span class="type">float</span> <i>angle</i>)</h3> <p>Adjusts the pan angle of the camera by <i>angle</i> in degrees.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@pan --> <!-- $$$pan$$$panfloatconstQVector3D& --> <h3 class="fn" id="pan-1"><a name="pan-1"></a><span class="type">void</span> QCamera::<span class="name">pan</span>(<span class="type">float</span> <i>angle</i>, const <span class="type">QVector3D</span> &<i>axis</i>)</h3> <p>Adjusts the pan angle of the camera by <i>angle</i> in degrees on a chosen <i>axis</i>.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@pan --> <!-- $$$panAboutViewCenter[overload1]$$$panAboutViewCenterfloat --> <h3 class="fn" id="panAboutViewCenter"><a name="panAboutViewCenter"></a><span class="type">void</span> QCamera::<span class="name">panAboutViewCenter</span>(<span class="type">float</span> <i>angle</i>)</h3> <p>Adjusts the camera pan about view center by <i>angle</i> in degrees.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@panAboutViewCenter --> <!-- $$$panAboutViewCenter$$$panAboutViewCenterfloatconstQVector3D& --> <h3 class="fn" id="panAboutViewCenter-1"><a name="panAboutViewCenter-1"></a><span class="type">void</span> QCamera::<span class="name">panAboutViewCenter</span>(<span class="type">float</span> <i>angle</i>, const <span class="type">QVector3D</span> &<i>axis</i>)</h3> <p>Adjusts the camera pan about view center by <i>angle</i> in degrees on <i>axis</i>.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@panAboutViewCenter --> <!-- $$$panRotation[overload1]$$$panRotationfloat --> <h3 class="fn" id="panRotation"><a name="panRotation"></a><span class="type">QQuaternion</span> QCamera::<span class="name">panRotation</span>(<span class="type">float</span> <i>angle</i>) const</h3> <p>Returns the calculated pan rotation in relation to the <i>angle</i> in degrees taken in to adjust the camera's pan or left/right rotation on the Y axis.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@panRotation --> <!-- $$$roll[overload1]$$$rollfloat --> <h3 class="fn" id="roll"><a name="roll"></a><span class="type">void</span> QCamera::<span class="name">roll</span>(<span class="type">float</span> <i>angle</i>)</h3> <p>Adjusts the camera roll by <i>angle</i> in degrees.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@roll --> <!-- $$$rollAboutViewCenter[overload1]$$$rollAboutViewCenterfloat --> <h3 class="fn" id="rollAboutViewCenter"><a name="rollAboutViewCenter"></a><span class="type">void</span> QCamera::<span class="name">rollAboutViewCenter</span>(<span class="type">float</span> <i>angle</i>)</h3> <p>Adjusts the camera roll about view center by <i>angle</i> in degrees.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@rollAboutViewCenter --> <!-- $$$rollRotation[overload1]$$$rollRotationfloat --> <h3 class="fn" id="rollRotation"><a name="rollRotation"></a><span class="type">QQuaternion</span> QCamera::<span class="name">rollRotation</span>(<span class="type">float</span> <i>angle</i>) const</h3> <p>Returns the calculated roll rotation in relation to the <i>angle</i> in degrees taken in to adjust the camera's roll or lean left/right rotation on the Z axis.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@rollRotation --> <!-- $$$rotate[overload1]$$$rotateconstQQuaternion& --> <h3 class="fn" id="rotate"><a name="rotate"></a><span class="type">void</span> QCamera::<span class="name">rotate</span>(const <span class="type">QQuaternion</span> &<i>q</i>)</h3> <p>Rotates the camera with the use of a Quaternion in <i>q</i>.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@rotate --> <!-- $$$rotateAboutViewCenter[overload1]$$$rotateAboutViewCenterconstQQuaternion& --> <h3 class="fn" id="rotateAboutViewCenter"><a name="rotateAboutViewCenter"></a><span class="type">void</span> QCamera::<span class="name">rotateAboutViewCenter</span>(const <span class="type">QQuaternion</span> &<i>q</i>)</h3> <p>Rotates the camera about the view center with the use of a Quaternion in <i>q</i>.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@rotateAboutViewCenter --> <!-- $$$rotation[overload1]$$$rotationfloatconstQVector3D& --> <h3 class="fn" id="rotation"><a name="rotation"></a><span class="type">QQuaternion</span> QCamera::<span class="name">rotation</span>(<span class="type">float</span> <i>angle</i>, const <span class="type">QVector3D</span> &<i>axis</i>) const</h3> <p>Returns the calculated rotation in relation to the <i>angle</i> in degrees and chosen <i>axis</i> taken in.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@rotation --> <!-- $$$setAspectRatio --> <h3 class="fn" id="setAspectRatio"><a name="setAspectRatio"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">setAspectRatio</span>(<span class="type">float</span> <i>aspectRatio</i>)</h3> <p>Sets the camera's aspect ratio to <i>aspectRatio</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#aspectRatio-prop">aspectRatio</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setBottom</span>(<span class="type">float</span> <i>bottom</i>)</h3> <p>Sets the bottom of the camera to <i>bottom</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#bottom-prop">bottom</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setExposure</span>(<span class="type">float</span> <i>exposure</i>)</h3> <p>Sets the camera's exposure to <i>exposure</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#exposure-prop">exposure</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setFarPlane</span>(<span class="type">float</span> <i>farPlane</i>)</h3> <p>Sets the camera's far plane to <i>farPlane</i></p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#farPlane-prop">farPlane</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setFieldOfView</span>(<span class="type">float</span> <i>fieldOfView</i>)</h3> <p>Sets the camera's field of view to <i>fieldOfView</i> in degrees.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#fieldOfView-prop">fieldOfView</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.html#fieldOfView-prop">fieldOfView</a>().</p> <!-- @@@setFieldOfView --> <!-- $$$setLeft --> <h3 class="fn" id="setLeft"><a name="setLeft"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">setLeft</span>(<span class="type">float</span> <i>left</i>)</h3> <p>Sets the left of the camera to <i>left</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#left-prop">left</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setNearPlane</span>(<span class="type">float</span> <i>nearPlane</i>)</h3> <p>Sets the camera's near plane to <i>nearPlane</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#nearPlane-prop">nearPlane</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.html#nearPlane-prop">nearPlane</a>().</p> <!-- @@@setNearPlane --> <!-- $$$setPosition --> <h3 class="fn" id="setPosition"><a name="setPosition"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">setPosition</span>(const <span class="type">QVector3D</span> &<i>position</i>)</h3> <p>Sets the camera's position in 3D space to <i>position</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#position-prop">position</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.html#position-prop">position</a>().</p> <!-- @@@setPosition --> <!-- $$$setProjectionMatrix --> <h3 class="fn" id="setProjectionMatrix"><a name="setProjectionMatrix"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">setProjectionMatrix</span>(const <span class="type">QMatrix4x4</span> &<i>projectionMatrix</i>)</h3> <p>Sets the camera's projection matrix to <i>projectionMatrix</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#projectionMatrix-prop">projectionMatrix</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setProjectionType</span>(<span class="type"><a href="qt3drender-qcameralens.html#ProjectionType-enum">QCameraLens::ProjectionType</a></span> <i>type</i>)</h3> <p>Sets the camera's projection type to <i>type</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#projectionType-prop">projectionType</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setRight</span>(<span class="type">float</span> <i>right</i>)</h3> <p>Sets the right of the camera to <i>right</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#right-prop">right</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.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> QCamera::<span class="name">setTop</span>(<span class="type">float</span> <i>top</i>)</h3> <p>Sets the top of the camera to <i>top</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#top-prop">top</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.html#top-prop">top</a>().</p> <!-- @@@setTop --> <!-- $$$setUpVector --> <h3 class="fn" id="setUpVector"><a name="setUpVector"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">setUpVector</span>(const <span class="type">QVector3D</span> &<i>upVector</i>)</h3> <p>Sets the camera's up vector to <i>upVector</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#upVector-prop">upVector</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.html#upVector-prop">upVector</a>().</p> <!-- @@@setUpVector --> <!-- $$$setViewCenter --> <h3 class="fn" id="setViewCenter"><a name="setViewCenter"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">setViewCenter</span>(const <span class="type">QVector3D</span> &<i>viewCenter</i>)</h3> <p>Sets the camera's view center to <i>viewCenter</i>.</p> <p><b>Note:</b> Setter function for property <a href="qt3drender-qcamera.html#viewCenter-prop">viewCenter</a>. </p><p><b>See also </b><a href="qt3drender-qcamera.html#viewCenter-prop">viewCenter</a>().</p> <!-- @@@setViewCenter --> <!-- $$$tilt[overload1]$$$tiltfloat --> <h3 class="fn" id="tilt"><a name="tilt"></a><span class="type">void</span> QCamera::<span class="name">tilt</span>(<span class="type">float</span> <i>angle</i>)</h3> <p>Adjusts the tilt angle of the camera by <i>angle</i> in degrees.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@tilt --> <!-- $$$tiltAboutViewCenter[overload1]$$$tiltAboutViewCenterfloat --> <h3 class="fn" id="tiltAboutViewCenter"><a name="tiltAboutViewCenter"></a><span class="type">void</span> QCamera::<span class="name">tiltAboutViewCenter</span>(<span class="type">float</span> <i>angle</i>)</h3> <p>Adjusts the camera tilt about view center by <i>angle</i> in degrees.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@tiltAboutViewCenter --> <!-- $$$tiltRotation[overload1]$$$tiltRotationfloat --> <h3 class="fn" id="tiltRotation"><a name="tiltRotation"></a><span class="type">QQuaternion</span> QCamera::<span class="name">tiltRotation</span>(<span class="type">float</span> <i>angle</i>) const</h3> <p>Returns the calculated tilt rotation in relation to the <i>angle</i> in degrees taken in to adjust the camera's tilt or up/down rotation on the X axis.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@tiltRotation --> <!-- $$$transform[overload1]$$$transform --> <h3 class="fn" id="transform"><a name="transform"></a><span class="type"><a href="qt3dcore-qtransform.html">Qt3DCore::QTransform</a></span> *QCamera::<span class="name">transform</span>() const</h3> <p>Returns the camera's position via transform.</p> <!-- @@@transform --> <!-- $$$translate[overload1]$$$translateconstQVector3D&Qt3DRender::QCamera::CameraTranslationOption --> <h3 class="fn" id="translate"><a name="translate"></a><span class="type">void</span> QCamera::<span class="name">translate</span>(const <span class="type">QVector3D</span> &<i>vLocal</i>, <span class="type"><a href="qt3drender-qcamera.html#CameraTranslationOption-enum">Qt3DRender::QCamera::CameraTranslationOption</a></span> <i>option</i> = TranslateViewCenter)</h3> <p>Translates the camera's position and its view vector by <i>vLocal</i> in local coordinates. The <i>option</i> allows for toggling whether the view center should be translated.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@translate --> <!-- $$$translateWorld[overload1]$$$translateWorldconstQVector3D&Qt3DRender::QCamera::CameraTranslationOption --> <h3 class="fn" id="translateWorld"><a name="translateWorld"></a><span class="type">void</span> QCamera::<span class="name">translateWorld</span>(const <span class="type">QVector3D</span> &<i>vWorld</i>, <span class="type"><a href="qt3drender-qcamera.html#CameraTranslationOption-enum">Qt3DRender::QCamera::CameraTranslationOption</a></span> <i>option</i> = TranslateViewCenter)</h3> <p>Translates the camera's position and its view vector by <i>vWorld</i> in world coordinates. The <i>option</i> allows for toggling whether the view center should be translated.</p> <p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p> <!-- @@@translateWorld --> <!-- $$$viewAll[overload1]$$$viewAll --> <h3 class="fn" id="viewAll"><a name="viewAll"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">viewAll</span>()</h3> <p>Rotates and moves the camera so that it's <a href="qt3drender-qcamera.html#viewCenter-prop">viewCenter</a> is the center of the scene's bounding volume and the entire scene fits in the view port.</p> <p><b>Note: </b>Only works if the lens is in perspective projection mode.</p><p><b>See also </b><a href="qml-qt3d-render-camera.html#projectionType-prop">Qt3D.Render::Camera::projectionType</a>.</p> <!-- @@@viewAll --> <!-- $$$viewEntity[overload1]$$$viewEntityQt3DCore::QEntity* --> <h3 class="fn" id="viewEntity"><a name="viewEntity"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">viewEntity</span>(<span class="type"><a href="qt3dcore-qentity.html">Qt3DCore::QEntity</a></span> *<i>entity</i>)</h3> <p>Rotates and moves the camera so that it's <a href="qt3drender-qcamera.html#viewCenter-prop">viewCenter</a> is the center of the <i>entity</i>'s bounding volume and the entire entity fits in the view port.</p> <p><b>Note: </b>Only works if the lens is in perspective projection mode.</p><p><b>See also </b><a href="qml-qt3d-render-camera.html#projectionType-prop">Camera.projectionType</a>.</p> <!-- @@@viewEntity --> <!-- $$$viewSphere[overload1]$$$viewSphereconstQVector3D&float --> <h3 class="fn" id="viewSphere"><a name="viewSphere"></a><code>[slot] </code><span class="type">void</span> QCamera::<span class="name">viewSphere</span>(const <span class="type">QVector3D</span> &<i>center</i>, <span class="type">float</span> <i>radius</i>)</h3> <p>Rotates and moves the camera so that it's <a href="qt3drender-qcamera.html#viewCenter-prop">viewCenter</a> is <i>center</i> and a sphere of <i>radius</i> fits in the view port.</p> <p><b>Note: </b>Only works if the lens is in perspective projection mode.</p><p><b>See also </b><a href="qml-qt3d-render-camera.html#projectionType-prop">Qt3D.Render::Camera::projectionType</a>.</p> <!-- @@@viewSphere --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</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>