QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Public Attributes | List of all members
QgsSvgCacheEntry Class Reference

#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, const QString &lookupKey=QString())
 Constructor. More...
 
 ~QgsSvgCacheEntry ()
 
int dataSize () const
 Return memory usage in bytes. More...
 
bool operator== (const QgsSvgCacheEntry &other) const
 Don't consider image, picture, last used timestamp for comparison. More...
 

Public Attributes

QString file
 Absolute path to SVG file. More...
 
QColor fill
 
QImageimage
 
QString lookupKey
 Lookup key used by QgsSvgCache's hashtable (relative or absolute path). Needed for removal from the hashtable. More...
 
QgsSvgCacheEntrynextEntry
 
QColor outline
 
double outlineWidth
 
QPicturepicture
 
QgsSvgCacheEntrypreviousEntry
 
double rasterScaleFactor
 
double size
 
QByteArray svgContent
 
QSizeF viewboxSize
 SVG viewbox size. More...
 
double widthScaleFactor
 

Detailed Description

Definition at line 37 of file qgssvgcache.h.

Constructor & Destructor Documentation

◆ QgsSvgCacheEntry() [1/2]

QgsSvgCacheEntry::QgsSvgCacheEntry ( )

Definition at line 39 of file qgssvgcache.cpp.

◆ QgsSvgCacheEntry() [2/2]

QgsSvgCacheEntry::QgsSvgCacheEntry ( const QString file,
double  size,
double  outlineWidth,
double  widthScaleFactor,
double  rasterScaleFactor,
const QColor fill,
const QColor outline,
const QString lookupKey = QString() 
)

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
lookupKeythe key string used in QgsSvgCache for quick lookup of this entry (relative or absolute path)

Definition at line 54 of file qgssvgcache.cpp.

◆ ~QgsSvgCacheEntry()

QgsSvgCacheEntry::~QgsSvgCacheEntry ( )

Definition at line 71 of file qgssvgcache.cpp.

Member Function Documentation

◆ dataSize()

int QgsSvgCacheEntry::dataSize ( ) const

Return memory usage in bytes.

Definition at line 83 of file qgssvgcache.cpp.

◆ operator==()

bool QgsSvgCacheEntry::operator== ( const QgsSvgCacheEntry other) const

Don't consider image, picture, last used timestamp for comparison.

Definition at line 77 of file qgssvgcache.cpp.

Member Data Documentation

◆ file

QString QgsSvgCacheEntry::file

Absolute path to SVG file.

Definition at line 55 of file qgssvgcache.h.

◆ fill

QColor QgsSvgCacheEntry::fill

Definition at line 68 of file qgssvgcache.h.

◆ image

QImage* QgsSvgCacheEntry::image

Definition at line 70 of file qgssvgcache.h.

◆ lookupKey

QString QgsSvgCacheEntry::lookupKey

Lookup key used by QgsSvgCache's hashtable (relative or absolute path). Needed for removal from the hashtable.

Definition at line 57 of file qgssvgcache.h.

◆ nextEntry

QgsSvgCacheEntry* QgsSvgCacheEntry::nextEntry

Definition at line 76 of file qgssvgcache.h.

◆ outline

QColor QgsSvgCacheEntry::outline

Definition at line 69 of file qgssvgcache.h.

◆ outlineWidth

double QgsSvgCacheEntry::outlineWidth

Definition at line 59 of file qgssvgcache.h.

◆ picture

QPicture* QgsSvgCacheEntry::picture

Definition at line 71 of file qgssvgcache.h.

◆ previousEntry

QgsSvgCacheEntry* QgsSvgCacheEntry::previousEntry

Definition at line 77 of file qgssvgcache.h.

◆ rasterScaleFactor

double QgsSvgCacheEntry::rasterScaleFactor

Definition at line 61 of file qgssvgcache.h.

◆ size

double QgsSvgCacheEntry::size

Definition at line 58 of file qgssvgcache.h.

◆ svgContent

QByteArray QgsSvgCacheEntry::svgContent

Definition at line 73 of file qgssvgcache.h.

◆ viewboxSize

QSizeF QgsSvgCacheEntry::viewboxSize

SVG viewbox size.

Note
added in QGIS 2.14

Definition at line 66 of file qgssvgcache.h.

◆ widthScaleFactor

double QgsSvgCacheEntry::widthScaleFactor

Definition at line 60 of file qgssvgcache.h.


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