QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
QgsCurveEditorWidget Class Reference

A widget for manipulating QgsCurveTransform curves. More...

#include <qgscurveeditorwidget.h>

Inheritance diagram for QgsCurveEditorWidget:
Inheritance graph
[legend]

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
 

Detailed Description

A widget for manipulating QgsCurveTransform curves.

Definition at line 142 of file qgscurveeditorwidget.h.

Constructor & Destructor Documentation

◆ QgsCurveEditorWidget()

QgsCurveEditorWidget::QgsCurveEditorWidget ( QWidget *  parent = nullptr,
const QgsCurveTransform curve = QgsCurveTransform() 
)

Constructor for QgsCurveEditorWidget.

Definition at line 43 of file qgscurveeditorwidget.cpp.

◆ ~QgsCurveEditorWidget()

QgsCurveEditorWidget::~QgsCurveEditorWidget ( )
override

Definition at line 90 of file qgscurveeditorwidget.cpp.

Member Function Documentation

◆ changed

void QgsCurveEditorWidget::changed ( )
signal

Emitted when the widget curve changes.

◆ curve()

QgsCurveTransform QgsCurveEditorWidget::curve ( ) const
inline

Returns a curve representing the current curve from the widget.

See also
setCurve()

Definition at line 159 of file qgscurveeditorwidget.h.

◆ keyPressEvent()

void QgsCurveEditorWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 154 of file qgscurveeditorwidget.cpp.

◆ maxHistogramValueRange()

double QgsCurveEditorWidget::maxHistogramValueRange ( ) const
inline

Returns the maximum expected value for the range of values shown in the histogram.

See also
minHistogramValueRange()
setMaxHistogramValueRange()

Definition at line 188 of file qgscurveeditorwidget.h.

◆ minHistogramValueRange()

double QgsCurveEditorWidget::minHistogramValueRange ( ) const
inline

Returns the minimum expected value for the range of values shown in the histogram.

See also
maxHistogramValueRange()
setMinHistogramValueRange()

Definition at line 181 of file qgscurveeditorwidget.h.

◆ setCurve()

void QgsCurveEditorWidget::setCurve ( const QgsCurveTransform curve)

Sets the curve to show in the widget.

See also
curve()

Definition at line 100 of file qgscurveeditorwidget.cpp.

◆ setHistogramSource()

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.

See also
minHistogramValueRange()
maxHistogramValueRange()

Definition at line 107 of file qgscurveeditorwidget.cpp.

◆ setMaxHistogramValueRange

void QgsCurveEditorWidget::setMaxHistogramValueRange ( double  maxValueRange)
slot

Sets the maximum expected value for the range of values shown in the histogram.

See also
setMinHistogramValueRange()
maxHistogramValueRange()

Definition at line 148 of file qgscurveeditorwidget.cpp.

◆ setMinHistogramValueRange

void QgsCurveEditorWidget::setMinHistogramValueRange ( double  minValueRange)
slot

Sets the minimum expected value for the range of values shown in the histogram.

See also
setMaxHistogramValueRange()
minHistogramValueRange()

Definition at line 142 of file qgscurveeditorwidget.cpp.


The documentation for this class was generated from the following files: