Class: QgsInterpolatedLineWidth

Represents a width that can vary depending on values.

Added in version 3.14.

Methods

fixedStrokeWidth

Returns the fixed width

ignoreOutOfRange

Returns whether the variable width ignores out of range value

isVariableWidth

Returns whether the width is variable

maximumValue

Returns the maximum value used to defined the variable width

maximumWidth

Returns the maximum width used to defined the variable width

minimumValue

Returns the minimum value used to defined the variable width

minimumWidth

Returns the minimum width used to defined the variable width

readXml

Reads configuration from the given DOM element

setFixedStrokeWidth

Sets the fixed width

setIgnoreOutOfRange

Sets whether the variable width ignores out of range value

setIsVariableWidth

Returns whether the width is variable

setMaximumValue

Sets the maximum value used to defined the variable width

setMaximumWidth

Sets the maximum width used to defined the variable width

setMinimumValue

Sets the minimum value used to defined the variable width

setMinimumWidth

Sets the minimum width used to defined the variable width

setUseAbsoluteValue

Sets whether absolute value are used as input

strokeWidth

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

useAbsoluteValue

Returns whether absolute value are used as input

writeXml

Writes configuration to a new DOM element

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