QGIS API Documentation  2.3.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
QgsSvgCacheEntry Class Reference

#include <qgssvgcache.h>

Collaboration diagram for QgsSvgCacheEntry:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 31 of file qgssvgcache.h.

Constructor & Destructor Documentation

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.

Parameters
fileAbsolute path to SVG file (relative paths are not resolved).
size
outlineWidthwidth of outline
widthScaleFactorwidth scale factor
rasterScaleFactorraster scale factor
fillcolor of fill
outlinecolor of outline

Definition at line 44 of file qgssvgcache.cpp.

QgsSvgCacheEntry::~QgsSvgCacheEntry ( )

Definition at line 50 of file qgssvgcache.cpp.

References image, and picture.

Member Function Documentation

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.

Member Data Documentation

QString QgsSvgCacheEntry::file
QColor QgsSvgCacheEntry::fill
QImage* QgsSvgCacheEntry::image
QgsSvgCacheEntry* QgsSvgCacheEntry::nextEntry
QColor QgsSvgCacheEntry::outline
double QgsSvgCacheEntry::outlineWidth
QPicture* QgsSvgCacheEntry::picture
QgsSvgCacheEntry* QgsSvgCacheEntry::previousEntry
double QgsSvgCacheEntry::rasterScaleFactor
double QgsSvgCacheEntry::size
QByteArray QgsSvgCacheEntry::svgContent
double QgsSvgCacheEntry::widthScaleFactor

The documentation for this class was generated from the following files: