📄 qgsrastershaderfunction.h
字号:
/* ************************************************************************** qgsrastershaderfunction.h - description -------------------begin : Fri Dec 28 2007copyright : (C) 2007 by Peter J. Erstsemail : ersts@amnh.org****************************************************************************//* ************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef QGSRASTERSHADERFUNCTION_H#define QGSRASTERSHADERFUNCTION_Hclass CORE_EXPORT QgsRasterShaderFunction {public: QgsRasterShaderFunction(double theMinimumValue=0.0, double theMaximumValue=255.0); virtual ~QgsRasterShaderFunction() {} /** \brief generates and new RGB value based on one input value */ virtual bool generateShadedValue(double, int*, int*, int*); /** \brief generates and new RGB value based on original RGB value */ virtual bool generateShadedValue(double, double, double, int*, int*, int*); /** \brief Set the maximum value */ virtual void setMaximumValue(double); /** \brief Return the minimum value */ virtual void setMinimumValue(double);protected: /** \brief User defineable maximum value for the shading function */ double mMaximumValue; /** \brief User defineable minimum value for the shading function */ double mMinimumValue; /** \brief Minimum maximum range for the shading function */ double mMinimumMaximumRange;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -