Skip to content

Commit

Permalink
mark legacy raster function deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 28, 2012
1 parent db91ea9 commit 416cc51
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -1388,6 +1388,8 @@ void QgsRasterLayerProperties::pixelSelected( const QgsPoint& canvasPoint )
}
}
}
#else
Q_UNUSED( canvasPoint );
#endif //0
}

Expand Down
22 changes: 11 additions & 11 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -1068,7 +1068,7 @@ QPixmap QgsRasterLayer::legendAsPixmap()
* @param theWithNameFlag - boolena flag whether to overlay the legend name in the text
* @return a pixmap representing a legend image
*/
QPixmap QgsRasterLayer::legendAsPixmap( bool theWithNameFlag )
QPixmap QgsRasterLayer::legendAsPixmap( bool )
{
return QPixmap();
} //end of legendAsPixmap function
Expand All @@ -1077,7 +1077,7 @@ QPixmap QgsRasterLayer::legendAsPixmap( bool theWithNameFlag )
* \param theLabelCount number of vertical labels to display
* @return a pixmap representing a legend image
*/
QPixmap QgsRasterLayer::legendAsPixmap( int theLabelCount )
QPixmap QgsRasterLayer::legendAsPixmap( int )
{
return QPixmap();
}//end of getDetailedLegend
Expand Down Expand Up @@ -1778,12 +1778,12 @@ void QgsRasterLayer::closeDataProvider()
mPyramidList.clear();
}

void QgsRasterLayer::setColorShadingAlgorithm( ColorShadingAlgorithm theShadingAlgorithm )
void QgsRasterLayer::setColorShadingAlgorithm( ColorShadingAlgorithm )
{
//legacy method
}

void QgsRasterLayer::setColorShadingAlgorithm( QString theShaderAlgorithm )
void QgsRasterLayer::setColorShadingAlgorithm( QString )
{
//legacy method
}
Expand Down Expand Up @@ -1957,12 +1957,12 @@ void QgsRasterLayer::setDrawingStyle( QString const & theDrawingStyleQString )
}
}

void QgsRasterLayer::setGrayBandName( QString const & theBandName )
void QgsRasterLayer::setGrayBandName( QString const & )
{
//legacy method
}

void QgsRasterLayer::setGreenBandName( QString const & theBandName )
void QgsRasterLayer::setGreenBandName( QString const & )
{
//legacy method
}
Expand Down Expand Up @@ -2006,12 +2006,12 @@ void QgsRasterLayer::setMinimumMaximumUsingDataset()
//legacy method
}

void QgsRasterLayer::setMinimumValue( unsigned int theBand, double theValue, bool theGenerateLookupTableFlag )
void QgsRasterLayer::setMinimumValue( unsigned int, double, bool )
{
//legacy method
}

void QgsRasterLayer::setMinimumValue( QString theBand, double theValue, bool theGenerateLookupTableFlag )
void QgsRasterLayer::setMinimumValue( QString, double, bool )
{
//legacy method
}
Expand All @@ -2032,12 +2032,12 @@ void QgsRasterLayer::setNoDataValue( double theNoDataValue )
}
}

void QgsRasterLayer::setRasterShaderFunction( QgsRasterShaderFunction* theFunction )
void QgsRasterLayer::setRasterShaderFunction( QgsRasterShaderFunction* )
{
//legacy method
}

void QgsRasterLayer::setRedBandName( QString const & theBandName )
void QgsRasterLayer::setRedBandName( QString const & )
{
//legacy method
}
Expand All @@ -2053,7 +2053,7 @@ void QgsRasterLayer::setSubLayerVisibility( QString name, bool vis )

}

void QgsRasterLayer::setTransparentBandName( QString const & theBandName )
void QgsRasterLayer::setTransparentBandName( QString const & )
{
//legacy method
}
Expand Down
22 changes: 11 additions & 11 deletions src/core/raster/qgsrasterlayer.h
Expand Up @@ -482,10 +482,10 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
QPixmap legendAsPixmap();

/** \brief Overloaded version of above function that can print layer name onto legend */
QPixmap legendAsPixmap( bool );
Q_DECL_DEPRECATED QPixmap legendAsPixmap( bool );

