QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
A widget for manipulating QgsCurveTransform curves. More...
#include <qgscurveeditorwidget.h>
Public Slots | |
void | setMaxHistogramValueRange (double maxValueRange) |
Sets the maximum expected value for the range of values shown in the histogram. | |
void | setMinHistogramValueRange (double minValueRange) |
Sets the minimum expected value for the range of values shown in the histogram. | |
Signals | |
void | changed () |
Emitted when the widget curve changes. | |
Public Member Functions | |
QgsCurveEditorWidget (QWidget *parent=nullptr, const QgsCurveTransform &curve=QgsCurveTransform()) | |
Constructor for QgsCurveEditorWidget. | |
~QgsCurveEditorWidget () override | |
QgsCurveTransform | curve () const |
Returns a curve representing the current curve from the widget. | |
double | maxHistogramValueRange () const |
Returns the maximum expected value for the range of values shown in the histogram. | |
double | minHistogramValueRange () const |
Returns the minimum expected value for the range of values shown in the histogram. | |
void | setCurve (const QgsCurveTransform &curve) |
Sets the curve to show in the widget. | |
void | setHistogramSource (const QgsVectorLayer *layer, const QString &expression) |
Sets a layer and expression source for values to show in a histogram behind the curve. | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
A widget for manipulating QgsCurveTransform curves.
Definition at line 142 of file qgscurveeditorwidget.h.
QgsCurveEditorWidget::QgsCurveEditorWidget | ( | QWidget * | parent = nullptr , |
const QgsCurveTransform & | curve = QgsCurveTransform() |
||
) |
Constructor for QgsCurveEditorWidget.
Definition at line 43 of file qgscurveeditorwidget.cpp.
|
override |
Definition at line 90 of file qgscurveeditorwidget.cpp.
|
signal |
Emitted when the widget curve changes.
|
inline |
Returns a curve representing the current curve from the widget.
Definition at line 159 of file qgscurveeditorwidget.h.
|
overrideprotected |
Definition at line 154 of file qgscurveeditorwidget.cpp.
|
inline |
Returns the maximum expected value for the range of values shown in the histogram.
Definition at line 188 of file qgscurveeditorwidget.h.
|
inline |
Returns the minimum expected value for the range of values shown in the histogram.
Definition at line 181 of file qgscurveeditorwidget.h.
void QgsCurveEditorWidget::setCurve | ( | const QgsCurveTransform & | curve | ) |
Sets the curve to show in the widget.
Definition at line 100 of file qgscurveeditorwidget.cpp.
void QgsCurveEditorWidget::setHistogramSource | ( | const QgsVectorLayer * | layer, |
const QString & | expression | ||
) |
Sets a layer and expression source for values to show in a histogram behind the curve.
The histogram is generated in a background thread to keep the widget responsive.
Definition at line 107 of file qgscurveeditorwidget.cpp.
|
slot |
Sets the maximum expected value for the range of values shown in the histogram.
Definition at line 148 of file qgscurveeditorwidget.cpp.
|
slot |
Sets the minimum expected value for the range of values shown in the histogram.
Definition at line 142 of file qgscurveeditorwidget.cpp.