Code

Use is_straight_curve() instead of three separate dynamic casts
[inkscape.git] / src / display / nr-filter.h
index 835266e738e4092006a20805b2ba888ffaa99c3f..267f242d1aff218beae9421929b35dd40bcf33e9 100644 (file)
@@ -77,7 +77,7 @@ public:
      */
     void set_output(int slot);
 
-    void set_x(SVGLength const &lenght);
+    void set_x(SVGLength const &length);
     void set_y(SVGLength const &length);
     void set_width(SVGLength const &length);
     void set_height(SVGLength const &length);
@@ -131,7 +131,7 @@ public:
 
     /**
      * Set the primitiveUnits-properterty. If not set, the default value of
-     * userSpaceOnUseis used. If the parameter value is not a valid
+     * userSpaceOnUse is used. If the parameter value is not a valid
      * enumeration value from SPFilterUnits, no changes to filter state
      * are made.
      */
@@ -150,6 +150,12 @@ public:
      * it contains the filter effect area.
      */
     void bbox_enlarge(NRRectL &bbox);
+    /**
+     * Returns the filter effects area in user coordinate system.
+     * The given bounding box should be a bounding box as specified in
+     * SVG standard and in user coordinate system.
+     */
+    Rect filter_effect_area(Rect const &bbox);
 
     /** Creates a new filter with space for one filter element */
     Filter();
@@ -160,7 +166,7 @@ public:
      */
     Filter(int n);
     /** Destroys the filter and all its primitives */
-    ~Filter();
+    virtual ~Filter();
 
 private:
     int _primitive_count;