From: johanengelen Date: Fri, 1 Aug 2008 19:18:17 +0000 (+0000) Subject: remove more NR:: from live_effects code X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3521f69a168bb569f01c674683489ea8e98f7f5;p=inkscape.git remove more NR:: from live_effects code --- diff --git a/src/live_effects/lpe-perp_bisector.h b/src/live_effects/lpe-perp_bisector.h index 1544eb4ff..baa440822 100644 --- a/src/live_effects/lpe-perp_bisector.h +++ b/src/live_effects/lpe-perp_bisector.h @@ -27,7 +27,7 @@ namespace PB { class KnotHolderEntityEnd; class KnotHolderEntityLeftEnd; class KnotHolderEntityRightEnd; - void bisector_end_set(SPItem *item, NR::Point const &p, bool left); + void bisector_end_set(SPItem *item, Geom::Point const &p, bool left); } class LPEPerpBisector : public Effect { @@ -46,7 +46,7 @@ public: friend class PB::KnotHolderEntityEnd; friend class PB::KnotHolderEntityLeftEnd; friend class PB::KnotHolderEntityRightEnd; - friend void PB::bisector_end_set(SPItem *item, NR::Point const &p, bool left = true); + friend void PB::bisector_end_set(SPItem *item, Geom::Point const &p, bool left = true); private: ScalarParam length_left; diff --git a/src/live_effects/lpe-perspective_path.cpp b/src/live_effects/lpe-perspective_path.cpp index ff487f235..2eef0cd5b 100644 --- a/src/live_effects/lpe-perspective_path.cpp +++ b/src/live_effects/lpe-perspective_path.cpp @@ -170,8 +170,8 @@ KnotHolderEntityOffset::knot_set(Geom::Point const &p, Geom::Point const &origin Geom::Point const s = snap_knot_position(p); - lpe->offsetx.param_set_value((s - origin)[NR::X]); - lpe->offsety.param_set_value(-(s - origin)[NR::Y]); // additional minus sign is due to coordinate system flipping + lpe->offsetx.param_set_value((s - origin)[Geom::X]); + lpe->offsety.param_set_value(-(s - origin)[Geom::Y]); // additional minus sign is due to coordinate system flipping // FIXME: this should not directly ask for updating the item. It should write to SVG, which triggers updating. sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), false, true); diff --git a/src/live_effects/lpe-spiro.cpp b/src/live_effects/lpe-spiro.cpp index 276ed7b0b..afa5dbc4d 100644 --- a/src/live_effects/lpe-spiro.cpp +++ b/src/live_effects/lpe-spiro.cpp @@ -50,9 +50,9 @@ void bezctx_ink_quadto(bezctx *bc, double xm, double ym, double x3, double y3) double x1, y1; double x2, y2; - NR::Point last = bi->curve->last_point(); - x0 = last[NR::X]; - y0 = last[NR::Y]; + Geom::Point last = bi->curve->last_point(); + x0 = last[Geom::X]; + y0 = last[Geom::Y]; x1 = xm + (1./3) * (x0 - xm); y1 = ym + (1./3) * (y0 - ym); x2 = xm + (1./3) * (x3 - xm); diff --git a/src/live_effects/lpegroupbbox.cpp b/src/live_effects/lpegroupbbox.cpp index e9cf05099..2ea839892 100644 --- a/src/live_effects/lpegroupbbox.cpp +++ b/src/live_effects/lpegroupbbox.cpp @@ -21,15 +21,15 @@ GroupBBoxEffect::original_bbox(SPLPEItem *lpeitem, bool absolute) // Get item bounding box SPItem* item = SP_ITEM(lpeitem); - NR::Matrix transform; + Geom::Matrix transform; if (absolute) { - transform = from_2geom(sp_item_i2doc_affine(item)); + transform = sp_item_i2doc_affine(item); } else { - transform = NR::identity(); + transform = Geom::identity(); } - NR::Maybe itemBBox = item->getBounds(transform, SPItem::GEOMETRIC_BBOX); + NR::Maybe itemBBox = item->getBounds(from_2geom(transform), SPItem::GEOMETRIC_BBOX); // NR to Geom glue Geom::Rect geomBBox = Geom::Rect(itemBBox->min(), itemBBox->max()); diff --git a/src/live_effects/parameter/pointparam-knotholder.h b/src/live_effects/parameter/pointparam-knotholder.h index cb5be0d8d..f6dfdead5 100644 --- a/src/live_effects/parameter/pointparam-knotholder.h +++ b/src/live_effects/parameter/pointparam-knotholder.h @@ -28,8 +28,8 @@ class Node; -typedef void (* PointParamKnotHolderSetFunc) (SPItem *item, NR::Point const &p, NR::Point const &origin, guint state); -typedef NR::Point (* PointParamKnotHolderGetFunc) (SPItem *item); +typedef void (* PointParamKnotHolderSetFunc) (SPItem *item, Geom::Point const &p, Geom::Point const &origin, guint state); +typedef Geom::Point (* PointParamKnotHolderGetFunc) (SPItem *item); typedef void (* PointParamKnotHolderClickedFunc) (SPItem *item, guint state); class PointParamKnotHolder : public KnotHolder {