Skip to content

Commit

Permalink
More updates for opencl
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 8, 2018
1 parent 7404263 commit 9068fe4
Show file tree
Hide file tree
Showing 13 changed files with 352 additions and 126 deletions.
3 changes: 3 additions & 0 deletions python/analysis/auto_generated/raster/qgsaspectfilter.sip.in
Expand Up @@ -29,6 +29,9 @@ Calculates output value from nine input values. The input values and the output
nodata value if not present or outside of the border. Must be implemented by subclasses*
%End




};

/************************************************************************
Expand Down
Expand Up @@ -10,6 +10,7 @@




class QgsNineCellFilter
{
%Docstring
Expand All @@ -34,7 +35,8 @@ Starts the calculation, reads from mInputFile and stores the result in mOutputFi

:param feedback: feedback object that receives update and that is checked for cancelation.

:return: 0 in case of success*
:return: 0 in case of success
TODO: return an enum
%End

double cellSizeX() const;
Expand Down
Expand Up @@ -28,6 +28,7 @@ Calculates slope values in a window of 3x3 cells based on first order derivative
Calculates output value from nine input values. The input values and the output value can be equal to the
nodata value if not present or outside of the border. Must be implemented by subclasses*
%End

};

/************************************************************************
Expand Down
9 changes: 9 additions & 0 deletions src/analysis/raster/qgsaspectfilter.h
Expand Up @@ -36,6 +36,15 @@ class ANALYSIS_EXPORT QgsAspectFilter: public QgsDerivativeFilter
float *x12, float *x22, float *x32,
float *x13, float *x23, float *x33 ) override;




// QgsNineCellFilter interface
private:
const QString openClProgramBaseName() const override
{
return QStringLiteral( "aspect" );
}
};

#endif // QGSASPECTFILTER_H
1 change: 1 addition & 0 deletions src/analysis/raster/qgshillshadefilter.h
Expand Up @@ -46,6 +46,7 @@ class ANALYSIS_EXPORT QgsHillshadeFilter: public QgsDerivativeFilter
private:
float mLightAzimuth;
float mLightAngle;

};

#endif // QGSHILLSHADEFILTER_H

0 comments on commit 9068fe4

Please sign in to comment.