Nesta página

Qt3DRender::QTextureImageData Class

class Qt3DRender::QTextureImageData

QTextureImageData armazena dados que representam uma textura. Mais...

Cabeçalho: #include <qtextureimagedata.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Status: Obsoleta

Esta classe está obsoleta. Recomendamos fortemente que você não a utilize em código novo.

Funções públicas

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

Descrição detalhada

Documentação das funções de membro

QTextureImageData::QTextureImageData()

Cria um novo objeto ` Qt3DRender::QTextureImageData`.

[noexcept] int QTextureImageData::alignment() const

Retorna a exigência de alinhamento da imagem.

Veja também setAlignment().

[noexcept] void QTextureImageData::cleanup()

Remover os dados de textura armazenados e restaurar o objeto ao seu estado inicial

QByteArray QTextureImageData::data(int layer = 0, int face = 0, int mipmapLevel = 0) const

Retorna os dados brutos da imagem para a textura na camada layer, face face e nível de mipmap mipmapLevel.

Veja também setData().

[noexcept] int QTextureImageData::depth() const

Retorna a profundidade da textura armazenada

Veja também setDepth().

[noexcept] int QTextureImageData::faces() const

Retorna o número de faces na textura armazenada

Veja também setFaces().

[noexcept] QOpenGLTexture::TextureFormat QTextureImageData::format() const

Retorna o formato da textura armazenada.

Veja também setFormat().

[noexcept] int QTextureImageData::height() const

Retorna a altura da textura armazenada

Veja também setHeight().

[noexcept] bool QTextureImageData::isCompressed() const

Retorna “true” se a textura armazenada estiver em um formato compactado

[noexcept] int QTextureImageData::layers() const

Retorna o número de camadas da textura armazenada

Veja também setLayers().

[noexcept] int QTextureImageData::mipLevels() const

Retorna o número de níveis de mip na textura armazenada

Veja também setMipLevels().

[noexcept] QOpenGLTexture::PixelFormat QTextureImageData::pixelFormat() const

Retorna o formato de pixel da textura armazenada.

Veja também setPixelFormat().

[noexcept] QOpenGLTexture::PixelType QTextureImageData::pixelType() const

Retorna o tipo de pixel da textura armazenada.

Veja também setPixelType().

[noexcept] void QTextureImageData::setAlignment(int alignment)

Define os requisitos de “ alignment ” para a imagem.

Veja também alignment().

void QTextureImageData::setData(const QByteArray &data, int blockSize, bool isCompressed = false)

Armazena os dados data com tamanho de bloco blockSize e, se os dados a serem armazenados estiverem compactados isCompressed.

Veja também data().

[noexcept] void QTextureImageData::setDepth(int depth)

Define a profundidade como depth. setDepth

Veja também depth().

[noexcept] void QTextureImageData::setFaces(int faces)

Define as faces como “ faces ”. setFaces

Veja também faces().

[noexcept] void QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format)

Define o formato como “ format ”.

Veja também format().

[noexcept] void QTextureImageData::setHeight(int height)

Define a altura como height. setHeight

Veja também height().

void QTextureImageData::setImage(const QImage &image)

Copia a imagem image como dados brutos dentro deste objeto.

[noexcept] void QTextureImageData::setLayers(int layers)

Define as camadas como layers. setLayers

Veja também layers().

[noexcept] void QTextureImageData::setMipLevels(int mipLevels)

Define os níveis de mip para mipLevels. setMipLevels

Veja também mipLevels().

[noexcept] void QTextureImageData::setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat)

Define o formato de pixel como pixelFormat.

Veja também pixelFormat().

[noexcept] void QTextureImageData::setPixelType(QOpenGLTexture::PixelType pixelType)

Define o tipo de pixel como “ pixelType ”.

Veja também pixelType().

[noexcept] void QTextureImageData::setTarget(QOpenGLTexture::Target target)

Define o destino como target.

Veja também target().

[noexcept] void QTextureImageData::setWidth(int width)

Define a largura como width. setWidth

Veja também width().

[noexcept] QOpenGLTexture::Target QTextureImageData::target() const

Retorna o objeto de destino da textura armazenada.

Veja também setTarget().

[noexcept] int QTextureImageData::width() const

Retorna a largura da textura armazenada

Veja também 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.