Code layout

This commit is contained in:
Alessandro Pasotti 2019-09-27 11:47:09 +02:00
parent 33fe400abf
commit e59c1134d7
2 changed files with 42 additions and 0 deletions

View File

@ -94,8 +94,24 @@ Subtracts another matrix from this one
bool lesserEqual( const QgsRasterMatrix &other ); bool lesserEqual( const QgsRasterMatrix &other );
bool logicalAnd( const QgsRasterMatrix &other ); bool logicalAnd( const QgsRasterMatrix &other );
bool logicalOr( const QgsRasterMatrix &other ); bool logicalOr( const QgsRasterMatrix &other );
bool max( const QgsRasterMatrix &other ); bool max( const QgsRasterMatrix &other );
%Docstring
Calculates the maximum value between two matrices
:return: ``True`` on success
.. versionadded:: 3.10
%End
bool min( const QgsRasterMatrix &other ); bool min( const QgsRasterMatrix &other );
%Docstring
Calculates the minimum value between two matrices
:return: ``True`` on success
.. versionadded:: 3.10
%End
bool squareRoot(); bool squareRoot();
bool sinus(); bool sinus();
@ -107,7 +123,15 @@ Subtracts another matrix from this one
bool changeSign(); bool changeSign();
bool log(); bool log();
bool log10(); bool log10();
bool absoluteValue(); bool absoluteValue();
%Docstring
Calculates the absolute value
:return: ``True`` on success
.. versionadded:: 3.10
%End
}; };

View File

@ -111,7 +111,19 @@ class ANALYSIS_EXPORT QgsRasterMatrix
bool lesserEqual( const QgsRasterMatrix &other ); bool lesserEqual( const QgsRasterMatrix &other );
bool logicalAnd( const QgsRasterMatrix &other ); bool logicalAnd( const QgsRasterMatrix &other );
bool logicalOr( const QgsRasterMatrix &other ); bool logicalOr( const QgsRasterMatrix &other );
/**
* Calculates the maximum value between two matrices
* \return TRUE on success
* \since QGIS 3.10
*/
bool max( const QgsRasterMatrix &other ); bool max( const QgsRasterMatrix &other );
/**
* Calculates the minimum value between two matrices
* \return TRUE on success
* \since QGIS 3.10
*/
bool min( const QgsRasterMatrix &other ); bool min( const QgsRasterMatrix &other );
bool squareRoot(); bool squareRoot();
@ -124,6 +136,12 @@ class ANALYSIS_EXPORT QgsRasterMatrix
bool changeSign(); bool changeSign();
bool log(); bool log();
bool log10(); bool log10();
/**
* Calculates the absolute value
* \return TRUE on success
* \since QGIS 3.10
*/
bool absoluteValue(); bool absoluteValue();
private: private: