2017-05-23 14:39:33 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgscurveeditorwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-02-21 16:19:10 +10:00
|
|
|
class QgsCurveEditorWidget : QWidget
|
|
|
|
{
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A widget for manipulating QgsCurveTransform curves.
|
|
|
|
|
2017-05-23 14:39:33 +02:00
|
|
|
.. versionadded:: 3.0
|
2017-02-21 16:19:10 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:39:33 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgscurveeditorwidget.h"
|
|
|
|
%End
|
2017-02-21 16:19:10 +10:00
|
|
|
public:
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsCurveEditorWidget( QWidget *parent /TransferThis/ = 0, const QgsCurveTransform &curve = QgsCurveTransform() );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsCurveEditorWidget.
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
|
|
|
|
2017-02-22 11:09:14 +10:00
|
|
|
~QgsCurveEditorWidget();
|
2017-02-21 16:19:10 +10:00
|
|
|
|
|
|
|
QgsCurveTransform curve() const;
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a curve representing the current curve from the widget.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setCurve`
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
2017-02-21 16:19:10 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setCurve( const QgsCurveTransform &curve );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the ``curve`` to show in the widget.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`curve`
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setHistogramSource( const QgsVectorLayer *layer, const QString &expression );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
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.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`minHistogramValueRange`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`maxHistogramValueRange`
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
|
|
|
|
2017-02-22 11:09:14 +10:00
|
|
|
double minHistogramValueRange() const;
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the minimum expected value for the range of values shown in the histogram.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`maxHistogramValueRange`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setMinHistogramValueRange`
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
|
|
|
|
2017-02-22 11:09:14 +10:00
|
|
|
double maxHistogramValueRange() const;
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the maximum expected value for the range of values shown in the histogram.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`minHistogramValueRange`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setMaxHistogramValueRange`
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
2017-02-22 11:09:14 +10:00
|
|
|
|
|
|
|
public slots:
|
2017-05-23 14:39:33 +02:00
|
|
|
|
2017-02-22 11:09:14 +10:00
|
|
|
void setMinHistogramValueRange( double minValueRange );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the minimum expected value for the range of values shown in the histogram.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setMaxHistogramValueRange`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`minHistogramValueRange`
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
|
|
|
|
2017-02-22 11:09:14 +10:00
|
|
|
void setMaxHistogramValueRange( double maxValueRange );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the maximum expected value for the range of values shown in the histogram.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setMinHistogramValueRange`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`maxHistogramValueRange`
|
2017-05-23 14:39:33 +02:00
|
|
|
%End
|
2017-02-21 16:19:10 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void changed();
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the widget curve changes
|
|
|
|
%End
|
2017-02-21 16:19:10 +10:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2017-09-27 05:02:34 +10:00
|
|
|
virtual void keyPressEvent( QKeyEvent *event );
|
2017-02-21 16:19:10 +10:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-02-21 16:19:10 +10:00
|
|
|
};
|
2017-05-23 14:39:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgscurveeditorwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|