Skip to content

Commit e46a67a

Browse files
committedMar 14, 2013
fix QgsRasterInterface sip bindings
1 parent 8a434b2 commit e46a67a

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed
 

‎python/core/raster/qgsrasterinterface.sip

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,19 @@ class QgsRasterInterface
192192
const QgsRectangle & theExtent = QgsRectangle(),
193193
int theSampleSize = 0 );
194194

195+
/** Switch on (and clear old statistics) or off collection of statistics */
196+
//void setStatsOn( bool on );
197+
198+
/** Last total time (for allbands) consumed by this interface for call to block()
199+
* If cumulative is true, the result includes also time spent in all preceding
200+
* interfaces. If cumulative is false, only time consumed by this interface is
201+
* returned. */
202+
//double time( bool cumulative = false );
203+
204+
/** Write base class members to xml. */
205+
virtual void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
206+
/** Sets base class members from xml. Usually called from create() methods of subclasses */
207+
virtual void readXML( const QDomElement& filterElem );
208+
195209
};
196210

‎src/core/raster/qgsrasterinterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ class CORE_EXPORT QgsRasterInterface
261261
//double time( bool cumulative = false );
262262

263263
/** Write base class members to xml. */
264-
virtual void writeXML( QDomDocument& doc, QDomElement& parentElem ) { Q_UNUSED( doc ); Q_UNUSED( parentElem ); };
264+
virtual void writeXML( QDomDocument& doc, QDomElement& parentElem ) const { Q_UNUSED( doc ); Q_UNUSED( parentElem ); }
265265
/** Sets base class members from xml. Usually called from create() methods of subclasses */
266-
virtual void readXML( const QDomElement& filterElem ) { Q_UNUSED( filterElem ); };
266+
virtual void readXML( const QDomElement& filterElem ) { Q_UNUSED( filterElem ); }
267267

268268
protected:
269269
// QgsRasterInterface used as input

0 commit comments

Comments
 (0)
Please sign in to comment.