QGIS API Documentation
2.2.0-Valmiera
|
#include <qgssvgcache.h>
Public Member Functions | |
QgsSvgCacheEntry () | |
QgsSvgCacheEntry (const QString &file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFactor, const QColor &fill, const QColor &outline) | |
Constructor. | |
~QgsSvgCacheEntry () | |
bool | operator== (const QgsSvgCacheEntry &other) const |
Don't consider image, picture, last used timestamp for comparison. | |
int | dataSize () const |
Return memory usage in bytes. |
Public Attributes | |
QString | file |
double | size |
double | outlineWidth |
double | widthScaleFactor |
double | rasterScaleFactor |
QColor | fill |
QColor | outline |
QImage * | image |
QPicture * | picture |
QByteArray | svgContent |
QgsSvgCacheEntry * | nextEntry |
QgsSvgCacheEntry * | previousEntry |
Definition at line 31 of file qgssvgcache.h.
QgsSvgCacheEntry::QgsSvgCacheEntry | ( | ) |
Definition at line 39 of file qgssvgcache.cpp.
QgsSvgCacheEntry::QgsSvgCacheEntry | ( | const QString & | file, |
double | size, | ||
double | outlineWidth, | ||
double | widthScaleFactor, | ||
double | rasterScaleFactor, | ||
const QColor & | fill, | ||
const QColor & | outline | ||
) |
Constructor.
file | Absolute path to SVG file (relative paths are not resolved). |
size | |
outlineWidth | width of outline |
widthScaleFactor | width scale factor |
rasterScaleFactor | raster scale factor |
fill | color of fill |
outline | color of outline |
Definition at line 44 of file qgssvgcache.cpp.
QgsSvgCacheEntry::~QgsSvgCacheEntry | ( | ) |
Definition at line 50 of file qgssvgcache.cpp.
int QgsSvgCacheEntry::dataSize | ( | ) | const |
Return memory usage in bytes.
Definition at line 62 of file qgssvgcache.cpp.
References image, picture, size, and svgContent.
Referenced by QgsSvgCache::trimToMaximumSize().
bool QgsSvgCacheEntry::operator== | ( | const QgsSvgCacheEntry & | other | ) | const |
Don't consider image, picture, last used timestamp for comparison.
Definition at line 56 of file qgssvgcache.cpp.
References file, fill, outline, outlineWidth, rasterScaleFactor, size, and widthScaleFactor.
QString QgsSvgCacheEntry::file |
Definition at line 47 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), QgsSvgCache::printEntryList(), QgsSvgCache::replaceParamsAndCacheSvg(), and QgsSvgCache::trimToMaximumSize().
QColor QgsSvgCacheEntry::fill |
Definition at line 52 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), and QgsSvgCache::replaceParamsAndCacheSvg().
QImage* QgsSvgCacheEntry::image |
Definition at line 54 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheImage(), dataSize(), QgsSvgCache::svgAsImage(), and ~QgsSvgCacheEntry().
QgsSvgCacheEntry* QgsSvgCacheEntry::nextEntry |
Definition at line 60 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::insertSVG(), QgsSvgCache::printEntryList(), QgsSvgCache::takeEntryFromList(), and QgsSvgCache::trimToMaximumSize().
QColor QgsSvgCacheEntry::outline |
Definition at line 53 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), and QgsSvgCache::replaceParamsAndCacheSvg().
double QgsSvgCacheEntry::outlineWidth |
Definition at line 49 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), and QgsSvgCache::replaceParamsAndCacheSvg().
QPicture* QgsSvgCacheEntry::picture |
Definition at line 55 of file qgssvgcache.h.
Referenced by QgsSvgCache::cachePicture(), dataSize(), QgsSvgCache::svgAsImage(), QgsSvgCache::svgAsPicture(), and ~QgsSvgCacheEntry().
QgsSvgCacheEntry* QgsSvgCacheEntry::previousEntry |
Definition at line 61 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::insertSVG(), and QgsSvgCache::takeEntryFromList().
double QgsSvgCacheEntry::rasterScaleFactor |
Definition at line 51 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::cachePicture(), operator==(), and QgsSvgCache::printEntryList().
double QgsSvgCacheEntry::size |
Definition at line 48 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::cacheImage(), QgsSvgCache::cachePicture(), dataSize(), operator==(), QgsSvgCache::printEntryList(), and QgsSvgCache::svgAsImage().
QByteArray QgsSvgCacheEntry::svgContent |
Definition at line 57 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheImage(), QgsSvgCache::cachePicture(), dataSize(), QgsSvgCache::replaceParamsAndCacheSvg(), and QgsSvgCache::svgAsImage().
double QgsSvgCacheEntry::widthScaleFactor |
Definition at line 50 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::cachePicture(), operator==(), and QgsSvgCache::printEntryList().