QAbstractFunctor Class

class Qt3DCore::QAbstractFunctor

QAbstractFunctor は、すべてのファンクタの抽象基底クラスです。詳細...

ヘッダー #include <QAbstractFunctor>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake: QT += 3dcore
によって継承される:

Qt3DRender::QTextureGenerator そしてQt3DRender::QTextureImageDataGenerator

ステータス非推奨

パブリック関数

virtual ~QAbstractFunctor()
const T *functor_cast(const Qt3DCore::QAbstractFunctor *other) const
virtual qintptr id() const = 0

マクロ

QT3D_FUNCTOR(Class)

詳細な説明

QAbstractFunctorは、Qt3DCoreモジュールのすべてのファンクタとデータジェネレータの基底クラスとして使用されます。

ユーザが新しいファンクタやジェネレータを定義する場合、QAbstractFunctor::id()メソッドを実装する必要があります。これは、クラス定義のQT3D_FUNCTOR マクロを使用して行う必要があります。

メンバ関数のドキュメント

[virtual noexcept] QAbstractFunctor::~QAbstractFunctor()

破壊者

template <typename T> const T *QAbstractFunctor::functor_cast(const Qt3DCore::QAbstractFunctor *other) const

other このメソッドは、QAbstractFunctor から派生したファンクタを除いて、qobject_cast() と同様に動作します。

警告: TがQT3D_FUNCTOR マクロで宣言されていない場合、結果は未定義です。

[pure virtual] qintptr QAbstractFunctor::id() const

ファンクタの ID へのポインタを返す。

マクロのドキュメント

QT3D_FUNCTOR(Class)

このマクロは、Class にファンクタIDを割り当て、QAbstractFunctor::functor_cast がキャストが可能かどうかを判断するために使用する。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. 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.