Qt 5.7 | Qt 3D | Qt 3D Extras C++ Classes

Qt 5.7.1 Reference Documentation

# Qt 3D Extras C++ Classes

The Qt 3D Extras modules provides a set of prebuilt elements to help you get started with Qt 3D. More...

## Namespaces

Qt3DExtras | Contains classes from the Qt3DExtras module

## Classes

Qt3DExtras::QDiffuseMapMaterial | Default implementation of the phong lighting effect where the diffuse light component is read from a texture map
Qt3DExtras::QDiffuseSpecularMapMaterial | Default implementation of the phong lighting effect where the diffuse and specular light components are read from texture maps
Qt3DExtras::QFirstPersonCameraController | Allows controlling the scene camera from the first person perspective
Qt3DExtras::QForwardRenderer | Default FrameGraph implementation of a forward renderer
Qt3DExtras::QGoochMaterial | Material that implements the Gooch shading model, popular in CAD and CAM applications
Qt3DExtras::QNormalDiffuseMapAlphaMaterial | Specialization of QNormalDiffuseMapMaterial with alpha coverage and a depth test performed in the rendering pass
Qt3DExtras::QNormalDiffuseMapMaterial | Default implementation of the phong lighting and bump effect where the diffuse light component is read from a texture map and the normals of the mesh being rendered from a normal texture map
Qt3DExtras::QNormalDiffuseSpecularMapMaterial | Default implementation of the phong lighting and bump effect where the diffuse and specular light components are read from texture maps and the normals of the mesh being rendered from a normal texture map
Qt3DExtras::QOrbitCameraController | Allows controlling the scene camera along orbital path
Qt3DExtras::QPerVertexColorMaterial | Default implementation for rendering the color properties set for each vertex
Qt3DExtras::QPhongAlphaMaterial | Default implementation of the phong lighting effect with alpha
Qt3DExtras::QPhongMaterial | Default implementation of the phong lighting effect
Qt3DExtras::QConeGeometry | Allows creation of a cone in 3D space
Qt3DExtras::QConeMesh | A conical mesh
Qt3DExtras::QCuboidGeometry | Allows creation of a cuboid in 3D space
Qt3DExtras::QCuboidMesh | A cuboid mesh
Qt3DExtras::QCylinderGeometry | Allows creation of a cylinder in 3D space
Qt3DExtras::QCylinderMesh | A cylindrical mesh
Qt3DExtras::QPlaneGeometry | Allows creation of a plane in 3D space
Qt3DExtras::QPlaneMesh | A square planar mesh
Qt3DExtras::QSphereGeometry | Allows creation of a sphere in 3D space
Qt3DExtras::QSphereMesh | A spherical mesh
Qt3DExtras::QTorusGeometry | Allows creation of a torus in 3D space
Qt3DExtras::QTorusMesh | A toroidal mesh

## Detailed Description

This module is still in tech preview. This means it is unstable, likely to change and provided as a convenience only.

      #include <Qt3DExtras>

To link against the corresponding C++ library, add the following to your qmake project file:

      QT += 3dextras

Classes, types, and functions are declared under the Qt3DExtras namespace.

### Overview

#### Materials

- Qt3DExtras::QDiffuseMapMaterial
- Qt3DExtras::QDiffuseSpecularMapMaterial
- Qt3DExtras::QGoochMaterial
- Qt3DExtras::QNormalDiffuseMapMaterial
- Qt3DExtras::QNormalDiffuseMapAlphaMaterial
- Qt3DExtras::QNormalDiffuseSpecularMapMaterial
- Qt3DExtras::QPerVertexColorMaterial
- Qt3DExtras::QPhongMaterial
- Qt3DExtras::QPhongAlphaMaterial

#### Meshes and Geometries

- Qt3DExtras::QConeGeometry
- Qt3DExtras::QConeMesh
- Qt3DExtras::QCuboidGeometry
- Qt3DExtras::QCuboidMesh
- Qt3DExtras::QCylinderGeometry
- Qt3DExtras::QCylinderMesh
- Qt3DExtras::QPlaneGeometry
- Qt3DExtras::QPlaneMesh
- Qt3DExtras::QSphereGeometry
- Qt3DExtras::QSphereMesh
- Qt3DExtras::QTorusGeometry
- Qt3DExtras::QTorusMesh

#### Camera Controllers

- Qt3DExtras::QFirstPersonCameraController
- Qt3DExtras::QOrbitCameraController

#### Entities

- Qt3DExtras::QSkyboxEntity

#### FrameGraphs

- Qt3DExtras::QForwardRenderer

#### Window

- Qt3DExtras::Qt3DWindow

Note: The Quick3DExtras module also specifies a Qt3DExtras::Quick::Qt3DQuickWindow.

### Reference

- Qt 3D Extras C++ Classes
- Qt 3D Examples