Class: QgsInterpolatedLineWidth¶
Represents a width that can vary depending on values.
Added in version 3.14.
Methods
Returns the fixed width |
|
Returns whether the variable width ignores out of range value |
|
Returns whether the width is variable |
|
Returns the maximum value used to defined the variable width |
|
Returns the maximum width used to defined the variable width |
|
Returns the minimum value used to defined the variable width |
|
Returns the minimum width used to defined the variable width |
|
Reads configuration from the given DOM element |
|
Sets the fixed width |
|
Sets whether the variable width ignores out of range value |
|
Returns whether the width is variable |
|
Sets the maximum value used to defined the variable width |
|
Sets the maximum width used to defined the variable width |
|
Sets the minimum value used to defined the variable width |
|
Sets the minimum width used to defined the variable width |
|
Sets whether absolute value are used as input |
|
Returns the variable width depending on value, if not varying returns the fixed width |
|
Returns whether absolute value are used as input |
|
Writes configuration to a new DOM element |
- class qgis.core.QgsInterpolatedLineWidth[source]¶
Bases:
object
- ignoreOutOfRange(self) bool [source]¶
Returns whether the variable width ignores out of range value
- 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:
elem (QDomElement)
context (QgsReadWriteContext)
- 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:
doc (QDomDocument)
context (QgsReadWriteContext)
- Return type:
QDomElement