QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Contains settings relating to symbol buffers, which draw a "halo" effect around the symbol. More...
#include <qgssymbol.h>
Public Member Functions | |
QgsSymbolBufferSettings () | |
QgsSymbolBufferSettings (const QgsSymbolBufferSettings &other) | |
~QgsSymbolBufferSettings () | |
bool | enabled () const |
Returns whether the buffer is enabled. | |
QgsFillSymbol * | fillSymbol () const |
Returns the fill symbol used to render the buffer. | |
Qt::PenJoinStyle | joinStyle () const |
Returns the buffer join style. | |
QgsSymbolBufferSettings & | operator= (const QgsSymbolBufferSettings &) |
void | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
Reads the buffer settings from an XML element. | |
void | setEnabled (bool enabled) |
Sets whether the symbol buffer will be drawn. | |
void | setFillSymbol (QgsFillSymbol *symbol) |
Sets the fill symbol used to render the buffer. | |
void | setJoinStyle (Qt::PenJoinStyle style) |
Sets the join style used for drawing the buffer. | |
void | setSize (double size) |
Sets the size of the buffer. | |
void | setSizeMapUnitScale (const QgsMapUnitScale &scale) |
Sets the map unit scale object for the buffer size. | |
void | setSizeUnit (Qgis::RenderUnit unit) |
Sets the unit used for the buffer size. | |
double | size () const |
Returns the size of the buffer. | |
QgsMapUnitScale | sizeMapUnitScale () const |
Returns the map unit scale object for the buffer size. | |
Qgis::RenderUnit | sizeUnit () const |
Returns the units for the buffer size. | |
void | writeXml (QDomElement &element, const QgsReadWriteContext &context) const |
Writes the buffer settings to an XML element. | |
Contains settings relating to symbol buffers, which draw a "halo" effect around the symbol.
Definition at line 96 of file qgssymbol.h.
QgsSymbolBufferSettings::QgsSymbolBufferSettings | ( | ) |
Definition at line 71 of file qgssymbol.cpp.
|
default |
QgsSymbolBufferSettings::QgsSymbolBufferSettings | ( | const QgsSymbolBufferSettings & | other | ) |
Definition at line 76 of file qgssymbol.cpp.
|
inline |
Returns whether the buffer is enabled.
Definition at line 110 of file qgssymbol.h.
QgsFillSymbol * QgsSymbolBufferSettings::fillSymbol | ( | ) | const |
Returns the fill symbol used to render the buffer.
Ownership is not transferred.
Definition at line 98 of file qgssymbol.cpp.
|
inline |
QgsSymbolBufferSettings & QgsSymbolBufferSettings::operator= | ( | const QgsSymbolBufferSettings & | other | ) |
Definition at line 87 of file qgssymbol.cpp.
void QgsSymbolBufferSettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads the buffer settings from an XML element.
Definition at line 129 of file qgssymbol.cpp.
|
inline |
Sets whether the symbol buffer will be drawn.
Definition at line 116 of file qgssymbol.h.
void QgsSymbolBufferSettings::setFillSymbol | ( | QgsFillSymbol * | symbol | ) |
Sets the fill symbol used to render the buffer.
Ownership of symbol is transferred to the buffer.
Definition at line 103 of file qgssymbol.cpp.
|
inline |
Sets the join style used for drawing the buffer.
Definition at line 180 of file qgssymbol.h.
|
inline |
Sets the size of the buffer.
The size units are specified using setSizeUnit().
Definition at line 133 of file qgssymbol.h.
|
inline |
Sets the map unit scale object for the buffer size.
This is only used if the buffer size is set to QgsUnitTypes::RenderMapUnit.
Definition at line 168 of file qgssymbol.h.
|
inline |
Sets the unit used for the buffer size.
Definition at line 149 of file qgssymbol.h.
|
inline |
Returns the size of the buffer.
Definition at line 123 of file qgssymbol.h.
|
inline |
Returns the map unit scale object for the buffer size.
This is only used if the buffer size is set to QgsUnitTypes::RenderMapUnit.
Definition at line 158 of file qgssymbol.h.
|
inline |
Returns the units for the buffer size.
Definition at line 141 of file qgssymbol.h.
void QgsSymbolBufferSettings::writeXml | ( | QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) | const |
Writes the buffer settings to an XML element.
Definition at line 110 of file qgssymbol.cpp.