Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTextureFileData Class Reference

#include <qtexturefiledata_p.h>

+ Collaboration diagram for QTextureFileData:

Public Types

enum  Mode { ByteArrayMode , ImageMode }
 

Public Member Functions

 QTextureFileData (Mode mode=ByteArrayMode)
 
 QTextureFileData (const QTextureFileData &other)
 
QTextureFileDataoperator= (const QTextureFileData &other)
 
 ~QTextureFileData ()
 
bool isNull () const
 
bool isValid () const
 
void clear ()
 
QByteArray data () const
 
void setData (const QByteArray &data)
 
void setData (const QImage &image, int level=0, int face=0)
 
int dataOffset (int level=0, int face=0) const
 
void setDataOffset (int offset, int level=0, int face=0)
 
int dataLength (int level=0, int face=0) const
 
void setDataLength (int length, int level=0, int face=0)
 
QByteArrayView getDataView (int level=0, int face=0) const
 
int numLevels () const
 
void setNumLevels (int num)
 
int numFaces () const
 
void setNumFaces (int num)
 
QSize size () const
 
void setSize (const QSize &size)
 
quint32 glFormat () const
 
void setGLFormat (quint32 format)
 
quint32 glInternalFormat () const
 
void setGLInternalFormat (quint32 format)
 
quint32 glBaseInternalFormat () const
 
void setGLBaseInternalFormat (quint32 format)
 
QByteArray logName () const
 
void setLogName (const QByteArray &name)
 
QMap< QByteArray, QByteArraykeyValueMetadata () const
 
void setKeyValueMetadata (const QMap< QByteArray, QByteArray > &keyValues)
 

Friends

Q_GUI_EXPORT QDebug operator<< (QDebug dbg, const QTextureFileData &d)
 

Detailed Description

Definition at line 30 of file qtexturefiledata_p.h.

Member Enumeration Documentation

◆ Mode

Enumerator
ByteArrayMode 
ImageMode 

Definition at line 33 of file qtexturefiledata_p.h.

Constructor & Destructor Documentation

◆ QTextureFileData() [1/2]

QTextureFileData::QTextureFileData ( Mode mode = ByteArrayMode)

Definition at line 83 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::mode.

◆ QTextureFileData() [2/2]

QTextureFileData::QTextureFileData ( const QTextureFileData & other)

Definition at line 89 of file qtexturefiledata.cpp.

◆ ~QTextureFileData()

QTextureFileData::~QTextureFileData ( )

Definition at line 100 of file qtexturefiledata.cpp.

Member Function Documentation

◆ clear()

void QTextureFileData::clear ( )

Definition at line 146 of file qtexturefiledata.cpp.

◆ data()

QByteArray QTextureFileData::data ( ) const

Definition at line 151 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::data, and QByteArray().

Referenced by setData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dataLength()

int QTextureFileData::dataLength ( int level = 0,
int face = 0 ) const

Definition at line 184 of file qtexturefiledata.cpp.

References ByteArrayMode, QTextureFileDataPrivate::getLength(), QTextureFileDataPrivate::isValid(), QTextureFileDataPrivate::mode, and Q_ASSERT.

Referenced by getDataView().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dataOffset()

int QTextureFileData::dataOffset ( int level = 0,
int face = 0 ) const

Definition at line 169 of file qtexturefiledata.cpp.

References ByteArrayMode, QTextureFileDataPrivate::getOffset(), QTextureFileDataPrivate::isValid(), QTextureFileDataPrivate::mode, and Q_ASSERT.

Referenced by getDataView().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDataView()

QByteArrayView QTextureFileData::getDataView ( int level = 0,
int face = 0 ) const

Definition at line 190 of file qtexturefiledata.cpp.

References ByteArrayMode, QByteArray::constData(), QTextureFileDataPrivate::data, dataLength(), dataOffset(), QTextureFileDataPrivate::images, QTextureFileDataPrivate::isValid(), and QTextureFileDataPrivate::mode.

Referenced by QSGCompressedTexture::commitTextureOperations(), and QSGCompressedTextureFactory::textureByteCount().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ glBaseInternalFormat()

quint32 QTextureFileData::glBaseInternalFormat ( ) const

Definition at line 272 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::baseInternalFormat.

◆ glFormat()

quint32 QTextureFileData::glFormat ( ) const

Definition at line 250 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::format.

◆ glInternalFormat()

quint32 QTextureFileData::glInternalFormat ( ) const

Definition at line 261 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::internalFormat.

Referenced by QSGCompressedTexture::QSGCompressedTexture(), and QSGCompressedTexture::commitTextureOperations().

+ Here is the caller graph for this function:

◆ isNull()

bool QTextureFileData::isNull ( ) const

Definition at line 104 of file qtexturefiledata.cpp.

◆ isValid()

bool QTextureFileData::isValid ( ) const

◆ keyValueMetadata()

QMap< QByteArray, QByteArray > QTextureFileData::keyValueMetadata ( ) const

