mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
 | 
						|
class QgsRenderContext
 | 
						|
{
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include <qgsrendercontext.h>
 | 
						|
%End
 | 
						|
 | 
						|
  public:
 | 
						|
    QgsRenderContext();
 | 
						|
    ~QgsRenderContext();
 | 
						|
 | 
						|
    //getters
 | 
						|
 | 
						|
    QPainter* painter();
 | 
						|
    const QPainter* constPainter() const;
 | 
						|
 | 
						|
    const QgsCoordinateTransform* coordinateTransform() const;
 | 
						|
 | 
						|
    const QgsRectangle& extent() const;
 | 
						|
 | 
						|
    const QgsMapToPixel& mapToPixel() const;
 | 
						|
 | 
						|
    double scaleFactor() const;
 | 
						|
 | 
						|
    double rasterScaleFactor() const;
 | 
						|
 | 
						|
    bool renderingStopped() const;
 | 
						|
 | 
						|
    bool forceVectorOutput() const;
 | 
						|
 | 
						|
    bool drawEditingInformation() const;
 | 
						|
 | 
						|
    double rendererScale() const;
 | 
						|
 | 
						|
    //! Added in QGIS v1.4
 | 
						|
    QgsLabelingEngineInterface* labelingEngine();
 | 
						|
 | 
						|
    //! Added in QGIS v2.0
 | 
						|
    QColor selectionColor() const;
 | 
						|
 | 
						|
    //setters
 | 
						|
 | 
						|
    /**Sets coordinate transformation. QgsRenderContext does not take ownership*/
 | 
						|
    void setCoordinateTransform( const QgsCoordinateTransform* t );
 | 
						|
    void setMapToPixel( const QgsMapToPixel& mtp );
 | 
						|
    void setExtent( const QgsRectangle& extent );
 | 
						|
    void setDrawEditingInformation( bool b );
 | 
						|
    void setRenderingStopped( bool stopped );
 | 
						|
    void setScaleFactor( double factor );
 | 
						|
    void setRasterScaleFactor( double factor );
 | 
						|
    void setRendererScale( double scale );
 | 
						|
    void setPainter( QPainter* p );
 | 
						|
    //! Added in QGIS v1.5
 | 
						|
    void setForceVectorOutput( bool force );
 | 
						|
    //! Added in QGIS v1.4
 | 
						|
    void setLabelingEngine(QgsLabelingEngineInterface* iface);
 | 
						|
    //! Added in QGIS v2.0
 | 
						|
    void setSelectionColor( const QColor& color );
 | 
						|
};
 |