Skip to content

Commit e78c20b

Browse files
author
homann
committedAug 5, 2009
Updated SIP-files after r11275 and r11276. Fix for #1220.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11277 c8812cc2-4d05-0410-92ff-de0c093fc19c

7 files changed

+11
-8
lines changed
 

‎python/core/qgscontinuouscolorrenderer.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class QgsContinuousColorRenderer : QgsRenderer
1212
virtual ~QgsContinuousColorRenderer();
1313
/**Renders the feature using the minimum and maximum value of the classification field
1414
* added in 1.2 */
15-
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected);
15+
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected, double opacity = 1.0 );
1616
/**Returns the number of the classification field*/
1717
int classificationField() const;
1818
/**Sets the id of the classification field*/

‎python/core/qgsgraduatedsymbolrenderer.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class QgsGraduatedSymbolRenderer : QgsRenderer
5252
\param p a painter (usually the one from the current map canvas)
5353
\param f a pointer to a feature to render
5454
\param t the transform object containing the information how to transform the map coordinates to screen coordinates*/
55-
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected);
55+
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected, double opacity = 1.0 );
5656

5757
/**Sets the number of the classicifation field
5858
\param field the number of the field to classify*/

‎python/core/qgsmarkercatalogue.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ public:
1919
/** Returns pixmap of the marker
2020
* \param fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg
2121
*/
22-
QImage imageMarker (QString fullName, int size, QPen pen, QBrush brush, bool qtBug = true );
22+
QImage imageMarker (QString fullName, int size, QPen pen, QBrush brush, double opacity );
2323

2424
/** Returns qpicture of the marker
2525
* \param fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg
2626
*/
27-
QPicture pictureMarker (QString fullName, int size, QPen pen, QBrush brush, bool qtBug = true );
27+
QPicture pictureMarker (QString fullName, int size, QPen pen, QBrush brush, double opacity );
2828

2929
/** Returns a pixmap given a file name of a svg marker
3030
* NOTE: this method needs to be public static for QgsMarkerDialog::visualizeMarkers */

‎python/core/qgsrenderer.sip

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ class QgsRenderer
2929
@param selected the feature is to be shown selected
3030

3131
added in 1.2 */
32-
virtual void renderFeature(QgsRenderContext &renderContext, QgsFeature& f,QImage* pic, bool selected)=0;
32+
void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected );
33+
34+
virtual void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected, double opacity ) = 0;
3335

3436
/**Reads the renderer configuration from an XML file
3537
@param rnode the Dom node to read

‎python/core/qgssinglesymbolrenderer.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class QgsSingleSymbolRenderer : QgsRenderer
1616
const QgsSymbol* symbol() const;
1717

1818
/**Renders a feature added in 1.2 */
19-
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected);
19+
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected, double opacity = 1.0 );
2020

2121
/**Reads the renderer configuration from an XML file
2222
@param rnode the Dom node to read

‎python/core/qgssymbol.sip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ class QgsSymbol
7777
QColor selectionColor = Qt::yellow,
7878
double scale = 1.0,
7979
double rotation = 0.0,
80-
double rasterScaleFactor = 1.0 );
80+
double rasterScaleFactor = 1.0
81+
double opacity = 1.0 );
8182

8283
/**Writes the contents of the symbol to a configuration file
8384
@ return true in case of success*/

‎python/core/qgsuniquevaluerenderer.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class QgsUniqueValueRenderer : QgsRenderer
1414

1515
/* render feature
1616
* added in 1.2 */
17-
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected);
17+
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected, double opacity = 1.0);
1818

1919
/**Reads the renderer configuration from an XML file
2020
@param rnode the Dom node to read

0 commit comments

Comments
 (0)
Please sign in to comment.