Code

Added example file for feTurbulence effect
[inkscape.git] / src / sp-feconvolvematrix.h
index d19666976947460c1e72aecc4cc118416357601c..2cdeee2e8af373581853a47462c21365f1c10edd 100644 (file)
@@ -6,6 +6,7 @@
  */
 /*
  * Authors:
+ *   Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com>
  *   Hugo Rodrigues <haa.rodrigues@gmail.com>
  *
  * Copyright (C) 2006 Hugo Rodrigues
 
 #include "sp-filter.h"
 #include "sp-feconvolvematrix-fns.h"
+#include "number-opt-number.h"
+#include "display/nr-filter-convolve-matrix.h"
+#include <vector>
 
 /* FeConvolveMatrix base class */
 class SPFeConvolveMatrixClass;
 
 struct SPFeConvolveMatrix : public SPFilterPrimitive {
-    /** CONVOLVEMATRIX ATTRIBUTES HERE */
-    
+    /* CONVOLVEMATRIX ATTRIBUTES */
+    NumberOptNumber order;
+    std::vector<gdouble> kernelMatrix;
+    double divisor, bias;
+    int targetX, targetY;
+    NR::FilterConvolveMatrixEdgeMode edgeMode;
+    NumberOptNumber kernelUnitLength;
+    bool preserveAlpha;
+    //some helper variables:
+    bool targetXIsSet;
+    bool targetYIsSet;
+    bool divisorIsSet;
+    bool kernelMatrixIsSet;
 };
 
 struct SPFeConvolveMatrixClass {