mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	For the c++ api dox this expands to "\c nullptr" (the \c directive indicates a code literal value), and for sipify/Python it expands to ``None`` (`` is sphinx annotation for literal values) Makes for nicer dox for both c++ and Python!
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/raster/qgsrendererrasterpropertieswidget.h                   *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsRendererRasterPropertiesWidget : QgsMapLayerConfigWidget
 | |
| {
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsrendererrasterpropertieswidget.h"
 | |
| %End
 | |
|   public:
 | |
| 
 | |
|     QgsRendererRasterPropertiesWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent = 0 );
 | |
| %Docstring
 | |
| A widget to hold the renderer properties for a raster layer.
 | |
| 
 | |
| :param layer: The raster layer to style
 | |
| :param canvas: The canvas object used to calculate the max and min values from the extent.
 | |
| :param parent: Parent object
 | |
| %End
 | |
| 
 | |
|     void setMapCanvas( QgsMapCanvas *canvas );
 | |
| %Docstring
 | |
| Sets the map canvas associated with the dialog. This allows the widget to retrieve the current
 | |
| map scale and other properties from the canvas.
 | |
| 
 | |
| :param canvas: map canvas
 | |
| 
 | |
| .. versionadded:: 2.12
 | |
| %End
 | |
| 
 | |
|     QgsRasterRendererWidget *currentRenderWidget();
 | |
| %Docstring
 | |
| Returns the active render widget. Can be ``None``.
 | |
| %End
 | |
| 
 | |
|   public slots:
 | |
|     void rendererChanged();
 | |
| %Docstring
 | |
| called when user changes renderer type
 | |
| %End
 | |
| 
 | |
|     virtual void apply();
 | |
| 
 | |
| %Docstring
 | |
| Apply the changes from the dialog to the layer.
 | |
| %End
 | |
| 
 | |
|     void syncToLayer( QgsRasterLayer *layer );
 | |
| %Docstring
 | |
| Sync the widget to the given layer.
 | |
| 
 | |
| :param layer: The layer to use for the widget
 | |
| %End
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/raster/qgsrendererrasterpropertieswidget.h                   *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |