Searched defs:center (Results 1 - 25 of 38) sorted by relevance

12

/inkscape/src/
H A Dsp-star.h35 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 Dcontext-fns.cpp77 Geom::Point const &pt, Geom::Point const &center, 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 &center, int state) argument
[all...]
H A Dsp-item-transform.cpp25 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 Dsp-marker.cpp427 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 Dselection.cpp447 // 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 Dsp-star.cpp37 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 Dverbs.cpp1507 // 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 Dgradient-chemistry.cpp83 // "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 Darc-tool.h56 Geom::Point center; member in class:Inkscape::UI::Tools::ArcTool
H A Drect-tool.h46 Geom::Point center; member in class:Inkscape::UI::Tools::RectTool
H A Dspiral-tool.h47 Geom::Point center; member in class:Inkscape::UI::Tools::SpiralTool
H A Dstar-tool.h45 Geom::Point center; member in class:Inkscape::UI::Tools::StarTool
H A Dbox3d-tool.h64 Geom::Point center; member in class:Inkscape::UI::Tools::Box3dTool
/inkscape/src/live_effects/
H A Dlpe-circle_with_radius.cpp46 Geom::Point center = path_in[0].initialPoint(); local
49 double radius = Geom::L2(pt - center);
51 Geom::Circle c(center, radius);
H A Dlpe-offset.cpp51 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 Dlpe-powerstroke.cpp122 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 Ddrawing-context.cpp102 void DrawingContext::arc(Geom::Point const &center, 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 Dcircle.h47 /** @brief Set of all points at a fixed distance from the center
64 Circle(Point const &center, 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 Dellipse.h54 * 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 Delliptical-arc.h100 /** @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 Dpolar-arrange-tab.cpp41 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 Dspellcheck.cpp629 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 Dtransformation.cpp311 //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 Dalign-and-distribute.cpp564 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 Dcontrol-point-selection.cpp547 // 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);

Completed in 982 milliseconds

12