diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/freestyle/intern/stroke/QInformationMap.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/freestyle/intern/stroke/QInformationMap.h')
-rw-r--r-- | source/blender/freestyle/intern/stroke/QInformationMap.h | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/source/blender/freestyle/intern/stroke/QInformationMap.h b/source/blender/freestyle/intern/stroke/QInformationMap.h index 7cb93321233..99393a8949c 100644 --- a/source/blender/freestyle/intern/stroke/QInformationMap.h +++ b/source/blender/freestyle/intern/stroke/QInformationMap.h @@ -28,37 +28,36 @@ namespace Freestyle { -class QInformationMap : public InformationMap -{ -private: - QImage _map; // the image or a piece of image - -public: - QInformationMap(); - QInformationMap(const QImage&); - QInformationMap(const QInformationMap&); - QInformationMap& operator=(const QInformationMap&); - - //float getSmoothedPixel(int x, int y, float sigma = 0.2f);1 - virtual float getMean(int x, int y); - virtual void retrieveMeanAndVariance(int x, int y, float &oMean, float &oVariance); - - inline const QImage& map() const - { - return _map; - } - - inline void setMap(const QImage& iMap, float iw, float ih) - { - _map = iMap.copy(); - _w = iw; - _h = ih; - } - -protected: - virtual float computeGaussian(int x, int y); +class QInformationMap : public InformationMap { + private: + QImage _map; // the image or a piece of image + + public: + QInformationMap(); + QInformationMap(const QImage &); + QInformationMap(const QInformationMap &); + QInformationMap &operator=(const QInformationMap &); + + //float getSmoothedPixel(int x, int y, float sigma = 0.2f);1 + virtual float getMean(int x, int y); + virtual void retrieveMeanAndVariance(int x, int y, float &oMean, float &oVariance); + + inline const QImage &map() const + { + return _map; + } + + inline void setMap(const QImage &iMap, float iw, float ih) + { + _map = iMap.copy(); + _w = iw; + _h = ih; + } + + protected: + virtual float computeGaussian(int x, int y); }; } /* namespace Freestyle */ -#endif // __FREESTYLE_Q_INFORMATION_MAP_H__ +#endif // __FREESTYLE_Q_INFORMATION_MAP_H__ |