QGIS API Documentation  master-59fd5e0
QgsSvgCacheEntry Class Reference

#include <qgssvgcache.h>

+ Collaboration diagram for QgsSvgCacheEntry:

List of all members.

Public Member Functions

 QgsSvgCacheEntry ()
 QgsSvgCacheEntry (const QString &file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFctor, const QColor &fill, const QColor &outline)
 ~QgsSvgCacheEntry ()
int dataSize () const
 Return memory usage in bytes.
bool operator== (const QgsSvgCacheEntry &other) const
 Don't consider image, picture, last used timestamp for comparison.

Public Attributes

QString file
QColor fill
QImage * image
QgsSvgCacheEntrynextEntry
QColor outline
double outlineWidth
QPicture * picture
QgsSvgCacheEntrypreviousEntry
double rasterScaleFactor
double size
QByteArray svgContent
double widthScaleFactor

Detailed Description

Definition at line 31 of file qgssvgcache.h.


Constructor & Destructor Documentation

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.

Definition at line 48 of file qgssvgcache.cpp.

References image, and picture.


Member Function Documentation

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.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines