QProximityFilter Class

( Qt3DRender::QProximityFilter )

Select entities which are within a distance threshold of a target entity. 更多...

頭: #include <QProximityFilter>
qmake: QT += 3drender
Since: Qt 5.10
實例化: ProximityFilter
繼承: Qt3DRender::QFrameGraphNode

特性

公共函數

QProximityFilter (Qt3DCore::QNode * parent = nullptr)
float distanceThreshold () const
Qt3DCore::QEntity * entity () const

公共槽

void setDistanceThreshold (float distanceThreshold )
void setEntity (Qt3DCore::QEntity * entity )

信號

void distanceThresholdChanged (float distanceThreshold )
void entityChanged (Qt3DCore::QEntity * entity )

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

Select entities which are within a distance threshold of a target entity.

A Qt3DRender::QProximityFilter can be used to select entities to render when they are placed within a given distance threshold of another entity.

特性文檔編製

distanceThreshold : float

Holds the distance to the target entity above which entities are filtered out.

訪問函數:

float distanceThreshold () const
void setDistanceThreshold (float distanceThreshold )

通知程序信號:

void distanceThresholdChanged (float distanceThreshold )

entity : Qt3DCore::QEntity *

Holds the entity against which we should compare the distance to.

訪問函數:

Qt3DCore::QEntity * entity () const
void setEntity (Qt3DCore::QEntity * entity )

通知程序信號:

void entityChanged (Qt3DCore::QEntity * entity )

成員函數文檔編製

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

Default constructs an instance of QProximityFilter.