Definition at line 294 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::keyValues.

◆ logName()

QByteArray QTextureFileData::logName ( ) const

Definition at line 283 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::logName, and QByteArray().

Referenced by QSGCompressedTexture::commitTextureOperations().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ numFaces()

int QTextureFileData::numFaces ( ) const

Definition at line 228 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::numFaces.

Referenced by setNumFaces().

+ Here is the caller graph for this function:

◆ numLevels()

int QTextureFileData::numLevels ( ) const

Definition at line 217 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::numLevels.

Referenced by setNumLevels().

+ Here is the caller graph for this function:

◆ operator=()

QTextureFileData & QTextureFileData::operator= ( const QTextureFileData & other)

Definition at line 94 of file qtexturefiledata.cpp.

References other().

+ Here is the call graph for this function:

◆ setData() [1/2]

void QTextureFileData::setData ( const QByteArray & data)

Definition at line 156 of file qtexturefiledata.cpp.

References ByteArrayMode, QTextureFileDataPrivate::data, data(), QTextureFileDataPrivate::mode, and Q_ASSERT.

Referenced by QKtxHandler::read(), and QSGCompressedAtlasTexture::Texture::removedFromAtlas().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setData() [2/2]

void QTextureFileData::setData ( const QImage & image,
int level = 0,
int face = 0 )

Definition at line 162 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::ensureSize(), ImageMode, QTextureFileDataPrivate::images, QTextureFileDataPrivate::mode, and Q_ASSERT.

+ Here is the call graph for this function:

◆ setDataLength()

void QTextureFileData::setDataLength ( int length,
int level = 0,
int face = 0 )

Definition at line 208 of file qtexturefiledata.cpp.

References ByteArrayMode, QSharedDataPointer< T >::constData(), QTextureFileDataPrivate::ensureSize(), QTextureFileDataPrivate::mode, Q_ASSERT, and QTextureFileDataPrivate::setLength().

+ Here is the call graph for this function:

◆ setDataOffset()

void QTextureFileData::setDataOffset ( int offset,
int level = 0,
int face = 0 )

Definition at line 175 of file qtexturefiledata.cpp.

References ByteArrayMode, QSharedDataPointer< T >::constData(), QTextureFileDataPrivate::ensureSize(), QTextureFileDataPrivate::mode, Q_ASSERT, and QTextureFileDataPrivate::setOffset().

+ Here is the call graph for this function:

◆ setGLBaseInternalFormat()

void QTextureFileData::setGLBaseInternalFormat ( quint32 format)

Definition at line 277 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::baseInternalFormat, and QSharedDataPointer< T >::constData().

+ Here is the call graph for this function:

◆ setGLFormat()

void QTextureFileData::setGLFormat ( quint32 format)

Definition at line 255 of file qtexturefiledata.cpp.

References QSharedDataPointer< T >::constData(), and QTextureFileDataPrivate::format.

+ Here is the call graph for this function:

◆ setGLInternalFormat()

void QTextureFileData::setGLInternalFormat ( quint32 format)

Definition at line 266 of file qtexturefiledata.cpp.

References QSharedDataPointer< T >::constData(), and QTextureFileDataPrivate::internalFormat.

+ Here is the call graph for this function:

◆ setKeyValueMetadata()

void QTextureFileData::setKeyValueMetadata ( const QMap< QByteArray, QByteArray > & keyValues)

Definition at line 299 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::keyValues.

◆ setLogName()

void QTextureFileData::setLogName ( const QByteArray & name)

Definition at line 288 of file qtexturefiledata.cpp.

References QSharedDataPointer< T >::constData(), and QTextureFileDataPrivate::logName.

+ Here is the call graph for this function:

◆ setNumFaces()

void QTextureFileData::setNumFaces ( int num)

Definition at line 233 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::ensureSize(), numFaces(), and QTextureFileDataPrivate::numLevels.

+ Here is the call graph for this function:

◆ setNumLevels()

void QTextureFileData::setNumLevels ( int num)

Definition at line 222 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::ensureSize(), QTextureFileDataPrivate::numFaces, and numLevels().

+ Here is the call graph for this function:

◆ setSize()

void QTextureFileData::setSize ( const QSize & size)

Definition at line 244 of file qtexturefiledata.cpp.

References QSharedDataPointer< T >::constData(), QTextureFileDataPrivate::size, and size().

+ Here is the call graph for this function:

◆ size()

QSize QTextureFileData::size ( ) const

Definition at line 239 of file qtexturefiledata.cpp.

References QTextureFileDataPrivate::size.

Referenced by QSGCompressedTexture::QSGCompressedTexture(), setSize(), and QSGCompressedTextureFactory::textureSize().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

Q_GUI_EXPORT QDebug operator<< ( QDebug dbg,
const QTextureFileData & d )
friend

Definition at line 310 of file qtexturefiledata.cpp.


The documentation for this class was generated from the following files: