QAbstractFunctor 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 |
| virtual | ~QAbstractFunctor() |
| const T * | functor_cast(const Qt3DCore::QAbstractFunctor *other) const |
| virtual qintptr | id() const = 0 |
| QT3D_FUNCTOR(Class) |
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.
[virtual noexcept] QAbstractFunctor::~QAbstractFunctor()Desctructor
This method is used to cast functor other to type T if the other is of type T (or of subclass); otherwise returns 0. This method works similarly to qobject_cast(), except with functors derived from QAbstractFunctor.
Warning: If T was not declared with QT3D_FUNCTOR macro, then the results are undefined.
[pure virtual] qintptr QAbstractFunctor::id() constReturns a pointer to the id of the functor.
This macro assigns functor id to the Class, which is used by QAbstractFunctor::functor_cast to determine if the cast can be done.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: