Searched defs:x1 (Results 1 - 25 of 49) sorted by relevance

12

/inkscape/src/
H A Dsp-linear-gradient.h20 SVGLength x1; member in class:SPLinearGradient
H A Dsp-line.h28 SVGLength x1; member in class:SPLine
H A Dsp-item-transform.cpp95 * @param x1 Coordinate of the target visual bounding box
101 Geom::Affine get_scale_transform_for_uniform_stroke(Geom::Rect const &bbox_visual, gdouble stroke_x, gdouble stroke_y, bool transform_stroke, bool preserve, gdouble x0, gdouble y0, gdouble x1, gdouble y1) argument
122 gdouble w1 = x1 - x0; // can have any sign
250 * @param x1 Coordinate of the target visual bounding box
256 Geom::Affine get_scale_transform_for_variable_stroke(Geom::Rect const &bbox_visual, Geom::Rect const &bbox_geom, bool transform_stroke, bool preserve, gdouble x0, gdouble y0, gdouble x1, gdouble y1) argument
272 gdouble w1 = x1 - x0; // can have any sign
/inkscape/src/live_effects/
H A Dspiro-converters.cpp60 ConverterSPCurve::curveto(double x1, double y1, double x2, double y2, double x3, double y3, bool close_last) argument
62 if ( IS_FINITE(x1) && IS_FINITE(y1) && IS_FINITE(x2) && IS_FINITE(y2) ) {
63 _curve.curveto(x1, y1, x2, y2, x3, y3);
112 ConverterPath::curveto(double x1, double y1, double x2, double y2, double x3, double y3, bool close_last) argument
114 if ( IS_FINITE(x1) && IS_FINITE(y1) && IS_FINITE(x2) && IS_FINITE(y2) ) {
115 _path.appendNew<Geom::CubicBezier>(Geom::Point(x1, y1), Geom::Point(x2, y2), Geom::Point(x3, y3));
H A Dlpe-ellipse_5pts.cpp169 double x0, y0, x1, y1, x2, y2, x3, y3; local
184 x1 = x0 + len * cos(s + M_PI_2);
190 p.appendNew<Geom::CubicBezier>(Geom::Point(x1,y1), Geom::Point(x2,y2), Geom::Point(x3,y3));
H A Dlpe-envelope.cpp114 Piecewise<SBasis> x1 = x ; local
132 x1*=scaling1;
172 output_y = ybis*(compose((uskeleton1),x1) + y1*compose(n1,x1) )
/inkscape/src/display/
H A Dnr-filter-offset.cpp90 double x0, y0, x1, y1; local
93 x1 = area.right();
99 x1 -= floor(offset[X]);
107 area = Geom::IntRect(x0, y0, x1, y1);
H A Dsp-canvas-util.cpp20 void sp_canvas_update_bbox(SPCanvasItem *item, int x1, int y1, int x2, int y2) argument
22 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
23 item->x1 = x1;
27 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
33 item->x1 = 0.0;
H A Dsp-ctrlline.cpp111 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
122 item->x1 = item->x2 = item->y1 = item->y2 = 0;
128 item->x1 = round(MIN(s[Geom::X], e[Geom::X]) - 1);
133 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
143 canvas->requestRedraw(x1, y1, x2, y2);
150 void SPCtrlLine::setCoords(gdouble x0, gdouble y0, gdouble x1, gdouble y1) argument
152 if (DIFFER(x0, s[Geom::X]) || DIFFER(y0, s[Geom::Y]) || DIFFER(x1, e[Geom::X]) || DIFFER(y1, e[Geom::Y])) {
155 e[Geom::X] = x1;
H A Dsp-canvas-item.h58 double x1; member in struct:SPCanvasItem
H A Dsp-ctrlcurve.cpp103 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
113 item->x1 = item->x2 = item->y1 = item->y2 = 0;
141 item->x1 = round( min_x - 1 );
146 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
156 void SPCtrlCurve::setCoords( gdouble x0, gdouble y0, gdouble x1, gdouble y1, argument
161 Geom::Point q1( x1, y1 );
H A Dguideline.cpp32 static void sp_guideline_drawline (SPCanvasBuf *buf, gint x0, gint y0, gint x1, gint y1, guint32 rgba);
280 sp_guideline_drawline (SPCanvasBuf *buf, gint x0, gint y0, gint x1, gint y1, guint32 /*rgba*/) argument
283 cairo_line_to(buf->ct, x1 + 0.5, y1 + 0.5);
H A Dcurve.cpp241 * Calls SPCurve::quadto( Geom::Point(x1,y1), Geom::Point(x2,y2) )
245 SPCurve::quadto(double x1, double y1, double x2, double y2) argument
247 quadto( Geom::Point(x1,y1), Geom::Point(x2,y2) );
261 * Calls SPCurve::curveto( Geom::Point(x0,y0), Geom::Point(x1,y1), Geom::Point(x2,y2) )
265 SPCurve::curveto(double x0, double y0, double x1, double y1, double x2, double y2) argument
267 curveto( Geom::Point(x0,y0), Geom::Point(x1,y1), Geom::Point(x2,y2) );
/inkscape/src/helper/
H A Dpixbuf-ops.cpp68 double x0, double y0, double x1, double y1,
73 sp_generate_internal_bitmap(doc, filename, x0, y0, x1, y1,
88 @param x1
97 double x0, double y0, double x1, double y1,
113 Geom::Rect screen=Geom::Rect(Geom::Point(x0,y0), Geom::Point(x1, y1));
67 sp_export_jpg_file(SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1, unsigned width, unsigned height, double xdpi, double ydpi, unsigned long bgcolor, double quality,GSList *items) argument
96 sp_generate_internal_bitmap(SPDocument *doc, gchar const * , double x0, double y0, double x1, double y1, unsigned width, unsigned height, double xdpi, double ydpi, unsigned long , GSList *items_only) argument
H A Dpng-write.cpp385 double x0, double y0, double x1, double y1,
392 return sp_export_png_file(doc, filename, Geom::Rect(Geom::Point(x0,y0),Geom::Point(x1,y1)),
421 /* This calculation is only valid when assumed that (x0,y0)= area.corner(0) and (x1,y1) = area.corner(2)
424 * 3) a[0] * x1 + a[2] * y1 + a[4] = width
429 * (1,3) a[0] * x1 - a[0] * x0 = width
430 * a[0] = width / (x1 - x0)
384 sp_export_png_file(SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1, unsigned long int width, unsigned long int height, double xdpi, double ydpi, unsigned long bgcolor, unsigned int (*status) (float, void *), void *data, bool force_overwrite, const std::vector<SPItem*> &items_only) argument
/inkscape/src/extension/internal/
H A Dodf.h179 x1 = other.x1;
195 x1 = 0.0;
216 x1 != other.x1 ||
243 double x1; member in class:Inkscape::Extension::Internal::GradientInfo
/inkscape/src/libavoid/
H A Dgeomtypes.cpp272 static void shorten_line(double& x1, double& y1, double& x2, double& y2,
281 double run = x1 - x2;
291 x1 = x2 = x1 - (run / 2);
299 x1 = x2;
307 x2 = x1;
313 if (x1 == x2)
331 int sign = (x1 < x2) ? 1: -1;
335 x1 += (sign * shorten_length);
344 int xpos = (x1 < x
159 COLA_ASSERT(index < size()); const Polygon& poly = *(ps[index].first); unsigned short poly_index = ps[index].second; COLA_ASSERT(poly_index < poly.size()); return poly.ps[poly_index]; } void PolygonInterface::getBoundingRect(double *minX, double *minY, double *maxX, double *maxY) const { double progressiveMinX = DBL_MAX; double progressiveMinY = DBL_MAX; double progressiveMaxX = -DBL_MAX; double progressiveMaxY = -DBL_MAX; for (size_t i = 0; i < size(); ++i) { progressiveMinX = std::min(progressiveMinX, at(i).x); progressiveMinY = std::min(progressiveMinY, at(i).y); progressiveMaxX = std::max(progressiveMaxX, at(i).x); progressiveMaxY = std::max(progressiveMaxY, at(i).y); } if (minX) { *minX = progressiveMinX; } if (maxX) { *maxX = progressiveMaxX; } if (minY) { *minY = progressiveMinY; } if (maxY) { *maxY = progressiveMaxY; } } Polygon::Polygon() : PolygonInterface() { clear(); } Polygon::Polygon(const int pn) : PolygonInterface(), ps(pn) { } Polygon::Polygon(const PolygonInterface& poly) : PolygonInterface(), _id(poly.id()), ps(poly.size()) { for (size_t i = 0; i < poly.size(); ++i) { ps[i] = poly.at(i); } } void Polygon::clear(void) { ps.clear(); ts.clear(); } bool Polygon::empty(void) const { return ps.empty(); } size_t Polygon::size(void) const { return ps.size(); } int Polygon::id(void) const { return _id; } const Point& Polygon::at(size_t index) const { COLA_ASSERT(index < size()); return ps[index]; } static const unsigned int SHORTEN_NONE = 0; static const unsigned int SHORTEN_START = 1; static const unsigned int SHORTEN_END = 2; static const unsigned int SHORTEN_BOTH = SHORTEN_START | SHORTEN_END; static void shorten_line(double& x1, double& y1, double& x2, double& y2, const unsigned int mode, const double shorten_length) { if (mode == SHORTEN_NONE) { return; } double rise = y1 - y2; double run = x1 - x2; double disty = fabs(rise); double distx = fabs(run); if ((mode == SHORTEN_BOTH) && (((distx > disty) && ((shorten_length * 2) > distx)) || ((disty >= distx) && ((shorten_length * 2) > disty)))) { x1 = x2 = x1 - (run / 2); y1 = y2 = y1 - (rise / 2); return; } else if ((mode == SHORTEN_START) && (((distx > disty) argument
450 double x1 = simplified.ps[0].x; local
468 double x1 = simplified.ps[(simpSize + j - 1) % simpSize].x; local
[all...]
/inkscape/src/2geom/
H A Drect.h104 Rect(Coord x0, Coord y0, Coord x1, Coord y1) : Base(x0, y0, x1, y1) {} argument
187 OptRect(Coord x0, Coord y0, Coord x1, Coord y1) : Base(x0, y0, x1, y1) {} argument
H A Dbasic-intersection.cpp246 const double x1 = gsl_vector_get (x, 1); local
249 ((struct rparams *) params)->B(x1);
291 J*(x1 - x0) = f(x0)
H A Dgeneric-rect.h87 GenericRect(C x0, C y0, C x1, C y1) { argument
88 f[X] = CInterval(x0, x1);
367 GenericOptRect(C x0, C y0, C x1, C y1) : Base(CRect(x0, y0, x1, y1)) {} argument
/inkscape/src/livarot/
H A DPath.h287 double x1, y1, x2, y2; member in struct:Path::outline_callback_data
/inkscape/src/svg/
H A Dpath-string.h112 Geom::Coord x1, Geom::Coord y1,
115 return curveTo(Geom::Point(x0, y0), Geom::Point(x1, y1), Geom::Point(x, y));
111 curveTo(Geom::Coord x0, Geom::Coord y0, Geom::Coord x1, Geom::Coord y1, Geom::Coord x, Geom::Coord y) argument
/inkscape/src/trace/potrace/
H A Dinkscape-potrace.cpp149 double x1 = 0.0; local
175 x1 = pt[1].x;
182 data.lineTo(x1, y1).lineTo(x2, y2);
185 data.curveTo(x0, y0, x1, y1, x2, y2);
/inkscape/src/trace/
H A Dquantize.cpp440 * included in the specified (x1,y1)--(x2,y2) rectangle.
443 int x1, int y1, int x2, int y2, int ncolor)
445 int dx = x2 - x1, dy = y2 - y1;
446 int xm = x1 + dx/2, ym = y1 + dy/2;
450 ocnodeLeaf(pool, ref, rgbmap->getPixel(rgbmap, x1, y1));
453 octreeBuildArea(pool, rgbmap, &ref1, x1, y1, xm, y2, ncolor);
459 octreeBuildArea(pool, rgbmap, &ref1, x1, y1, x2, ym, ncolor);
460 octreeBuildArea(pool, rgbmap, &ref2, x1, ym, x2, y2, ncolor);
442 octreeBuildArea(pool<Ocnode> *pool, RgbMap *rgbmap, Ocnode **ref, int x1, int y1, int x2, int y2, int ncolor) argument
/inkscape/src/widgets/
H A Dselect-toolbar.cpp177 gdouble x1 = 0; local
192 x1 = x0 + Quantity::convert(gtk_adjustment_get_value(a_w), unit, "px");
202 x1 = x0 + xrel * bbox_user->dimensions()[Geom::X];
211 x1 = x0 + yrel * bbox_user->dimensions()[Geom::X];
219 double sh = fabs(x1 - bbox_user->max()[Geom::X]);
251 scaler = get_scale_transform_for_variable_stroke (*bbox_vis, *bbox_geom, transform_stroke, preserve, x0, y0, x1, y1);
257 scaler = get_scale_transform_for_uniform_stroke (*bbox_geom, 0, 0, false, false, x0, y0, x1, y1);

Completed in 521 milliseconds

12