Qt3DRender::QTextureImageData Class
class Qt3DRender::QTextureImageDataQTextureImageData memorizza i dati che rappresentano una texture. Per saperne di più...
| Intestazione: | #include <qtextureimagedata.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| Stato: | Obsoleta |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Funzioni pubbliche
| QTextureImageData() | |
| int | alignment() const |
| void | cleanup() |
| QByteArray | data(int layer = 0, int face = 0, int mipmapLevel = 0) const |
| int | depth() const |
| int | faces() const |
| QOpenGLTexture::TextureFormat | format() const |
| int | height() const |
| bool | isCompressed() const |
| int | layers() const |
| int | mipLevels() const |
| QOpenGLTexture::PixelFormat | pixelFormat() const |
| QOpenGLTexture::PixelType | pixelType() const |
| void | setAlignment(int alignment) |
| void | setData(const QByteArray &data, int blockSize, bool isCompressed = false) |
| void | setDepth(int depth) |
| void | setFaces(int faces) |
| void | setFormat(QOpenGLTexture::TextureFormat format) |
| void | setHeight(int height) |
| void | setImage(const QImage &image) |
| void | setLayers(int layers) |
| void | setMipLevels(int mipLevels) |
| void | setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat) |
| void | setPixelType(QOpenGLTexture::PixelType pixelType) |
| void | setTarget(QOpenGLTexture::Target target) |
| void | setWidth(int width) |
| QOpenGLTexture::Target | target() const |
| int | width() const |
Documentazione sulle funzioni membro
QTextureImageData::QTextureImageData()
Crea un nuovo oggetto ` Qt3DRender::QTextureImageData`.
[noexcept] int QTextureImageData::alignment() const
Restituisce il requisito di allineamento per l'immagine.
Vedi anche setAlignment().
[noexcept] void QTextureImageData::cleanup()
Rimuovi i dati relativi alle texture memorizzati e riporta l'oggetto allo stato iniziale
QByteArray QTextureImageData::data(int layer = 0, int face = 0, int mipmapLevel = 0) const
Restituisce i dati grezzi dell'immagine relativi alla texture del livello layer, della faccia face e del livello mipmap mipmapLevel.
Vedi anche setData().
[noexcept] int QTextureImageData::depth() const
Restituisce la profondità della texture memorizzata
Vedi anche setDepth().
[noexcept] int QTextureImageData::faces() const
Restituisce il numero di facce presenti nella texture memorizzata
Vedi anche setFaces().
[noexcept] QOpenGLTexture::TextureFormat QTextureImageData::format() const
Restituisce il formato della texture memorizzata.
Vedi anche setFormat().
[noexcept] int QTextureImageData::height() const
Restituisce l'altezza della texture memorizzata
Vedi anche setHeight().
[noexcept] bool QTextureImageData::isCompressed() const
Restituisce "true" se la texture memorizzata è in un formato compresso
[noexcept] int QTextureImageData::layers() const
Restituisce il numero di livelli presenti nella texture memorizzata
Vedi anche setLayers().
[noexcept] int QTextureImageData::mipLevels() const
Restituisce il numero di livelli MIP nella texture memorizzata
Vedi anche setMipLevels().
[noexcept] QOpenGLTexture::PixelFormat QTextureImageData::pixelFormat() const
Restituisce il formato in pixel della texture memorizzata.
Vedi anche setPixelFormat().
[noexcept] QOpenGLTexture::PixelType QTextureImageData::pixelType() const
Restituisce il tipo di pixel della texture memorizzata.
Vedi anche setPixelType().
[noexcept] void QTextureImageData::setAlignment(int alignment)
Imposta i requisiti di " alignment " per l'immagine.
Vedi anche alignment().
void QTextureImageData::setData(const QByteArray &data, int blockSize, bool isCompressed = false)
Memorizza i dati data con dimensione di blocco blockSize e, se i dati da memorizzare sono compressi, isCompressed.
Vedi anche data().
[noexcept] void QTextureImageData::setDepth(int depth)
Imposta la profondità su depth. setDepth
Vedi anche depth().
[noexcept] void QTextureImageData::setFaces(int faces)
Imposta le facce su faces. setFaces
Vedi anche faces().
[noexcept] void QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format)
Imposta il formato su “ format ”.
Vedi anche format().
[noexcept] void QTextureImageData::setHeight(int height)
Imposta l'altezza su height. setHeight
Vedi anche height().
void QTextureImageData::setImage(const QImage &image)
Copia l'immagine image come dati grezzi all'interno di questo oggetto.
[noexcept] void QTextureImageData::setLayers(int layers)
Imposta i livelli su layers. setLayers
Vedi anche layers().
[noexcept] void QTextureImageData::setMipLevels(int mipLevels)
Imposta i livelli mip su mipLevels. setMipLevels
Vedi anche mipLevels().
[noexcept] void QTextureImageData::setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat)
Imposta il formato dei pixel su pixelFormat.
Vedi anche pixelFormat().
[noexcept] void QTextureImageData::setPixelType(QOpenGLTexture::PixelType pixelType)
Imposta il tipo di pixel su “ pixelType ”.
Vedi anche pixelType().
[noexcept] void QTextureImageData::setTarget(QOpenGLTexture::Target target)
Imposta come destinazione target.
Vedi anche target().
[noexcept] void QTextureImageData::setWidth(int width)
Imposta la larghezza su width. setWidth
Vedi anche width().
[noexcept] QOpenGLTexture::Target QTextureImageData::target() const
Restituisce la destinazione della texture memorizzata.
Vedi anche setTarget().
[noexcept] int QTextureImageData::width() const
Restituisce la larghezza della texture memorizzata
Vedi anche setWidth().
© 2026 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.