QTextureImageData Class

class Qt3DRender::QTextureImageData

QTextureImageData speichert Daten, die eine Textur darstellen. Mehr...

Kopfzeile: #include <QTextureImageData>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Status: Veraltet

Öffentliche Funktionen

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

Detaillierte Beschreibung

Dokumentation der Mitgliedsfunktionen

QTextureImageData::QTextureImageData()

Konstruiert eine neue Qt3DRender::QTextureImageData.

[noexcept] int QTextureImageData::alignment() const

Gibt die Ausrichtungsanforderung für das Bild zurück.

Siehe auch setAlignment().

[noexcept] void QTextureImageData::cleanup()

Entfernen der gespeicherten Texturdaten und Zurückversetzen des Objekts in seinen Ausgangszustand

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

Liefert die Rohbilddaten für die Textur auf Ebene layer, Fläche face und mipmapLevel mipmapLevel.

Siehe auch setData().

[noexcept] int QTextureImageData::depth() const

Gibt die Tiefe der gespeicherten Textur zurück

Siehe auch setDepth().

[noexcept] int QTextureImageData::faces() const

Gibt die Anzahl der Flächen in der gespeicherten Textur zurück.

Siehe auch setFaces().

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

Gibt das Format der gespeicherten Textur zurück.

Siehe auch setFormat().

[noexcept] int QTextureImageData::height() const

Gibt die Höhe der gespeicherten Textur zurück

Siehe auch setHeight().

[noexcept] bool QTextureImageData::isCompressed() const

Gibt true zurück, wenn die gespeicherte Textur in einem komprimierten Format vorliegt

[noexcept] int QTextureImageData::layers() const

Gibt die Anzahl der Schichten in der gespeicherten Textur zurück.

Siehe auch setLayers().

[noexcept] int QTextureImageData::mipLevels() const

Gibt die Anzahl der Mip-Ebenen in der gespeicherten Textur zurück.

Siehe auch setMipLevels().

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

Gibt das Pixelformat der gespeicherten Textur zurück.

Siehe auch setPixelFormat().

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

Gibt den Pixeltyp der gespeicherten Textur zurück.

Siehe auch setPixelType().

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

Legt die alignment Anforderungen für das Bild fest.

Siehe auch alignment().

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

Speichert die Daten data mit der Blockgröße blockSize und wenn die zu speichernden Daten komprimiert sind isCompressed.

Siehe auch data().

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

Setzt die Tiefe auf depth. setDepth

Siehe auch depth().

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

Setzt die Flächen auf faces. setFaces

Siehe auch faces().

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

Setzt das Format auf format.

Siehe auch format().

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

Setzt die Höhe auf height. setHeight

Siehe auch height().

void QTextureImageData::setImage(const QImage &image)

Kopiert das Bild image als Rohdaten in dieses Objekt.

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

Setzt die Ebenen auf layers. setLayers

Siehe auch layers().

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

Setzt die Mip-Levels auf mipLevels. setMipLevels

Siehe auch mipLevels().

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

Setzt das Pixelformat auf pixelFormat.

Siehe auch pixelFormat().

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

Setzt den Pixeltyp auf pixelType.

Siehe auch pixelType().

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

Setzt das Ziel auf target.

Siehe auch target().

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

Setzt die Breite auf width. setWidth

Siehe auch width().

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

Gibt das Ziel für die gespeicherte Textur zurück.

Siehe auch setTarget().

[noexcept] int QTextureImageData::width() const

Gibt die Breite der gespeicherten Textur zurück

Siehe auch setWidth().

© 2025 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.