QGIS API Documentation  2.99.0-Master (01468d0)
Public Member Functions | Public Attributes | List of all members
QgsSvgCacheEntry Class Reference

#include <qgssvgcache.h>

Public Member Functions

 QgsSvgCacheEntry ()
 
 QgsSvgCacheEntry (const QString &path, double size, double strokeWidth, double widthScaleFactor, const QColor &fill, const QColor &stroke)
 Constructor. More...
 
 QgsSvgCacheEntry (const QgsSvgCacheEntry &rh)=delete
 QgsSvgCacheEntry cannot be copied. More...
 
 ~QgsSvgCacheEntry ()
 
int dataSize () const
 Return memory usage in bytes. More...
 
QgsSvgCacheEntryoperator= (const QgsSvgCacheEntry &rh)=delete
 QgsSvgCacheEntry cannot be copied. More...
 
bool operator== (const QgsSvgCacheEntry &other) const
 Don't consider image, picture, last used timestamp for comparison. More...
 

Public Attributes

QColor fill
 
QImage * image = nullptr
 
QgsSvgCacheEntrynextEntry = nullptr
 
QString path
 Absolute path to SVG file. More...
 
QPicture * picture = nullptr
 
QgsSvgCacheEntrypreviousEntry = nullptr
 
double size
 
QColor stroke
 
double strokeWidth
 
QByteArray svgContent
 
QSizeF viewboxSize
 SVG viewbox size. More...
 
double widthScaleFactor
 

Detailed Description

Definition at line 40 of file qgssvgcache.h.

Constructor & Destructor Documentation

◆ QgsSvgCacheEntry() [1/3]

QgsSvgCacheEntry::QgsSvgCacheEntry ( )

Definition at line 39 of file qgssvgcache.cpp.

◆ QgsSvgCacheEntry() [2/3]

QgsSvgCacheEntry::QgsSvgCacheEntry ( const QString &  path,
double  size,
double  strokeWidth,
double  widthScaleFactor,
const QColor &  fill,
const QColor &  stroke 
)

Constructor.

Parameters
pathAbsolute path to SVG file (relative paths are not resolved).
size
strokeWidthwidth of stroke
widthScaleFactorwidth scale factor
fillcolor of fill
strokecolor of stroke

Definition at line 50 of file qgssvgcache.cpp.

◆ ~QgsSvgCacheEntry()

QgsSvgCacheEntry::~QgsSvgCacheEntry ( )

Definition at line 62 of file qgssvgcache.cpp.

◆ QgsSvgCacheEntry() [3/3]

QgsSvgCacheEntry::QgsSvgCacheEntry ( const QgsSvgCacheEntry rh)
delete

QgsSvgCacheEntry cannot be copied.

Member Function Documentation

◆ dataSize()

int QgsSvgCacheEntry::dataSize ( ) const

Return memory usage in bytes.

Definition at line 74 of file qgssvgcache.cpp.

◆ operator=()

QgsSvgCacheEntry& QgsSvgCacheEntry::operator= ( const QgsSvgCacheEntry rh)
delete

QgsSvgCacheEntry cannot be copied.

◆ operator==()

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

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

Definition at line 68 of file qgssvgcache.cpp.

Member Data Documentation

◆ fill

QColor QgsSvgCacheEntry::fill

Definition at line 72 of file qgssvgcache.h.

◆ image

QImage* QgsSvgCacheEntry::image = nullptr

Definition at line 74 of file qgssvgcache.h.

◆ nextEntry

QgsSvgCacheEntry* QgsSvgCacheEntry::nextEntry = nullptr

Definition at line 80 of file qgssvgcache.h.

◆ path

QString QgsSvgCacheEntry::path

Absolute path to SVG file.

Definition at line 62 of file qgssvgcache.h.

◆ picture

QPicture* QgsSvgCacheEntry::picture = nullptr

Definition at line 75 of file qgssvgcache.h.

◆ previousEntry

QgsSvgCacheEntry* QgsSvgCacheEntry::previousEntry = nullptr

Definition at line 81 of file qgssvgcache.h.

◆ size

double QgsSvgCacheEntry::size

Definition at line 63 of file qgssvgcache.h.

◆ stroke

QColor QgsSvgCacheEntry::stroke

Definition at line 73 of file qgssvgcache.h.

◆ strokeWidth

double QgsSvgCacheEntry::strokeWidth

Definition at line 64 of file qgssvgcache.h.

◆ svgContent

QByteArray QgsSvgCacheEntry::svgContent

Definition at line 77 of file qgssvgcache.h.

◆ viewboxSize

QSizeF QgsSvgCacheEntry::viewboxSize

SVG viewbox size.

Since
QGIS 2.14

Definition at line 70 of file qgssvgcache.h.

◆ widthScaleFactor

double QgsSvgCacheEntry::widthScaleFactor

Definition at line 65 of file qgssvgcache.h.


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