mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-30 00:07:09 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			131 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			131 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/raster/qgsrasterminmaxwidget.h                               *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsRasterMinMaxWidget: QWidget
 | |
| {
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsrasterminmaxwidget.h"
 | |
| %End
 | |
|   public:
 | |
| 
 | |
|     QgsRasterMinMaxWidget( QgsRasterLayer *layer, QWidget *parent /TransferThis/ = 0 );
 | |
| %Docstring
 | |
| Constructor for QgsRasterMinMaxWidget
 | |
| %End
 | |
| 
 | |
|     void setExtent( const QgsRectangle &extent );
 | |
| %Docstring
 | |
| Sets the extent to use for minimum and maximum value calculation.
 | |
| 
 | |
| :param extent: extent in raster layer's CRS
 | |
| 
 | |
| .. note::
 | |
| 
 | |
|    if a map canvas is set using :py:func:`~QgsRasterMinMaxWidget.setMapCanvas`, its extent will take
 | |
|    precedence over any extent set using this method.
 | |
| %End
 | |
| 
 | |
|     void setMapCanvas( QgsMapCanvas *canvas );
 | |
| %Docstring
 | |
| Sets the map canvas associated with the widget. This allows the widget to retrieve the current
 | |
| map extent from the canvas. If a canvas is set it will take precedence over any extent
 | |
| set from calling :py:func:`~QgsRasterMinMaxWidget.setExtent`.
 | |
| 
 | |
| :param canvas: map canvas
 | |
| 
 | |
| .. seealso:: :py:func:`mapCanvas`
 | |
| 
 | |
| .. versionadded:: 2.16
 | |
| %End
 | |
| 
 | |
|     QgsMapCanvas *mapCanvas();
 | |
| %Docstring
 | |
| Returns the map canvas associated with the widget.
 | |
| 
 | |
| .. seealso:: :py:func:`setMapCanvas`
 | |
| 
 | |
| .. versionadded:: 2.16
 | |
| %End
 | |
| 
 | |
|     void setBands( const QList<int> &bands );
 | |
| 
 | |
|     QgsRectangle extent();
 | |
| %Docstring
 | |
| Returns the extent selected by the user.
 | |
| Either an empty extent for 'full' or the current visible extent.
 | |
| %End
 | |
| 
 | |
|     int sampleSize();
 | |
| %Docstring
 | |
| Returns the selected sample size.
 | |
| %End
 | |
| 
 | |
|     void setFromMinMaxOrigin( const QgsRasterMinMaxOrigin & );
 | |
| %Docstring
 | |
| Sets the "source" of min/max values.
 | |
| %End
 | |
| 
 | |
|     QgsRasterMinMaxOrigin minMaxOrigin();
 | |
| %Docstring
 | |
| Returns a :py:class:`QgsRasterMinMaxOrigin` object with the widget values.
 | |
| %End
 | |
| 
 | |
|     void hideUpdatedExtent();
 | |
| %Docstring
 | |
| Hide updated extent choice
 | |
| %End
 | |
| 
 | |
|     void doComputations();
 | |
| %Docstring
 | |
| Load programmatically with current values
 | |
| %End
 | |
| 
 | |
|     void userHasSetManualMinMaxValues();
 | |
| %Docstring
 | |
| Uncheck cumulative cut, min/max, std-dev radio buttons
 | |
| %End
 | |
| 
 | |
|     bool isCollapsed() const;
 | |
| %Docstring
 | |
| Returns if the widget is collaped.
 | |
| %End
 | |
| 
 | |
|     void setCollapsed( bool b );
 | |
| %Docstring
 | |
| Sets collapsed state of widget
 | |
| %End
 | |
| 
 | |
|   signals:
 | |
| 
 | |
|     void widgetChanged();
 | |
| %Docstring
 | |
| Emitted when something on the widget has changed.
 | |
| All widgets will fire this event to notify of an internal change.
 | |
| %End
 | |
| 
 | |
|     void load( int bandNo, double min, double max );
 | |
| %Docstring
 | |
| signal emitted when new min/max values are computed from statistics.
 | |
| %End
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/raster/qgsrasterminmaxwidget.h                               *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |