QGIS API Documentation
2.0.1-Dufour
|
#include <qgssvgcache.h>
Public Member Functions | |
QgsSvgCacheEntry () | |
QgsSvgCacheEntry (const QString &file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFctor, const QColor &fill, const QColor &outline) | |
~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 37 of file qgssvgcache.cpp.
QgsSvgCacheEntry::QgsSvgCacheEntry | ( | const QString & | file, |
double | size, | ||
double | outlineWidth, | ||
double | widthScaleFactor, | ||
double | rasterScaleFctor, | ||
const QColor & | fill, | ||
const QColor & | outline | ||
) |
Definition at line 42 of file qgssvgcache.cpp.
QgsSvgCacheEntry::~QgsSvgCacheEntry | ( | ) |
Definition at line 48 of file qgssvgcache.cpp.
int QgsSvgCacheEntry::dataSize | ( | ) | const |
Return memory usage in bytes.
Definition at line 60 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 54 of file qgssvgcache.cpp.
References file, fill, outline, outlineWidth, rasterScaleFactor, size, and widthScaleFactor.
QString QgsSvgCacheEntry::file |
Definition at line 38 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), QgsSvgCache::printEntryList(), QgsSvgCache::replaceParamsAndCacheSvg(), and QgsSvgCache::trimToMaximumSize().
QColor QgsSvgCacheEntry::fill |
Definition at line 43 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), and QgsSvgCache::replaceParamsAndCacheSvg().
QImage* QgsSvgCacheEntry::image |
Definition at line 45 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheImage(), dataSize(), QgsSvgCache::svgAsImage(), and ~QgsSvgCacheEntry().
QgsSvgCacheEntry* QgsSvgCacheEntry::nextEntry |
Definition at line 51 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::insertSVG(), QgsSvgCache::printEntryList(), QgsSvgCache::takeEntryFromList(), and QgsSvgCache::trimToMaximumSize().
QColor QgsSvgCacheEntry::outline |
Definition at line 44 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), and QgsSvgCache::replaceParamsAndCacheSvg().
double QgsSvgCacheEntry::outlineWidth |
Definition at line 40 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), operator==(), and QgsSvgCache::replaceParamsAndCacheSvg().
QPicture* QgsSvgCacheEntry::picture |
Definition at line 46 of file qgssvgcache.h.
Referenced by QgsSvgCache::cachePicture(), dataSize(), QgsSvgCache::svgAsImage(), QgsSvgCache::svgAsPicture(), and ~QgsSvgCacheEntry().
QgsSvgCacheEntry* QgsSvgCacheEntry::previousEntry |
Definition at line 52 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::insertSVG(), and QgsSvgCache::takeEntryFromList().
double QgsSvgCacheEntry::rasterScaleFactor |
Definition at line 42 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::cachePicture(), operator==(), and QgsSvgCache::printEntryList().
double QgsSvgCacheEntry::size |
Definition at line 39 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 48 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheImage(), QgsSvgCache::cachePicture(), dataSize(), QgsSvgCache::replaceParamsAndCacheSvg(), and QgsSvgCache::svgAsImage().
double QgsSvgCacheEntry::widthScaleFactor |
Definition at line 41 of file qgssvgcache.h.
Referenced by QgsSvgCache::cacheEntry(), QgsSvgCache::cachePicture(), operator==(), and QgsSvgCache::printEntryList().