index 8ebb5032791a0133cb92932ecd7cf995b40ff079..49fe30aa953b527a783b098ea2021a85f7e21216 100644 (file)
#include "sp-filter-units.h"
#include "libnr/nr-matrix.h"
#include "libnr/nr-rect.h"
+#include "libnr/nr-rect-l.h"
namespace NR {
*/
Matrix get_matrix_pb2display() const;
+ /**
+ * Gets the user coordinates to filterUnits transformation matrix.
+ */
+ Matrix get_matrix_user2filterunits() const;
+
+ /**
+ * Gets the user coordinates to primitiveUnits transformation matrix.
+ */
+ Matrix get_matrix_user2primitiveunits() const;
+
+ /**
+ * Returns the filter area in pixblock coordinates.
+ * NOTE: use only in filters, that define TRAIT_PARALLER in
+ * get_input_traits. The filter effects area may not be representable
+ * by simple rectangle otherwise. */
+ IRect get_pixblock_filterarea_paraller() const;
+
FilterUnits& operator=(FilterUnits const &other);
private:
Matrix get_matrix_units2pb(SPFilterUnits units) const;
+ Matrix get_matrix_user2units(SPFilterUnits units) const;
SPFilterUnits filterUnits, primitiveUnits;
double resolution_x, resolution_y;