![]() |
Stellarium
HEAD
|
Manages loading, saving, and modifying texture configuration files in JSON format. More...
#include <TextureConfigManager.hpp>
Public Member Functions | |
| TextureConfigManager (const QString &configFilePath, const QString &texname) | |
| Constructs with the given config file path. | |
| bool | load () |
| Loads the texture configuration from the specified file. | |
| bool | save () const |
| Saves the current configuration to the file. | |
| void | clearSubTiles () |
| Clears all sub-tiles in the configuration. | |
| void | addSubTile (const QString &imageUrl, const QJsonArray &worldCoords, double minResolution, double maxBrightness) |
| Adds a sub-tile to the configuration without overwriting. | |
| void | addSubTileOverwrite (const QString &imageUrl, const QJsonArray &worldCoords, double minResolution, double maxBrightness) |
| Adds a sub-tile and overwrites existing ones. | |
| bool | removeSubTileByImageUrl (const QString &imageUrl) |
| Removes a sub-tile based on the image URL. | |
| QJsonArray | getSubTiles () const |
| Retrieves all sub-tiles from the configuration. | |
| QJsonObject | getSubTileByImageUrl (const QString &imageUrl) const |
| Gets a sub-tile by its image URL. | |
| QString | getConfigPath () const |
| Returns the file path of the configuration. | |
Manages loading, saving, and modifying texture configuration files in JSON format.