|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Encapsulates a texture atlas. More...
#include <qgstextureatlasgenerator.h>
Public Member Functions | |
| QgsTextureAtlas () | |
| QgsTextureAtlas (const QgsTextureAtlas &other) | |
| ~QgsTextureAtlas () | |
| QSize | atlasSize () const |
| Returns the total size required for the atlas, i.e. | |
| int | count () const |
| Returns the number of textures in the atlas. | |
| bool | isValid () const |
Returns true if the atlas is valid. | |
| QgsTextureAtlas & | operator= (const QgsTextureAtlas &other) |
| QRect | rect (int index) const |
| Returns the packed rectangle for the texture with the specified index. | |
| QImage | renderAtlasTexture () const |
| Renders the combined texture atlas, containing all source images. | |
| QImage | renderDebugTexture () const |
| Renders a debug texture. | |
Friends | |
| class | QgsTextureAtlasGenerator |
Encapsulates a texture atlas.
QgsTextureAtlas contains the packed regions for aggregated texture atlases, and optionally the packed texture map.
See QgsTextureAtlasGenerator for a class which automatically creates texture atlases.
Definition at line 42 of file qgstextureatlasgenerator.h.
|
default |
|
default |
|
default |
|
inline |
Returns the total size required for the atlas, i.e.
the total size for the packed images and rectangles.
Definition at line 60 of file qgstextureatlasgenerator.h.
| int QgsTextureAtlas::count | ( | ) | const |
Returns the number of textures in the atlas.
Definition at line 65 of file qgstextureatlasgenerator.cpp.
|
inline |
Returns true if the atlas is valid.
Definition at line 54 of file qgstextureatlasgenerator.h.
|
default |
| QRect QgsTextureAtlas::rect | ( | int | index | ) | const |
Returns the packed rectangle for the texture with the specified index.
Definition at line 70 of file qgstextureatlasgenerator.cpp.
| QImage QgsTextureAtlas::renderAtlasTexture | ( | ) | const |
Renders the combined texture atlas, containing all source images.
Definition at line 75 of file qgstextureatlasgenerator.cpp.
| QImage QgsTextureAtlas::renderDebugTexture | ( | ) | const |
Renders a debug texture.
The debug texture renders all packed rectangles with a unique color, and can be used to visualize the solution.
Definition at line 96 of file qgstextureatlasgenerator.cpp.
|
friend |
Definition at line 125 of file qgstextureatlasgenerator.h.