QLevelOfDetailSwitch Class

(Qt3DRender::QLevelOfDetailSwitch)

Provides a way of enabling child entities based on distance or screen size. 更多...

头文件: #include <QLevelOfDetailSwitch>
qmake: QT += 3drender
开始支持版本: Qt 5.9
Instantiated By: LevelOfDetailSwitch
基类: Qt3DRender::QLevelOfDetail

公有函数

QLevelOfDetailSwitch(Qt3DCore::QNode *parent = nullptr)

受保护的函数

QLevelOfDetailSwitch(QLevelOfDetailPrivate &dd, Qt3DCore::QNode *parent = nullptr)

其他继承的成员

详细描述

Provides a way of enabling child entities based on distance or screen size.

This component is assigned to an entity. When the entity changes distance relative to the camera, the QLevelOfDetailSwitch will disable all the child entities except the one matching index Qt3DRender::QLevelOfDetailSwitch::currentIndex.

成员函数

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

Constructs a new QLevelOfDetailSwitch with the specified parent.

[protected] QLevelOfDetailSwitch::QLevelOfDetailSwitch(QLevelOfDetailPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QLevelOfDetailSwitch.