/inkscape/src/ |
H A D | sp-star.h | 35 Geom::Point center; member in class:SPStar 62 void sp_star_position_set (SPStar *star, int sides, Geom::Point center, double r1, double r2, double arg1, double arg2, bool isflat, double rounded, double randomized);
|
H A D | context-fns.cpp | 77 Geom::Point const &pt, Geom::Point const ¢er, int state) 93 Geom::Point delta = pt - center; 117 p[1] = center + delta; 126 p[0] = center - delta; 142 p[1] = 2 * center - s[0].getPoint(); 147 p[0] = 2 * center - s[1].getPoint(); 155 p[0] = center; 170 p[0] = 2 * center - p[1]; 180 p[1] = 2 * center - s[0].getPoint(); 185 p[0] = 2 * center 76 snap_rectangular_box(SPDesktop const *desktop, SPItem *item, Geom::Point const &pt, Geom::Point const ¢er, int state) argument [all...] |
H A D | sp-item-transform.cpp | 25 Geom::Point center = item->getCenter(); local 34 // Restore the center position (it's changed because the bbox center changed) 36 item->setCenter(center * affine); 53 Geom::Point center = item->getCenter(); local 62 // Restore the center position (it's changed because the bbox center changed) 64 item->setCenter(center * affine);
|
H A D | sp-marker.cpp | 427 const gchar *generate_marker(std::vector<Inkscape::XML::Node*> &reprs, Geom::Rect bounds, SPDocument *document, Geom::Point center, Geom::Affine move) argument 441 sp_repr_set_svg_double(repr, "refX", center[Geom::X]); 442 sp_repr_set_svg_double(repr, "refY", center[Geom::Y]);
|
H A D | selection.cpp | 447 // If we have a selection of multiple items, then the center of the first item 449 boost::optional<Geom::Point> Selection::center() const { function in class:Inkscape::Selection 470 snapprefs_dummy.setTargetSnappable(Inkscape::SNAPTARGET_ROTATION_CENTER, false); // locally disable snapping to the item center 477 //For a selection or group only the overall center is considered, not for each item individually
|
H A D | sp-star.cpp | 37 center(0, 0), 74 sp_repr_set_svg_double(repr, "sodipodi:cx", this->center[Geom::X]); 75 sp_repr_set_svg_double(repr, "sodipodi:cy", this->center[Geom::Y]); 114 if (!sp_svg_length_read_ldd (value, &unit, NULL, &this->center[Geom::X]) || 118 this->center[Geom::X] = 0.0; 125 if (!sp_svg_length_read_ldd (value, &unit, NULL, &this->center[Geom::Y]) || 129 this->center[Geom::Y] = 0.0; 469 sp_star_position_set (SPStar *star, gint sides, Geom::Point center, gdouble r1, gdouble r2, gdouble arg1, gdouble arg2, bool isflat, double rounded, double randomized) argument 475 star->center = center; [all...] |
H A D | verbs.cpp | 1507 // If the rotation center of the selection is visible, choose it as reference point 1508 // for horizontal and vertical flips. Otherwise, take the center of the bounding box. 1509 Geom::Point center; local 1510 if (tools_isactive(dt, TOOLS_SELECT) && sel->center() && SP_SELECT_CONTEXT(ec)->_seltrans->centerIsVisible()) 1511 center = *sel->center(); 1513 center = bbox->midpoint(); 1535 sp_selection_scale_relative(sel, center, Geom::Scale(-1.0, 1.0)); 1540 sp_selection_scale_relative(sel, center, Geom::Scale(1.0, -1.0)); 3041 N_("Center on vertical axis"), INKSCAPE_ICON("align-horizontal-center")), [all...] |
H A D | gradient-chemistry.cpp | 83 // "private" is a gradient that has no stops but has position coords (e.g. center, radius etc for a 350 Geom::Point const center = bbox->midpoint(); member in class:Geom 353 sp_repr_set_svg_double(repr, "cx", center[Geom::X]); 354 sp_repr_set_svg_double(repr, "cy", center[Geom::Y]); 355 sp_repr_set_svg_double(repr, "fx", center[Geom::X]); 356 sp_repr_set_svg_double(repr, "fy", center[Geom::Y]); 360 Geom::Affine squeeze = Geom::Translate (-center) * 362 Geom::Translate (center); 373 Geom::Point pStart = center - Geom::Point(width/2, 0); 374 Geom::Point pEnd = center [all...] |
/inkscape/src/ui/tools/ |
H A D | arc-tool.h | 56 Geom::Point center; member in class:Inkscape::UI::Tools::ArcTool
|
H A D | rect-tool.h | 46 Geom::Point center; member in class:Inkscape::UI::Tools::RectTool
|
H A D | spiral-tool.h | 47 Geom::Point center; member in class:Inkscape::UI::Tools::SpiralTool
|
H A D | star-tool.h | 45 Geom::Point center; member in class:Inkscape::UI::Tools::StarTool
|
H A D | box3d-tool.h | 64 Geom::Point center; member in class:Inkscape::UI::Tools::Box3dTool
|
/inkscape/src/live_effects/ |
H A D | lpe-circle_with_radius.cpp | 46 Geom::Point center = path_in[0].initialPoint(); local 49 double radius = Geom::L2(pt - center); 51 Geom::Circle c(center, radius);
|
H A D | lpe-offset.cpp | 51 Geom::Point const center, Geom::Point const &dir) { 55 EllipticalArc cap(center + dir, r, r, angle_between(Point(1,0), dir), false, false, center - dir); 50 append_half_circle(Geom::Piecewise<Geom::D2<Geom::SBasis> > &pwd2, Geom::Point const center, Geom::Point const &dir) argument
|
H A D | lpe-powerstroke.cpp | 122 Geom::Point center = curve(t) + radius*normal; local 123 return Geom::Circle(center, fabs(radius)); 365 // no center found, i.e. 180 degrees round
|
/inkscape/src/display/ |
H A D | drawing-context.cpp | 102 void DrawingContext::arc(Geom::Point const ¢er, double radius, Geom::AngleInterval const &angle) argument 107 cairo_arc(_ct, center[X], center[Y], radius, from, to); 109 cairo_arc_negative(_ct, center[X], center[Y], radius, to, from);
|
/inkscape/src/2geom/ |
H A D | circle.h | 47 /** @brief Set of all points at a fixed distance from the center 64 Circle(Point const ¢er, Coord r) argument 65 : _center(center), _radius(r) 75 Point center() const { return _center; } function in class:Geom::Circle 76 Coord center(Dim2 d) const { return _center[d]; } function in class:Geom::Circle
|
H A D | ellipse.h | 54 * the SVG style representation: center, rays and angle between the +X ray 90 /// Set center, rays and angle. 96 /// Set center, rays and angle as constituent values. 106 /// Set the center. 108 /// Set the center by coordinates. 119 Point center() const { return _center; } function in class:Geom::Ellipse 120 Coord center(Dim2 d) const { return _center[d]; } function in class:Geom::Ellipse
|
H A D | elliptical-arc.h | 100 /** @brief Get a coordinate of the elliptical arc's center. 102 * @return The selected coordinate of the center */ 103 Coord center(Dim2 d) const { return _ellipse.center(d); } function in class:Geom::EllipticalArc 105 /** @brief Get the arc's center 106 * @return The arc's center, situated on the intersection of the ellipse's rays */ 107 Point center() const { return _ellipse.center(); } function in class:Geom::EllipticalArc 172 * recalculations of the center and extreme angles. 281 if ( are_near(ray(X), ray(Y)) && are_near(center(), [all...] |
/inkscape/src/ui/dialog/ |
H A D | polar-arrange-tab.cpp | 41 centerY("", C_("Polar arrange tab", "Y coordinate of the center"), UNIT_TYPE_LINEAR), 42 centerX("", C_("Polar arrange tab", "X coordinate of the center"), centerY), 59 anchorObjectPivotRadio.set_label(C_("Polar arrange tab", "Object's rotational center")); 165 * @param center center of the rotation to perform 168 static void rotateAround(SPItem *item, Geom::Point center, Geom::Rotate const &rotation) argument 170 Geom::Translate const s(center); 173 // Save old center 174 center = item->getCenter(); 181 item->setCenter(center * affin [all...] |
H A D | spellcheck.cpp | 629 Geom::Point const center = desktop->get_display_area().midpoint(); member in class:Inkscape::UI::Dialog::Geom 634 if (Geom::L2(area.corner(corner) - center) > dist) { 635 dist = Geom::L2(area.corner(corner) - center);
|
H A D | transformation.cpp | 311 //TODO: add a widget for selecting the fixed point in scaling, or honour rotation center? 371 //TODO: honour rotation center? 412 //TODO: honour rotation center? 883 boost::optional<Geom::Point> center = selection->center(); local 884 if (center) { 885 sp_selection_rotate_relative(selection, *center, angle); 939 boost::optional<Geom::Point> center = selection->center(); local 941 if ( bbox && center ) { [all...] |
H A D | align-and-distribute.cpp | 564 static boost::optional<Geom::Point> center; member in class:Inkscape::UI::Dialog::ActionExchangePositions 569 if (center) { 570 Geom::Point point_a = a->getCenter() - (*center); 571 Geom::Point point_b = b->getCenter() - (*center); 572 // First criteria: Sort according to the angle to the center point 576 // Second criteria: Sort according to the distance the center point 607 center = selection->center(); 608 } else { // sorting by ZOrder is outomatically done by not setting the center 609 center 637 boost::optional<Geom::Point> ActionExchangePositions::center; member in class:Inkscape::UI::Dialog::ActionExchangePositions [all...] |
/inkscape/src/ui/tool/ |
H A D | control-point-selection.cpp | 547 // rotate around the mouseovered point, or the selection's rotation center 594 Geom::Point center; 598 center = scp->position(); 600 center = _handles->rotationCenter().position(); 615 Geom::Affine m = Geom::Translate(-center) * Geom::Scale(scale) * Geom::Translate(center); 634 Geom::Point center = scp ? scp->position() : _handles->rotationCenter().position(); local 636 Geom::Affine m = Geom::Translate(-center) * scale_transform * Geom::Translate(center);
|