/inkscape/src/ |
H A D | proj_pt.cpp | 50 Pt2::affine() { function in class:Proj::Pt2
|
H A D | sp-item-transform.cpp | 27 Geom::Affine affine = Geom::Affine(s).inverse() * Geom::Affine(rotation) * Geom::Affine(s); local 30 item->set_i2d_affine(item->i2dt_affine() * (Geom::Affine)affine); 36 item->setCenter(center * affine); 57 Geom::Affine affine = Geom::Affine(s).inverse() * skew * Geom::Affine(s); local 59 item->set_i2d_affine(item->i2dt_affine() * affine); 64 item->setCenter(center * affine); 77 * Calculate the affine transformation required to transform one visual bounding box into another, accounting for a uniform strokewidth. 84 * need to calculate the affine transformation for the old dimensions to the new dimensions. When using a geometric bounding 87 * of the affine transformation: 146 // We will now try to calculate the affine transformatio [all...] |
H A D | file.cpp | 1259 Geom::Affine affine = doc->getRoot()->c2p * SP_ITEM(place_to_insert)->i2doc_affine().inverse(); local 1260 sp_selection_apply_affine(selection, desktop->dt2doc() * affine * desktop->doc2dt(), true, false, false);
|
H A D | selection-chemistry.cpp | 1527 void sp_selection_apply_affine(Inkscape::Selection *selection, Geom::Affine const &affine, bool set_i2d, bool compensate, bool adjust_transf_center) argument 1552 persp3d_apply_affine_transformation(transf_persp, affine); 1652 Geom::Affine t = parent2dt * affine * parent2dt.inverse(); 1656 if (transform_clone_with_original && (prefs_parallel || prefs_unmoved) && affine.isTranslation()) { 1682 } else if (transform_offset_with_source && (prefs_parallel || prefs_unmoved) && affine.isTranslation()){ 1702 item->set_i2d_affine(item->i2dt_affine() * (Geom::Affine)affine); 1710 if (set_i2d && item->isCenterSet() && !(affine.isTranslation() || affine.isIdentity())) { 1711 item->setCenter(old_center * affine);
|
/inkscape/src/display/ |
H A D | sp-ctrlline.h | 39 Geom::Affine affine; member in struct:SPCtrlLine
|
H A D | guideline.h | 28 Geom::Affine affine; member in struct:SPGuideLine
|
H A D | sp-ctrlquadr.cpp | 27 Geom::Affine affine; member in struct:SPCtrlQuadr 34 static void sp_ctrlquadr_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 81 Geom::Point p1 = (cq->p1 * cq->affine) - min; 82 Geom::Point p2 = (cq->p2 * cq->affine) - min; 83 Geom::Point p3 = (cq->p3 * cq->affine) - min; 84 Geom::Point p4 = (cq->p4 * cq->affine) - min; 112 static void sp_ctrlquadr_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 119 SP_CANVAS_ITEM_CLASS(sp_ctrlquadr_parent_class)->update(item, affine, flags); 124 cq->affine = affine; [all...] |
H A D | sp-ctrlline.cpp | 35 void sp_ctrlline_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 84 Geom::Point s = cl->s * cl->affine; 85 Geom::Point e = cl->e * cl->affine; 107 void sp_ctrlline_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 114 SP_CANVAS_ITEM_CLASS(sp_ctrlline_parent_class)->update(item, affine, flags); 119 cl->affine = affine; 125 Geom::Point s = cl->s * affine; 126 Geom::Point e = cl->e * affine;
|
H A D | canvas-text.h | 52 Geom::Affine affine; member in struct:SPCanvasText
|
H A D | sodipodi-ctrlrect.cpp | 31 static void sp_ctrlrect_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 66 static void sp_ctrlrect_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 68 SP_CTRLRECT(item)->update(affine, flags); 152 void CtrlRect::update(Geom::Affine const &affine, unsigned int flags) argument 158 (SP_CANVAS_ITEM_CLASS(sp_ctrlrect_parent_class))->update(this, affine, flags); 163 Geom::Rect bbox(_rect.min() * affine, _rect.max() * affine);
|
H A D | sp-ctrlcurve.cpp | 28 static void sp_ctrlcurve_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 84 Geom::Point p0 = cl->p0 * cl->affine; 85 Geom::Point p1 = cl->p1 * cl->affine; 86 Geom::Point p2 = cl->p2 * cl->affine; 87 Geom::Point p3 = cl->p3 * cl->affine; 99 sp_ctrlcurve_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 106 SP_CANVAS_ITEM_CLASS(sp_ctrlcurve_parent_class)->update(item, affine, flags); 110 cl->affine = affine; 116 Geom::Point p0 = cl->p0 * affine; [all...] |
H A D | canvas-bpath.cpp | 29 static void sp_canvas_bpath_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 70 static void sp_canvas_bpath_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 77 reinterpret_cast<SPCanvasItemClass *>(sp_canvas_bpath_parent_class)->update(item, affine, flags); 84 cbp->affine = affine; 86 Geom::OptRect bbox = bounds_exact_transformed(cbp->curve->get_pathvector(), affine); 123 feed_pathvector_to_cairo (buf->ct, cbp->curve->get_pathvector(), cbp->affine, area, 160 pathv_matrix_point_bbox_wind_distance(cbp->curve->get_pathvector(), cbp->affine, p, NULL, NULL, &dist, 0.5, &viewbox);
|
H A D | canvas-bpath.h | 70 Geom::Affine affine; member in struct:SPCanvasBPath
|
H A D | canvas-arena.cpp | 36 static void sp_canvas_arena_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 134 sp_canvas_arena_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 139 SP_CANVAS_ITEM_CLASS(sp_canvas_arena_parent_class)->update(item, affine, flags); 141 arena->ctx.ctm = affine;
|
H A D | canvas-text.cpp | 27 static void sp_canvastext_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 54 canvastext->affine = Geom::identity(); 102 Geom::Point s = cl->s * cl->affine; 119 sp_canvastext_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 126 SP_CANVAS_ITEM_CLASS(sp_canvastext_parent_class)->update(item, affine, flags); 130 cl->affine = affine; 132 Geom::Point s = cl->s * affine;
|
H A D | guideline.cpp | 27 static void sp_guideline_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 92 Geom::Point normal_dt = /*unit_vector*/(gl->normal_to_line * gl->affine.withoutTranslation()); // note that normal_dt does not have unit length 93 Geom::Point point_on_line_dt = gl->point_on_line * gl->affine; 159 static void sp_guideline_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 164 (SP_CANVAS_ITEM_CLASS(sp_guideline_parent_class))->update(item, affine, flags); 181 gl->affine = affine; 182 Geom::Point pol_transformed = gl->point_on_line * affine; 204 Geom::Point vec = gl->normal_to_line * gl->affine.withoutTranslation(); 205 double distance = Geom::dot((p - gl->point_on_line * gl->affine), unit_vecto [all...] |
H A D | sodipodi-ctrl.cpp | 31 static void sp_ctrl_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 220 sp_ctrl_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 228 SP_CANVAS_ITEM_CLASS(sp_ctrl_parent_class)->update(item, affine, flags); 238 x = (gint) ((affine[4] > 0) ? (affine[4] + 0.5) : (affine[4] - 0.5)) - ctrl->width; 239 y = (gint) ((affine[5] > 0) ? (affine[5] + 0.5) : (affine[5] - 0.5)) - ctrl->height;
|
H A D | canvas-axonomgrid.cpp | 484 CanvasAxonomGrid::Update (Geom::Affine const &affine, unsigned int /*flags*/) argument 486 ow = origin * affine; 487 sw = Geom::Point(fabs(affine[0]),fabs(affine[3]));
|
H A D | canvas-grid.cpp | 72 static void grid_canvasitem_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 115 grid_canvasitem_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 120 SP_CANVAS_ITEM_CLASS(grid_canvasitem_parent_class)->update(item, affine, flags); 123 gridcanvasitem->grid->Update(affine, flags); 840 CanvasXYGrid::Update (Geom::Affine const &affine, unsigned int /*flags*/) argument 842 ow = origin * affine; 843 sw = spacing * affine; 844 sw -= Geom::Point(affine[4], affine[5]);
|
H A D | sp-canvas.cpp | 29 #include <2geom/affine.h> 97 static void update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags); 373 * NB! affine is parent2canvas. 375 static void sp_canvas_item_invoke_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument 378 Geom::Affine child_affine = item->xform * affine; 406 * maintaining the affine invariant. 418 * Makes the item's affine transformation matrix be equal to the specified 422 * @affine: An affine transformation matrix. 424 void sp_canvas_item_affine_absolute(SPCanvasItem *item, Geom::Affine const &affine) argument 678 Geom::Affine affine = Geom::identity(); local 779 update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags) argument [all...] |
/inkscape/src/helper/ |
H A D | pixbuf-ops.cpp | 124 Geom::Affine affine = scale * Geom::Translate(-origin * scale); local 128 root->setTransform(affine);
|
/inkscape/src/ui/dialog/ |
H A D | polar-arrange-tab.cpp | 171 Geom::Affine affine = Geom::Affine(s).inverse() * Geom::Affine(rotation) * Geom::Affine(s); local 176 item->set_i2d_affine(item->i2dt_affine() * affine); 181 item->setCenter(center * affine);
|
H A D | grid-arrange-tab.cpp | 335 Geom::Affine const affine = Geom::Affine(Geom::Translate(move)); member in class:Inkscape::UI::Dialog::Geom 336 item->set_i2d_affine(item->i2dt_affine() * affine);
|
/inkscape/src/ui/tools/ |
H A D | flood-tool.cpp | 752 Geom::Affine affine = scale * Geom::Translate(-origin * scale); local 764 root->setTransform(affine); 856 Geom::Point pw = Geom::Point(fill_points[i][Geom::X] / zoom_scale, document->getHeight().value("px") + (fill_points[i][Geom::Y] / zoom_scale)) * affine; 1056 affine = scale * Geom::Translate(-origin * scale - min_start); 1057 Geom::Affine inverted_affine = Geom::Affine(affine).inverse();
|
H A D | spray-tool.cpp | 132 Geom::Affine affine = s.inverse() * rotation * s; local 134 item->set_i2d_affine(item->i2dt_affine() * affine); 437 static void sp_spray_transform_path(SPItem * item, Geom::Path &path, Geom::Affine affine, Geom::Point center){ argument 447 Geom::Affine i2dt = item->i2dt_affine() * Geom::Translate(center).inverse() * affine * Geom::Translate(center);
|