QGIS API Documentation
3.0.2-Girona (307d082)
|
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. More... | |
void | setMinHistogramValueRange (double minValueRange) |
Sets the minimum expected value for the range of values shown in the histogram. More... | |
Signals | |
void | changed () |
Emitted when the widget curve changes. More... | |
Public Member Functions | |
QgsCurveEditorWidget (QWidget *parent=nullptr, const QgsCurveTransform &curve=QgsCurveTransform()) | |
Constructor for QgsCurveEditorWidget. More... | |
~QgsCurveEditorWidget () override | |
QgsCurveTransform | curve () const |
Returns a curve representing the current curve from the widget. More... | |
double | maxHistogramValueRange () const |
Returns the maximum expected value for the range of values shown in the histogram. More... | |
double | minHistogramValueRange () const |
Returns the minimum expected value for the range of values shown in the histogram. More... | |
void | setCurve (const QgsCurveTransform &curve) |
Sets the curve to show in the widget. More... | |
void | setHistogramSource (const QgsVectorLayer *layer, const QString &expression) |
Sets a layer and expression source for values to show in a histogram behind the curve. More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
A widget for manipulating QgsCurveTransform curves.
Definition at line 143 of file qgscurveeditorwidget.h.
QgsCurveEditorWidget::QgsCurveEditorWidget | ( | QWidget * | parent = nullptr , |
const QgsCurveTransform & | curve = QgsCurveTransform() |
||
) |
Constructor for QgsCurveEditorWidget.
Definition at line 40 of file qgscurveeditorwidget.cpp.
|
override |
Definition at line 87 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 160 of file qgscurveeditorwidget.h.
|
overrideprotected |
Definition at line 151 of file qgscurveeditorwidget.cpp.
|
inline |
Returns the maximum expected value for the range of values shown in the histogram.
Definition at line 189 of file qgscurveeditorwidget.h.
|
inline |
Returns the minimum expected value for the range of values shown in the histogram.
Definition at line 182 of file qgscurveeditorwidget.h.
void QgsCurveEditorWidget::setCurve | ( | const QgsCurveTransform & | curve | ) |
Sets the curve to show in the widget.
Definition at line 97 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 104 of file qgscurveeditorwidget.cpp.
|
slot |
Sets the maximum expected value for the range of values shown in the histogram.
Definition at line 145 of file qgscurveeditorwidget.cpp.
|
slot |
Sets the minimum expected value for the range of values shown in the histogram.
Definition at line 139 of file qgscurveeditorwidget.cpp.