Skip to content

Commit

Permalink
Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 21, 2019
1 parent dabd3dc commit 0c77b9e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/server/services/wms/qgswmsparameters.h
Expand Up @@ -371,6 +371,10 @@ namespace QgsWms
*/
QgsWmsParameter operator[]( QgsWmsParameter::Name name ) const;

/**
* Sets a parameter \a value thanks to its \a name.
* \since QGIS 3.8
*/
void set( QgsWmsParameter::Name name, const QVariant &value );

/**
Expand Down
5 changes: 5 additions & 0 deletions src/server/services/wms/qgswmsrendercontext.h
Expand Up @@ -207,6 +207,11 @@ namespace QgsWms
*/
QSize mapSize( bool aspectRatio = true ) const;

/**
* Returns true if width and height are valid according to the maximum
* values defined within the project, false otherwise.
* \since QGIS 3.8
*/
bool isValidWidthHeight() const;

/**
Expand Down
6 changes: 2 additions & 4 deletions src/server/services/wms/qgswmsrenderer.h
Expand Up @@ -162,10 +162,8 @@ namespace QgsWms
QImage *scaleImage( const QImage *image ) const;

/**
* Creates a QImage from the HEIGHT and WIDTH parameters
* \param width image width (or -1 if width should be taken from WIDTH wms parameter)
* \param height image height (or -1 if height should be taken from HEIGHT wms parameter)
* \param useBbox flag to indicate if the BBOX has to be used to adapt aspect ratio
* Creates a QImage.
* \param size image size
* \returns a non null pointer
* may throw an exception
*/
Expand Down

0 comments on commit 0c77b9e

Please sign in to comment.