Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/stroke/QInformationMap.h')
-rw-r--r--source/blender/freestyle/intern/stroke/QInformationMap.h59
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__