QAbstractTextureImage#
Encapsulates the necessary information to create an OpenGL texture image. More…
Inherited by: QTextureImage, QPaintedTextureImage
Synopsis#
Properties#
Functions#
- def - face()
- def - layer()
- def - mipLevel()
- def - notifyDataGeneratorChanged()
Virtual functions#
- def - dataGenerator()
Slots#
- def - setFace(face)
- def - setLayer(layer)
- def - setMipLevel(level)
Signals#
- def - faceChanged(face)
- def - layerChanged(layer)
- def - mipLevelChanged(mipLevel)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
QAbstractTextureImage should be used as the means of providing image data to a QAbstractTexture . It contains the necessary information: mipmap level, layer, cube face load at the proper place data into an OpenGL texture.
The actual data is provided through a QTextureImageDataGenerator that will be executed by Aspect jobs in the backend. QAbstractTextureImage should be subclassed to provide a functor and eventual additional properties needed by the functor to load actual data.
Note
: QAbstractTextureImage should never be shared. Expect crashes, undefined behavior at best if this rule is not respected.
- class PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage#
Note
Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.face: CubeMapFace#
Holds the cube map face of the texture image.
Note
The cube map face has a meaning only for TargetCubeMap and TargetCubeMapArray .
- Access functions:
- face()
- setFace(face)
- Signal - faceChanged(face)
 
- property PᅟySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.layer: int#
Returns the layer of the texture image.
- Access functions:
- layer()
- setLayer(layer)
- Signal - layerChanged(layer)
 
- property PᅟySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.mipLevel: int#
Holds the mipmap level of the texture image.
- Access functions:
- mipLevel()
- setMipLevel(level)
- Signal - mipLevelChanged(mipLevel)
 
- abstract PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.dataGenerator()#
- Return type:
- QSharedPointer
 
Implement this method to return the QTextureImageDataGeneratorPtr instance, which will provide the data for the texture image.
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.face()#
- Return type:
 - See also 
Getter of property face .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.faceChanged(face)#
- Parameters:
- face – - CubeMapFace
 
Notification signal of property face .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.layer()#
- Return type:
- int 
 - See also 
Getter of property layer .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.layerChanged(layer)#
- Parameters:
- layer – int 
 
Notification signal of property layer .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.mipLevel()#
- Return type:
- int 
 - See also 
Getter of property mipLevel .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.mipLevelChanged(mipLevel)#
- Parameters:
- mipLevel – int 
 
Notification signal of property mipLevel .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.notifyDataGeneratorChanged()#
Triggers an update of the data generator that is sent to the backend.
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.setFace(face)#
- Parameters:
- face – - CubeMapFace
 
Sets the texture image face to face. face
See also
Setter of property face .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.setLayer(layer)#
- Parameters:
- layer – int 
 
Sets the layer of a texture to layer. layer
See also
Setter of property layer .
- PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.setMipLevel(level)#
- Parameters:
- level – int 
 
Sets the mip level of a texture to level. level
See also
Setter of property mipLevel .