QAbstractFunctor is an abstract base class for all functors. 更多...
| 头: | #include <QAbstractFunctor> | 
| qmake: | QT += 3drender | 
| Since: | Qt 5.7 | 
| 继承者: | Qt3DRender::QBufferDataGenerator , Qt3DRender::QTextureGenerator ,和 Qt3DRender::QTextureImageDataGenerator | 
| QAbstractFunctor () | |
| virtual | ~QAbstractFunctor () | 
| const T * | functor_cast (const Qt3DRender::QAbstractFunctor * other ) const | 
| virtual qintptr | id () const = 0 | 
| QT3D_FUNCTOR ( Class ) | 
QAbstractFunctor is an abstract base class for all functors.
The QAbstractFunctor is used as a base class for all functors and data generators in Qt3DRender 模块。
						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.
					
Default constructs an instance of QAbstractFunctor.
[虚拟]
						
						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 .
警告: If T was not declared with QT3D_FUNCTOR macro, then the results are undefined.
[pure virtual]
						
						
							
								qintptr
							
						
						QAbstractFunctor::
						
							id
						
						() const
						
					This macro assigns functor id to the Class , which is used by QAbstractFunctor::functor_cast to determine if the cast can be done.