Class: QgsInterpolatedLineWidth

class qgis.core.QgsInterpolatedLineWidth

Bases: sip.wrapper

Represents a width than can vary depending on values

New 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

fixedStrokeWidth(self) float

Returns the fixed width

Return type:

float

ignoreOutOfRange(self) bool

Returns whether the variable width ignores out of range value

Return type:

bool

isVariableWidth(self) bool

Returns whether the width is variable

Return type:

bool

maximumValue(self) float

Returns the maximum value used to defined the variable width

Return type:

float

maximumWidth(self) float

Returns the maximum width used to defined the variable width

Return type:

float

minimumValue(self) float

Returns the minimum value used to defined the variable width

Return type:

float

minimumWidth(self) float

Returns the minimum width used to defined the variable width

Return type:

float

readXml(self, elem: QDomElement, context: QgsReadWriteContext)

Reads configuration from the given DOM element

Parameters:
setFixedStrokeWidth(self, fixedWidth: float)

Sets the fixed width

Parameters:

fixedWidth (float) –

setIgnoreOutOfRange(self, ignoreOutOfRange: bool)

Sets whether the variable width ignores out of range value

Parameters:

ignoreOutOfRange (bool) –

setIsVariableWidth(self, isVariableWidth: bool)

Returns whether the width is variable

Parameters:

isVariableWidth (bool) –

setMaximumValue(self, maximumValue: float)

Sets the maximum value used to defined the variable width

Parameters:

maximumValue (float) –

setMaximumWidth(self, maximumWidth: float)

Sets the maximum width used to defined the variable width

Parameters:

maximumWidth (float) –

setMinimumValue(self, minimumValue: float)

Sets the minimum value used to defined the variable width

Parameters:

minimumValue (float) –

setMinimumWidth(self, minimumWidth: float)

Sets the minimum width used to defined the variable width

Parameters:

minimumWidth (float) –

setUseAbsoluteValue(self, useAbsoluteValue: bool)

Sets whether absolute value are used as input

Parameters:

useAbsoluteValue (bool) –

strokeWidth(self, value: float) float

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

Parameters:

value (float) –

Return type:

float

useAbsoluteValue(self) bool

Returns whether absolute value are used as input

Return type:

bool

writeXml(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement

Writes configuration to a new DOM element

Parameters:
Return type:

QDomElement