Searched defs:y1 (Results 1 - 25 of 48) sorted by relevance

12

/inkscape/src/
H A Dsp-linear-gradient.h21 SVGLength y1; member in class:SPLinearGradient
H A Dsp-line.h29 SVGLength y1; member in class:SPLine
H A Dsp-item-transform.cpp96 * @param y1 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
123 gdouble h1 = y1 - y0;
251 * @param y1 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
273 gdouble h1 = y1 - y0;
/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
185 y1 = y0 + len * sin(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.cpp115 Piecewise<SBasis> y1 = y ; local
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
94 y1 = area.bottom();
105 y1 -= floor(offset[Y]);
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);
24 item->y1 = y1;
27 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
34 item->y1 = 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;
129 item->y1 = round(MIN(s[Geom::Y], e[Geom::Y]) - 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])) {
156 e[Geom::Y] = y1;
H A Dsp-canvas-item.h59 double y1; 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;
142 item->y1 = round( min_y - 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,
89 @param y1
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)
422 * 1) a[0] * x0 + a[2] * y1 + a[4] = 0.0
423 * 2) a[1] * x0 + a[3] * y1 + a[5] = 0.0
424 * 3) a[0] * x1 + a[2] * y1 + a[4] = width
431 * (2,4) a[3] * y0 - a[3] * y1 = height
432 * a[3] = height / (y0 - y1)
434 * (2) a[5] = -a[3] * y1
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.h180 y1 = other.y1;
196 y1 = 0.0;
217 y1 != other.y1 ||
244 double y1; member in class:Inkscape::Extension::Internal::GradientInfo
H A Dmetafile-print.cpp343 gv.p1 = Geom::Point(lg->x1.computed, lg->y1.computed); // start
382 double x1, y1, x2, y2; local
386 y1 = ctr[Y] + sin(F) * rx * cos(0) + cos(F) * ry * sin(0);
391 sprintf(text, " M %f,%f A %f %f %f 0 0 %f %f A %f %f %f 0 0 %f %f z", x1, y1, rx, ry, F * 360. / (2.*M_PI), x2, y2, rx, ry, F * 360. / (2.*M_PI), x1, y1);
432 double x1, y1, x2, y2; local
436 y1 = ctr[Y] + sin(F) * rx * cos(0) + cos(F) * ry * sin(0);
442 x1, y1, rx, ry, F * 360. / (2.*M_PI), x2, y2, rx, ry, F * 360. / (2.*M_PI), x1, y1);
/inkscape/src/libavoid/
H A Dgeomtypes.cpp272 static void shorten_line(double& x1, double& y1, double& x2, double& y2,
280 double rise = y1 - y2;
292 y1 = y2 = y1 - (rise / 2);
300 y1 = y2;
308 y2 = y1;
316 int sign = (y1 < y2) ? 1: -1;
320 y1 += (sign * shorten_length);
328 else if (y1 == y2)
345 int ypos = (y1 < y
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
451 double y1 = simplified.ps[0].y; local
469 double y1 = simplified.ps[(simpSize + j - 1) % simpSize].y; 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 Dgeneric-rect.h87 GenericRect(C x0, C y0, C x1, C y1) { argument
89 f[Y] = CInterval(y0, y1);
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.cpp150 double y1 = 0.0; local
176 y1 = pt[1].y;
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);
454 octreeBuildArea(pool, rgbmap, &ref2, xm, y1, x2, y2, ncolor);
459 octreeBuildArea(pool, rgbmap, &ref1, x1, y1, x2, ym, 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.cpp178 gdouble y1 = 0; local
194 y1 = y0 + Quantity::convert(gtk_adjustment_get_value(a_h), unit, "px");;
204 y1 = y0 + yrel * bbox_user->dimensions()[Geom::Y];
213 y1 = y0 + xrel * bbox_user->dimensions()[Geom::Y];
221 double sv = fabs(y1 - bbox_user->max()[Geom::Y]);
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 604 milliseconds

12