QCameraSelector Class

( Qt3DRender::QCameraSelector )

Class to allow for selection of camera to be used. 更多...

头: #include <QCameraSelector>
qmake: QT += 3drender
Since: Qt 5.5
实例化: CameraSelector
继承: Qt3DRender::QFrameGraphNode

特性

公共函数

QCameraSelector (Qt3DCore::QNode * parent = nullptr)
Qt3DCore::QEntity * camera () const

公共槽

void setCamera (Qt3DCore::QEntity * camera )

信号

void cameraChanged (Qt3DCore::QEntity * camera )

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

Class to allow for selection of camera to be used.

A Qt3DRender::QCameraSelector can be used to select the camera, which is used by the FrameGraph when drawing the entities.

特性文档编制

camera : Qt3DCore::QEntity *

Holds the currently selected camera.

访问函数:

Qt3DCore::QEntity * camera () const
void setCamera (Qt3DCore::QEntity * camera )

通知程序信号:

void cameraChanged (Qt3DCore::QEntity * camera )

成员函数文档编制

QCameraSelector:: QCameraSelector ( Qt3DCore::QNode * parent = nullptr)

The constructor creates an instance with the specified parent .