Class: QgsCurveEditorWidget¶
A widget for manipulating QgsCurveTransform
curves.
Class Hierarchy¶
Base classes¶
Methods
Returns a curve representing the current curve from the widget. |
|
Returns the maximum expected value for the range of values shown in the histogram. |
|
Returns the minimum expected value for the range of values shown in the histogram. |
|
Sets the curve to show in the widget. |
|
Sets a layer and expression source for values to show in a histogram behind the curve. |
|
Sets the maximum expected value for the range of values shown in the histogram. |
|
Sets the minimum expected value for the range of values shown in the histogram. |
Signals
Emitted when the widget curve changes |
- class qgis.gui.QgsCurveEditorWidget[source]¶
Bases:
QWidget
- __init__(parent: QWidget | None = None, curve: QgsCurveTransform = QgsCurveTransform())
Constructor for QgsCurveEditorWidget.
- Parameters:
parent (Optional[QWidget] = None)
curve (
QgsCurveTransform
= QgsCurveTransform())
- curve(self) QgsCurveTransform [source]¶
Returns a curve representing the current curve from the widget.
See also
- Return type:
- maxHistogramValueRange(self) float [source]¶
Returns the maximum expected value for the range of values shown in the histogram.
See also
See also
- Return type:
float
- minHistogramValueRange(self) float [source]¶
Returns the minimum expected value for the range of values shown in the histogram.
See also
See also
- Return type:
float
- setCurve(self, curve: QgsCurveTransform)[source]¶
Sets the
curve
to show in the widget.See also
- Parameters:
curve (QgsCurveTransform)
- setHistogramSource(self, layer: QgsVectorLayer | None, expression: str | None)[source]¶
Sets a
layer
andexpression
source for values to show in a histogram behind the curve. The histogram is generated in a background thread to keep the widget responsive.See also
See also
- Parameters:
layer (Optional[QgsVectorLayer])
expression (Optional[str])
- setMaxHistogramValueRange(self, maxValueRange: float)[source]¶
Sets the maximum expected value for the range of values shown in the histogram.
See also
See also
- Parameters:
maxValueRange (float)