/** \brief Use this method when you want an annotated legend suitable for print output etc */
QPixmap legendAsPixmap( int theLabelCount );
Q_DECL_DEPRECATED QPixmap legendAsPixmap( int theLabelCount );

/** \brief Accessor for maximum value user for contrast enhancement */
double maximumValue( unsigned int theBand );
Expand Down Expand Up @@ -534,7 +534,7 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
void setColorShadingAlgorithm( QgsRasterLayer::ColorShadingAlgorithm theShaderAlgorithm );

/** \brief Mutator for color shader algorithm */
void setColorShadingAlgorithm( QString theShaderAlgorithm );
Q_DECL_DEPRECATED void setColorShadingAlgorithm( QString theShaderAlgorithm );

/** \brief Mutator for contrast enhancement algorithm */
void setContrastEnhancementAlgorithm( QgsContrastEnhancement::ContrastEnhancementAlgorithm theAlgorithm,
Expand All @@ -550,16 +550,16 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
void setDrawingStyle( const QString & theDrawingStyleQString );

/** \brief Mutator for gray band name mapping */
void setGrayBandName( const QString & theBandName );
Q_DECL_DEPRECATED void setGrayBandName( const QString & theBandName );

/** \brief Mutator for green band name mapping */
void setGreenBandName( const QString & theBandName );
Q_DECL_DEPRECATED void setGreenBandName( const QString & theBandName );

/** \brief Mutator for setting the maximum value for contrast enhancement */
void setMaximumValue( unsigned int theBand, double theValue, bool theGenerateLookupTableFlag = true );

/** \brief Mutator for setting the maximum value for contrast enhancement */
void setMaximumValue( QString theBand, double theValue, bool theGenerateLookupTableFlag = true );
Q_DECL_DEPRECATED void setMaximumValue( QString theBand, double theValue, bool theGenerateLookupTableFlag = true );

/** \brief Sets the minimum and maximum values for the band(s) currently
* being displayed using the only pixel values from the last/current extent
Expand All @@ -571,23 +571,23 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
void setMinimumMaximumUsingDataset();

/** \brief Mutator for setting the minimum value for contrast enhancement */
void setMinimumValue( unsigned int theBand, double theValue, bool theGenerateLookupTableFlag = true );
Q_DECL_DEPRECATED void setMinimumValue( unsigned int theBand, double theValue, bool theGenerateLookupTableFlag = true );

/** \brief Mutator for setting the minimum value for contrast enhancement */
void setMinimumValue( QString theBand, double theValue, bool theGenerateLookupTableFlag = true );
Q_DECL_DEPRECATED void setMinimumValue( QString theBand, double theValue, bool theGenerateLookupTableFlag = true );

/** \brief Mutator that allows the NO_DATA entry for this raster to be overridden */
void setNoDataValue( double theNoData );

/** \brief Set the raster shader function to a user defined function
\note ownership of the shader function is transfered to raster shader */
void setRasterShaderFunction( QgsRasterShaderFunction* theFunction );
Q_DECL_DEPRECATED void setRasterShaderFunction( QgsRasterShaderFunction* theFunction );

/** \brief Mutator for red band name (allows alternate mappings e.g. map blue as red color) */
void setRedBandName( const QString & theBandName );
Q_DECL_DEPRECATED void setRedBandName( const QString & theBandName );

/** \brief Mutator for transparent band name mapping */
void setTransparentBandName( const QString & theBandName );
Q_DECL_DEPRECATED void setTransparentBandName( const QString & theBandName );

/** \brief [ data provider interface ] A wrapper function to emit a progress update signal */
void showProgress( int theValue );
Expand Down
3 changes: 3 additions & 0 deletions src/mapserver/qgssldparser.cpp
Expand Up @@ -504,6 +504,9 @@ bool QgsSLDParser::rasterSymbologyFromUserStyle( const QDomElement& userStyleEle

//set pseudo color mode
return true;
#else
Q_UNUSED( userStyleElement );
Q_UNUSED( r );
#endif //0
}

Expand Down

0 comments on commit 416cc51

Please sign in to comment.