54 bool isValid()
const {
return mAtlasSize.isValid(); }
66 QRect rect(
int index )
const;
74 QRect rect(
int index )
const;
76 const int count = sipCpp->count();
77 if ( a0 < 0 || a0 >= count )
79 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
84 return sipConvertFromNewType(
new QRect( sipCpp->rect( a0 ) ), sipType_QRect, Py_None );
94 QImage renderAtlasTexture()
const;
102 QImage renderDebugTexture()
const;
112 Returns the number of textures in the atlas.
121 std::vector< QgsTextureRect >
Generates texture atlases by efficient packing of multiple input rectangles/images.
static QgsTextureAtlas createFromRects(const QVector< QRect > &rectangles, int maxSide=1000)
Creates a texture atlas for a set of rectangles.
static QgsTextureAtlas createFromImages(const QVector< QImage > &images, int maxSide=1000)
Creates a texture atlas for a set of images.
Encapsulates a texture atlas.
QgsTextureAtlas & operator=(const QgsTextureAtlas &other)
bool isValid() const
Returns true if the atlas is valid.
QgsTextureAtlas(const QgsTextureAtlas &other)
QSize atlasSize() const
Returns the total size required for the atlas, i.e.
friend class QgsTextureAtlasGenerator