Class: QgsInterpolatedLineWidth¶
- class qgis.core.QgsInterpolatedLineWidth¶
Bases:
sip.wrapper
Represents a width than can vary depending on values
New 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
- 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:
elem (QDomElement) –
context (QgsReadWriteContext) –
- 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:
doc (QDomDocument) –
context (QgsReadWriteContext) –
- Return type:
QDomElement