Skip to content

Commit

Permalink
Updated SIP-files after r11275 and r11276. Fix for #1220.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11277 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Aug 5, 2009
1 parent 2c666b7 commit e78c20b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/core/qgscontinuouscolorrenderer.sip
Expand Up @@ -12,7 +12,7 @@ class QgsContinuousColorRenderer : QgsRenderer
virtual ~QgsContinuousColorRenderer();
/**Renders the feature using the minimum and maximum value of the classification field
* added in 1.2 */
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected);
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected, double opacity = 1.0 );
/**Returns the number of the classification field*/
int classificationField() const;
/**Sets the id of the classification field*/
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsgraduatedsymbolrenderer.sip
Expand Up @@ -52,7 +52,7 @@ class QgsGraduatedSymbolRenderer : QgsRenderer
\param p a painter (usually the one from the current map canvas)
\param f a pointer to a feature to render
\param t the transform object containing the information how to transform the map coordinates to screen coordinates*/
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected);
void renderFeature(QgsRenderContext &renderContext, QgsFeature& f, QImage* img, bool selected, double opacity = 1.0 );

/**Sets the number of the classicifation field
\param field the number of the field to classify*/
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgsmarkercatalogue.sip
Expand Up @@ -19,12 +19,12 @@ public:
/** Returns pixmap of the marker
* \param fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg
*/
QImage imageMarker (QString fullName, int size, QPen pen, QBrush brush, bool qtBug = true );
QImage imageMarker (QString fullName, int size, QPen pen, QBrush brush, double opacity );

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

/** Returns a pixmap given a file name of a svg marker
* NOTE: this method needs to be public static for QgsMarkerDialog::visualizeMarkers */
Expand Down
4 changes: 3 additions & 1 deletion python/core/qgsrenderer.sip
Expand Up @@ -29,7 +29,9 @@ class QgsRenderer
@param selected the feature is to be shown selected

added in 1.2 */
virtual void renderFeature(QgsRenderContext &renderContext, QgsFeature& f,QImage* pic, bool selected)=0;
void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected );

virtual void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected, double opacity ) = 0;

/**Reads the renderer configuration from an XML file
@param rnode the Dom node to read
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgssinglesymbolrenderer.sip
Expand Up @@ -16,7 +16,7 @@ class QgsSingleSymbolRenderer : QgsRenderer
const QgsSymbol* symbol() const;

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

/**Reads the renderer configuration from an XML file
@param rnode the Dom node to read
Expand Down
3 changes: 2 additions & 1 deletion python/core/qgssymbol.sip
Expand Up @@ -77,7 +77,8 @@ class QgsSymbol
QColor selectionColor = Qt::yellow,
double scale = 1.0,
double rotation = 0.0,
double rasterScaleFactor = 1.0 );
double rasterScaleFactor = 1.0
double opacity = 1.0 );

/**Writes the contents of the symbol to a configuration file
@ return true in case of success*/
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsuniquevaluerenderer.sip
Expand Up @@ -14,7 +14,7 @@ class QgsUniqueValueRenderer : QgsRenderer

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

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

0 comments on commit e78c20b

Please sign in to comment.