Class: QgsInterpolatedLineWidth

Represents a width that can vary depending on values.

Added in version 3.14.

class qgis.core.QgsInterpolatedLineWidth[source]

Bases: object

fixedStrokeWidth(self) float[source]

Returns the fixed width

Return type:

float

ignoreOutOfRange(self) bool[source]

Returns whether the variable width ignores out of range value

Return type:

bool

isVariableWidth(self) bool[source]

Returns whether the width is variable

Return type:

bool

maximumValue(self) float[source]

Returns the maximum value used to defined the variable width

Return type:

float

maximumWidth(self) float[source]

Returns the maximum width used to defined the variable width

Return type:

float

minimumValue(self) float[source]

Returns the minimum value used to defined the variable width

Return type:

float

minimumWidth(self) float[source]

Returns the minimum width used to defined the variable width

Return type:

float

readXml(self, elem: QDomElement, context: QgsReadWriteContext)[source]

Reads configuration from the given DOM element

Parameters:
setFixedStrokeWidth(self, fixedWidth: float)[source]

Sets the fixed width

Parameters:

fixedWidth (float)

setIgnoreOutOfRange(self, ignoreOutOfRange: bool)[source]

Sets whether the variable width ignores out of range value

Parameters:

ignoreOutOfRange (bool)

setIsVariableWidth(self, isVariableWidth: bool)[source]

Returns whether the width is variable

Parameters:

isVariableWidth (bool)

setMaximumValue(self, maximumValue: float)[source]

Sets the maximum value used to defined the variable width

Parameters:

maximumValue (float)

setMaximumWidth(self, maximumWidth: float)[source]

Sets the maximum width used to defined the variable width

Parameters:

maximumWidth (float)

setMinimumValue(self, minimumValue: float)[source]

Sets the minimum value used to defined the variable width

Parameters:

minimumValue (float)

setMinimumWidth(self, minimumWidth: float)[source]

Sets the minimum width used to defined the variable width

Parameters:

minimumWidth (float)

setUseAbsoluteValue(self, useAbsoluteValue: bool)[source]

Sets whether absolute value are used as input

Parameters:

useAbsoluteValue (bool)

strokeWidth(self, value: float) float[source]

Returns the variable width depending on value, if not varying returns the fixed width

Parameters:

value (float)

Return type:

float

useAbsoluteValue(self) bool[source]

Returns whether absolute value are used as input

Return type:

bool

writeXml(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement[source]

Writes configuration to a new DOM element

Parameters:
Return type:

QDomElement