Qt3DCore::QAbstractFunctor Class
class Qt3DCore::QAbstractFunctorQAbstractFunctor is an abstract base class for all functors. More...
| Header: | #include <QAbstractFunctor> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore)target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| Inherited By: | Qt3DRender::QTextureGenerator and Qt3DRender::QTextureImageDataGenerator |
| Status: | Deprecated |
Public Functions
| virtual | ~QAbstractFunctor() |
Macros
| QT3D_FUNCTOR(Class) |
Detailed Description
The QAbstractFunctor is used as a base class for all functors and data generators in Qt3DCore module.
When user defines a new functor or generator, they need to implement the QAbstractFunctor::id() method, which should be done using the QT3D_FUNCTOR macro in the class definition.
Member Function Documentation
[virtual noexcept] QAbstractFunctor::~QAbstractFunctor()
Desctructor
Macro Documentation
QT3D_FUNCTOR(Class)
This macro assigns functor id to the Class, which is used by QAbstractFunctor::functor_cast to determine if the cast can be done.