/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
|
/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/ |
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-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.h | 36 Geom::Point const &pt, Geom::Point const ¢er, int state);
|
H A D | sp-radial-gradient.cpp | 148 Geom::Point center(this->cx.computed, this->cy.computed); 156 // have its center outside the first circle. 172 // radius and the focus-center delta, because gs2user might contain non-uniform scaling 173 Geom::Point d(focus - center); 200 scale * d.x() + center.x(), scale * d.y() + center.y(), focusr, 201 center.x(), center.y(), radius);
|
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 | sp-mesh-array.cpp | 1058 Geom::Point center = bbox->midpoint(); 1097 center = star->center; 1107 center[Geom::X] = arc->cx.computed; 1108 center[Geom::Y] = arc->cy.computed; 1119 sp_repr_set_svg_double( repr, "x", center[Geom::X] + rx * cos(start) ); 1120 sp_repr_set_svg_double( repr, "y", center[Geom::Y] + ry * sin(start) ); 1139 gdouble x0 = center[Geom::X] + rx * cos(s); 1140 gdouble y0 = center[Geom::Y] + ry * sin(s); 1145 gdouble x3 = center[Geo [all...] |
H A D | sp-marker.h | 104 const char *generate_marker (std::vector<Inkscape::XML::Node*> &reprs, Geom::Rect bounds, SPDocument *document, Geom::Point center, Geom::Affine move);
|
/inkscape/src/ui/tools/ |
H A D | rect-tool.h | 46 Geom::Point center; member in class:Inkscape::UI::Tools::RectTool
|
H A D | star-tool.h | 45 Geom::Point center; member in class:Inkscape::UI::Tools::StarTool
|
H A D | arc-tool.h | 56 Geom::Point center; member in class:Inkscape::UI::Tools::ArcTool
|
H A D | box3d-tool.h | 64 Geom::Point center; member in class:Inkscape::UI::Tools::Box3dTool
|
H A D | spiral-tool.h | 47 Geom::Point center; member in class:Inkscape::UI::Tools::SpiralTool
|
H A D | spray-tool.cpp | 137 // Restore the center position (it's changed because the bbox center changed) 431 // be uniformily distributed on the disk (more at the center and less at the boundary). 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); 494 Geom::Point center, 542 sp_spray_transform_path(item, path, Geom::Scale(_scale), center); 543 sp_spray_transform_path(item, path, Geom::Scale(scale), center); 544 sp_spray_transform_path(item, path, Geom::Rotate(angle), center); 490 fit_item(SPDesktop *desktop, SPItem *item, Geom::OptRect bbox, Geom::Point &move, Geom::Point center, gint mode, double angle, double &_scale, double scale, bool picker, bool pick_center, bool pick_inverse_value, bool pick_fill, bool pick_stroke, bool pick_no_overlap, bool over_no_transparent, bool over_transparent, bool no_overlap, double offset, SPCSSAttr *css, bool trace_scale, int pick, bool do_trace, bool pick_to_size, bool pick_to_presence, bool pick_to_color, bool pick_to_opacity, bool invert_picked, double gamma_picked , double rand_picked) argument 936 Geom::Point center = item->getCenter(); local 1041 Geom::Point center = parent_item->getCenter(); local 1072 Geom::Point center=item->getCenter(); local [all...] |
H A D | star-tool.cpp | 173 this->center = Inkscape::setup_for_drag_start(desktop, this, event); 175 /* Snap center */ 178 m.freeSnapReturnByRef(this->center, Inkscape::SNAPSOURCE_NODE_HANDLE); 386 Geom::Point const p0 = desktop->dt2doc(this->center); 425 // Set transform center, so that odd stars rotate correctly 427 this->star->setCenter(this->center);
|
H A D | spiral-tool.cpp | 159 this->center = Inkscape::setup_for_drag_start(desktop, this, event); 163 m.freeSnapReturnByRef(this->center, Inkscape::SNAPSOURCE_NODE_HANDLE); 367 Geom::Point const p0 = desktop->dt2doc(this->center);
|
/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 | 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...] |
H A D | ellipse.cpp | 42 : _center(c.center()) 104 Point p(ray(X) * cosrot + center(X), ray(X) * sinrot + center(Y)); 112 ret.setTranslation(center()); 121 Affine ret = Translate(-center()) * Rotate(-_angle) * Scale(1/ray(X), 1/ray(Y)); 188 D = -2 * A * center(X) - B * center(Y); 189 E = -2 * C * center(Y) - B * center(X); 190 F = A * center( [all...] |
H A D | bezier-utils.cpp | 66 static Point darray_center_tangent(Point const d[], unsigned center, unsigned length); 695 * Approximate unit tangents at endpoints and "center" of digitized curve 701 * Unlike the center and right versions, this calculates the tangent in 736 * Unlike the center and right versions, this calculates the tangent in 797 * Estimates the (backward) tangent at d[center], by averaging the two 798 * segments connected to d[center] (and then normalizing the result). 803 * \pre (0 \< center \< len - 1) and d is uniqued (at least in 804 * the immediate vicinity of \a center). 808 unsigned const center, 811 assert( center ! [all...] |
H A D | path-sink.cpp | 75 Point c = e.center();
|
/inkscape/src/helper/ |
H A D | geom-pathstroke.cpp | 55 Geom::Point center = curve(t) + radius*normal; local 56 return Geom::Circle(center, fabs(radius)); 102 Geom::Point center = p + normal * radius; local 103 return Geom::Circle( center, fabs(radius) ); 235 // std::cout << " outer_circle: radius: " << outer_circle.radius() << " center: " << outer_circle.center() << std::endl; 272 // Find center of new circle: it is at the intersection of the bisector 292 Geom::Point n1 = (circle1.center() - point1).normalized(); // Always points towards center 293 Geom::Point n2 = (circle2.center() 572 Geom::Point center = local [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...] |