summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8216c3f)
raw | patch | inline | side by side (parent: 8216c3f)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 30 Dec 2008 22:14:34 +0000 (22:14 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 30 Dec 2008 22:14:34 +0000 (22:14 +0000) |
19 files changed:
diff --git a/src/box3d.cpp b/src/box3d.cpp
index a6dd378f1aa794ed8cc8a460ddefcfcf9683917e..34ce7a27fa0e824ea8bf8afc7e053a1d42fba2aa 100644 (file)
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
#include "attributes.h"
#include "xml/document.h"
#include "xml/repr.h"
-#include "libnr/nr-matrix-fns.h"
#include "box3d.h"
#include "box3d-side.h"
diff --git a/src/desktop-affine.cpp b/src/desktop-affine.cpp
index 95640c957e93e7a0d00815a2e7600da256471e6d..707b1df8a49e45351e4a7c02d5fb48a4cfde6bab 100644 (file)
--- a/src/desktop-affine.cpp
+++ b/src/desktop-affine.cpp
#include "desktop.h"
//#include "document.h"
//#include "sp-root.h"
-//#include "libnr/nr-matrix-ops.h"
Geom::Matrix const sp_desktop_dt2doc_affine (SPDesktop const *dt)
{
@@ -30,23 +29,23 @@ Geom::Point sp_desktop_dt2doc_xy_point(SPDesktop const *dt, Geom::Point const p)
#if 0
Geom::Matrix const sp_desktop_root2dt_affine (SPDesktop const *dt)
{
- SPRoot const *root = SP_ROOT(SP_DOCUMENT_ROOT(dt->doc()));
- return root->c2p * dt->doc2dt();
+ SPRoot const *root = SP_ROOT(SP_DOCUMENT_ROOT(dt->doc()));
+ return root->c2p * dt->doc2dt();
}
Geom::Matrix const sp_desktop_dt2root_affine (SPDesktop const *dt)
{
- return sp_desktop_root2dt_affine(dt).inverse();
+ return sp_desktop_root2dt_affine(dt).inverse();
}
Geom::Point sp_desktop_root2dt_xy_point(SPDesktop const *dt, Geom::Point const p)
{
- return p * sp_desktop_root2dt_affine(dt);
+ return p * sp_desktop_root2dt_affine(dt);
}
Geom::Point sp_desktop_dt2root_xy_point(SPDesktop const *dt, Geom::Point const p)
{
- return p * sp_desktop_dt2root_affine(dt);
+ return p * sp_desktop_dt2root_affine(dt);
}
#endif
index 950452c8782ac01c8801b31e68f8856a630fd47a..467b34cff011f078102b2a09af970af9beb17489 100644 (file)
#include "svg/svg.h"
#include "svg/svg-color.h"
-#include "libnr/nr-matrix-fns.h"
-#include "libnr/nr-matrix-ops.h"
-
-#include "libnr/nr-matrix-translate-ops.h"
-#include "libnr/nr-translate-ops.h"
-#include "libnr/nr-translate-rotate-ops.h"
-#include "libnr/nr-translate-scale-ops.h"
-
#include "display/nr-arena.h"
#include "display/nr-arena-item.h"
index 2190bf77eb8b46c1b1def28c17e8710594216e48..aebcfd9088f05f368f1f6e089259d18c503a774a 100644 (file)
--- a/src/dialogs/unclump.cpp
+++ b/src/dialogs/unclump.cpp
#include <algorithm>
#include <map>
-#include "libnr/nr-matrix-ops.h"
#include "sp-item.h"
index 357d67359c9fd9e9244bfb94708233863e03b1d3..aa4b40e175568999ddb07b52a01162792a967752 100644 (file)
#include "display/display-forward.h"
#include "display/curve.h"
#include "display/inkscape-cairo.h"
-#include "libnr/nr-matrix-fns.h"
#include <libnr/nr-pixops.h>
-#include <libnr/nr-convert2geom.h>
#include "helper/geom.h"
/*
index f7a8cfb01270b1318b70ec3e0cbbb0250ae9f13c..e46112a09f91005e26329e02c6c353473681bb06 100644 (file)
#endif
#include <color.h>
-#include <libnr/nr-matrix-fns.h>
#include <libnr/nr-pixops.h>
static void sp_canvastext_class_init (SPCanvasTextClass *klass);
index 4a4cb78ec2404ba2ce98ed3faacd7332596681dd..ffeaebe8e57fa823fb223d40b9e8b8c9ecc2a764 100644 (file)
#include <glib/gmessages.h>
#include "libnr/nr-pixblock.h"
-#include "libnr/nr-matrix.h"
#include "display/nr-3dutils.h"
#include <cmath>
index ef60f0502d9fa641260ef4096d0075a7c5ce6237..802fe448c75a952bdc844360436cff7f96d01888 100644 (file)
# include <config.h>
#endif
#include <libnr/nr-blit.h>
-#include <libnr/nr-matrix-ops.h>
-#include <libnr/nr-matrix-fns.h>
#include <libnr/nr-convert2geom.h>
#include <2geom/matrix.h>
#include "../style.h"
@@ -146,7 +144,7 @@ nr_arena_glyphs_update(NRArenaItem *item, NRRectL */*area*/, NRGC *gc, guint /*s
if (!glyphs->style->fill.isNone()) {
Geom::Matrix t;
- t = to_2geom(glyphs->g_transform) * gc->transform;
+ t = glyphs->g_transform * gc->transform;
glyphs->x = t[4];
glyphs->y = t[5];
t[4]=0;
@@ -168,7 +166,7 @@ nr_arena_glyphs_update(NRArenaItem *item, NRRectL */*area*/, NRGC *gc, guint /*s
if (!glyphs->style->stroke.isNone()) {
/* Build state data */
Geom::Matrix t;
- t = to_2geom(glyphs->g_transform) * gc->transform;
+ t = glyphs->g_transform * gc->transform;
glyphs->x = t[4];
glyphs->y = t[5];
t[4]=0;
@@ -465,7 +463,7 @@ nr_arena_glyphs_group_render(cairo_t *ct, NRArenaItem *item, NRRectL *area, NRPi
Geom::PathVector const * pathv = g->font->PathVector(g->glyph);
cairo_new_path(ct);
- Geom::Matrix transform = to_2geom(g->g_transform) * group->ctm;
+ Geom::Matrix transform = g->g_transform * group->ctm;
feed_pathvector_to_cairo (ct, *pathv, transform, to_2geom((pb->area).upgrade()), false, 0);
cairo_fill(ct);
pb->empty = FALSE;
index d63d9b704a1dee4a5f40082ce501588f96b4a3cf..7692cbf15e492715dbcf3b7728ba0e7860d29c0c 100644 (file)
#include "sp-gaussian-blur.h"
#include "filters/blend.h"
#include "display/nr-filter-blend.h"
-#include "libnr/nr-matrix-fns.h"
-#include "libnr/nr-matrix-ops.h"
#include "helper/geom.h"
static void nr_arena_group_class_init (NRArenaGroupClass *klass);
index 3778dc6426a33b10954e99b565b160edb7e379ed..147513f6bd00dfd68d4ce225c40d57eefb04bf56 100644 (file)
image->c10 = (Geom::Point(bbox.x1, bbox.y0) * gc->transform);
image->c11 = (Geom::Point(bbox.x1, bbox.y1) * gc->transform);
- nr_rect_d_matrix_transform (&bbox, &bbox, from_2geom(gc->transform));
+ nr_rect_d_matrix_transform (&bbox, &bbox, gc->transform);
item->bbox.x0 = (int) floor (bbox.x0);
item->bbox.y0 = (int) floor (bbox.y0);
index d4653a692e5df84cad1d9287b14ea60bc2d2e2f7..209cb8de656d05f9e5fd47e78d63f8790a5e7765 100644 (file)
#define NR_ARENA_IMAGE(o) (NR_CHECK_INSTANCE_CAST ((o), NR_TYPE_ARENA_IMAGE, NRArenaImage))
#define NR_IS_ARENA_IMAGE(o) (NR_CHECK_INSTANCE_TYPE ((o), NR_TYPE_ARENA_IMAGE))
-#include <libnr/nr-matrix.h>
#include "nr-arena-item.h"
#include "style.h"
index 8e66e13be3fa6b0609733875e15fc9ccf1908377..04b814cfbff52ae2b835075796f68fb8b52c3f84 100644 (file)
#include <libnr/nr-blit.h>
#include <libnr/nr-pixops.h>
-#include <libnr/nr-matrix-ops.h>
-#include <libnr/nr-matrix-fns.h>
#include "nr-arena.h"
#include "nr-arena-item.h"
#include "gc-core.h"
#include "helper/geom.h"
#include "nr-filter.h"
-#include "libnr/nr-rect.h"
#include "nr-arena-group.h"
#include "preferences.h"
index 23dd92a439ab1b7f0fe60fe395b236a33ce5d944..22c15daef4858b80aa9b88690e42b3067608bb9c 100644 (file)
#define NR_ARENA_ITEM_RENDER_NO_CACHE (1 << 0)
-#include <libnr/nr-matrix.h>
+#include <2geom/matrix.h>
#include <libnr/nr-rect-l.h>
#include <libnr/nr-pixblock.h>
#include <libnr/nr-object.h>
#include "nr-arena-forward.h"
#include "display/nr-filter.h"
#include <cairo.h>
-#include <libnr/nr-convert2geom.h>
struct NRGC {
NRGC(NRGC const *p) : parent(p) {}
diff --git a/src/extension/internal/emf-win32-print.cpp b/src/extension/internal/emf-win32-print.cpp
index 4da7819ee0042319c82292135a94aaf008db6538..1de9bbfe0d4a981d8cb6b539cdce05f259bf5153 100644 (file)
//#include <signal.h>
//#include <errno.h>
-//#include "libnr/nr-point-matrix-ops.h"
-//#include "libnr/nr-rect.h"
-//#include "libnr/nr-matrix.h"
-#include "libnr/nr-matrix-ops.h"
-//#include "libnr/nr-matrix-scale-ops.h"
-//#include "libnr/nr-matrix-translate-ops.h"
-#include "libnr/nr-scale-translate-ops.h"
-//#include "libnr/nr-translate-scale-ops.h"
-//#include "libnr/nr-matrix-fns.h"
-//#include "libnr/nr-pixblock.h"
#include <2geom/pathvector.h>
#include <2geom/rect.h>
#include <2geom/bezier-curve.h>
index ab9a1a4cf9f3a64d103169b7bcf416cdfcfcab65..5c1d8439d329670ba048c4e7fb542c5829cf2f81 100644 (file)
#include "extension/implementation/implementation.h"
//#include "extension/extension.h"
-//#include "libnr/nr-matrix.h"
-//#include "libnr/nr-rect.h"
#include <2geom/pathvector.h>
#include <stack>
index 84e493afaf696f213462f962ea1d2927c4b79d5b..789e5ea346878159e2cb150c191d41ce33fbdf0b 100644 (file)
#include <signal.h>
#include <errno.h>
-
-#include "libnr/nr-matrix.h"
-#include "libnr/nr-matrix-ops.h"
-#include "libnr/nr-matrix-scale-ops.h"
-#include "libnr/nr-matrix-translate-ops.h"
-#include "libnr/nr-scale-translate-ops.h"
-#include "libnr/nr-translate-scale-ops.h"
-#include <libnr/nr-matrix-fns.h>
#include <2geom/pathvector.h>
#include <2geom/sbasis-to-bezier.h>
#include <2geom/bezier-curve.h>
diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
index f58e37173db62d7b603d9b790a1c74b931c3d5f9..5a3015aef60ba07ace31c00030ecb870752459cf 100644 (file)
#include "io/stringstream.h"
#include "io/base64stream.h"
#include "display/nr-filter-utils.h"
-#include "libnr/nr-matrix-ops.h"
#include "libnr/nr-macros.h"
#include "libnrtype/font-instance.h"
diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h
index 28f7e1be3200fb736403b821270d855a27458f99..29add9a622b9faf427b694d145496812c225c0a1 100644 (file)
}
}
-#include "libnr/nr-point.h"
-#include "libnr/nr-matrix.h"
+#include <2geom/point.h>
+#include <2geom/matrix.h>
#include "CharTypes.h"
class GooString;
index 0fa70d7343981bbf6d32a020fa58eea03022e522..21f27885850115b34c7448be7815f5ce116fd8ff 100644 (file)
#include <glib/gmem.h>
#include <libnr/nr-macros.h>
-#include <libnr/nr-matrix.h>
+#include <2geom/transforms.h>
#include "display/nr-arena-item.h"
#include "display/nr-arena.h"