/inkscape/src/ |
H A D | sp-rect.cpp | 48 this->readAttr("rx"); 91 if (!this->rx.read(value) || this->rx.value <= 0.0) { 92 this->rx.unset(); 94 this->rx.update( em, ex, w ); 125 this->rx.update(em, ex, w); 143 if (this->rx._set) { 144 sp_repr_set_svg_length(repr, "rx", this->rx); 181 double const rx local 345 setVisibleRx(gdouble rx) argument [all...] |
H A D | sp-rect.h | 37 void setVisibleRx(double rx); 45 void setVisibleWidth(double rx); 70 SVGLength rx; member in class:SPRect
|
H A D | sp-ellipse.h | 39 // internally with these variables. (Circle radius is rx). 42 SVGLength rx; member in class:SPGenericEllipse 79 void position_set(double x, double y, double rx, double ry);
|
H A D | sp-ellipse.cpp | 75 this->readAttr("sodipodi:rx"); 91 this->readAttr("rx"); 101 // std::cout << " rx: " << rx.write() << std::endl; 108 // There are multiple ways to set internal cx, cy, rx, and ry (via SVG attributes or Sodipodi 137 if( t.read(value) && t.value > 0.0 ) rx = t; 138 rx.update( em, ex, w ); 151 this->ry = this->rx = t; 153 rx.update( em, ex, d ); 201 this->rx 647 position_set(gdouble x, gdouble y, gdouble rx, gdouble ry) argument [all...] |
/inkscape/share/extensions/ink2canvas/ |
H A D | svg.py | 158 rx = self.attr("rx") or 0 160 return x, y, w, h, rx, ry 180 rx = self.attr("rx") 182 return cx, cy, rx, ry 186 cx, cy, rx, ry = self.get_data() 196 self.ctx.bezierCurveTo(cx + (KAPPA * rx), cy - ry, cx + rx, cy - (KAPPA * ry), cx + rx, c [all...] |
H A D | canvas.py | 72 def createRadialGradient(self, href, cx1, cy1, rx, cx2, cy2, ry): 73 data = (href, cx1, cy1, rx, cx2, cy2, ry) 148 def rect(self, x, y, w, h, rx = 0, ry = 0): 149 if rx or ry: 153 self.quadraticCurveTo(x, y+h, x+rx, y+h) 154 self.lineTo(x+w-rx, y+h) 157 self.quadraticCurveTo(x+w, y, x+w-rx, y) 158 self.lineTo(x+rx, y) 176 def scale(self, rx, ry): 177 self.write("ctx.scale(%f, %f);" % (rx, r [all...] |
/inkscape/src/2geom/ |
H A D | cairo-path-sink.h | 65 void arcTo(Coord rx, Coord ry, Coord angle,
|
H A D | cairo-path-sink.cpp | 71 void CairoPathSink::arcTo(double rx, double ry, double angle, argument 74 EllipticalArc arc(_current_point, rx, ry, angle, large_arc, sweep, p);
|
H A D | path-sink.h | 69 virtual void arcTo(Coord rx, Coord ry, Coord angle, 153 void arcTo(Coord rx, Coord ry, Coord angle, argument 160 _path.template appendNew<EllipticalArc>(rx, ry, angle,
|
H A D | ellipse.h | 79 Ellipse(Coord cx, Coord cy, Coord rx, Coord ry, Coord angle) argument 81 , _rays(rx, ry) 97 void set(Coord cx, Coord cy, Coord rx, Coord ry, Coord a) { argument 100 _rays[X] = rx;
|
H A D | elliptical-arc.h | 84 EllipticalArc( Point const &ip, Coord rx, Coord ry, argument 90 , _ellipse(0, 0, rx, ry, rot_angle) 141 void set( Point const &ip, double rx, double ry, argument 148 _ellipse.setRays(rx, ry);
|
H A D | svg-path-writer.h | 56 void arcTo(double rx, double ry, double angle,
|
H A D | svg-path-parser.cpp | 1205 void SVGPathParser::_arcTo(Coord rx, Coord ry, Coord angle, argument 1212 _pushCurve(new EllipticalArc(_current, rx, ry, angle, large_arc, sweep, p)); 1429 double rx = _pop(); local 1431 _arcTo(rx, ry, angle, large_arc, sweep, point); 1535 double rx = _pop(); local 1537 _arcTo(rx, ry, angle, large_arc, sweep, point);
|
/inkscape/share/extensions/ |
H A D | radiusrand.py | 21 def randomize((x, y), rx, ry, norm): 23 r = abs(random.normalvariate(0.0,0.5*max(rx, ry))) 25 r = random.uniform(0.0,max(rx, ry)) 27 x += math.cos(a)*rx
|
H A D | pathmodifier.py | 163 rx=float(node.get('rx')) 166 rx=0 170 d ='M %f,%f '%(x+rx,y) 171 d+='L %f,%f '%(x+w-rx,y) 172 d+='A %f,%f,%i,%i,%i,%f,%f '%(rx,ry,0,0,1,x+w,y+ry) 174 d+='A %f,%f,%i,%i,%i,%f,%f '%(rx,ry,0,0,1,x+w-rx,y+h) 175 d+='L %f,%f '%(x+rx,y+h) 176 d+='A %f,%f,%i,%i,%i,%f,%f '%(rx,r [all...] |
H A D | simpletransform.py | 226 rx = node.get('r') 227 if rx is not None: 228 ry = rx 230 rx = node.get('rx') 234 x1 = cx - float(rx) 235 x2 = cx + float(rx) 237 'A' + rx + ',' + ry + ' 0 1 0 %f,%f' % (x2, cy) + \ 238 'A' + rx + ',' + ry + ' 0 1 0 %f,%f' % (x1, cy)
|
H A D | cubicsuperpath.py | 46 rx,ry,teta,longflag,sweepflag,x2,y2=params[:] 49 if rx==0 or ry==0 or A==B: 51 mat=matprod((rotmat(teta),[[1/rx,0],[0,1/ry]],rotmat(-teta))) 93 mat=matprod((rotmat(teta),[[rx,0],[0,ry]],rotmat(-teta)))
|
/inkscape/src/livarot/ |
H A D | ShapeSweep.cpp | 108 _pts[i].x = pData[i].rx; 114 eData[i].rdx = pData[getEdge(i).en].rx - pData[getEdge(i).st].rx; 202 double lastChange = a->pData[0].rx[1] - 1.0; 222 || (a->pData[curAPt].rx[1] > ptX[1] 223 || (a->pData[curAPt].rx[1] == ptX[1] 224 && a->pData[curAPt].rx[0] > ptX[0]))) 234 ptX = ptSh->pData[nPt].rx; 242 ptX = ptSh->pData[nPt].rx; 256 pData[lastPointNo].rx [all...] |
H A D | sweep-tree.cpp | 85 bOrig = src->pData[src->getEdge(bord).st].rx; 171 bOrig = src->pData[src->getEdge(bord).st].rx; 326 fromP = src->pData[fromPt].rx; 373 if ((insertL->src->pData[ils].rx[0] != fromP[0] 374 || insertL->src->pData[ils].rx[1] != fromP[1]) 375 && (insertL->src->pData[ile].rx[0] != fromP[0] 376 || insertL->src->pData[ile].rx[1] != fromP[1])) 415 if ((insertR->src->pData[ils].rx[0] != fromP[0] 416 || insertR->src->pData[ils].rx[1] != fromP[1]) 417 && (insertR->src->pData[ile].rx[ [all...] |
H A D | PathOutline.cpp | 112 rev->ArcTo (nextX, nData->rx,nData->ry,nData->angle,nData->large,nData->clockwise); 292 rev->ArcTo (nextX, nData->rx,nData->ry,nData->angle,nData->large,nData->clockwise); 621 callsData.d.a.rx = nData->rx; 857 || (fabs (nData->rx) < 0.00001 936 double const rx = fin.rx; local 944 if (rx <= 0.0001 || ry <= 0.0001) 951 csex /= rx; 1000 csdx *= rx; [all...] |
/inkscape/src/ui/tools/ |
H A D | rect-tool.h | 48 gdouble rx; /* roundness radius (x direction) */ member in class:Inkscape::UI::Tools::RectTool
|
/inkscape/src/svg/ |
H A D | path-string.h | 129 PathString &arcTo(Geom::Coord rx, Geom::Coord ry, Geom::Coord rot, argument 134 _appendValue(Geom::Point(rx,ry)); 171 double rx; local 172 _abs_state.append(x, rx); 173 _rel_state.appendRelative(rx, _current_point[Geom::X]); 174 if (sc) _current_point[Geom::X] = rx;
|
/inkscape/src/extension/internal/ |
H A D | metafile-print.cpp | 369 rx,ry are the radii of the ellipse's axes 378 Geom::PathVector PrintMetafile::center_ellipse_as_SVG_PathV(Geom::Point ctr, double rx, double ry, double F) argument 385 x1 = ctr[X] + cos(F) * rx * cos(0) + sin(-F) * ry * sin(0); 386 y1 = ctr[Y] + sin(F) * rx * cos(0) + cos(F) * ry * sin(0); 387 x2 = ctr[X] + cos(F) * rx * cos(M_PI) + sin(-F) * ry * sin(M_PI); 388 y2 = ctr[Y] + sin(F) * rx * cos(M_PI) + cos(F) * ry * sin(M_PI); 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); 428 Geom::PathVector PrintMetafile::center_elliptical_hole_as_SVG_PathV(Geom::Point ctr, double rx, double ry, double F) argument 435 x1 = ctr[X] + cos(F) * rx * co [all...] |
H A D | metafile-print.h | 104 static Geom::PathVector center_ellipse_as_SVG_PathV(Geom::Point ctr, double rx, double ry, double F); 106 static Geom::PathVector center_elliptical_hole_as_SVG_PathV(Geom::Point ctr, double rx, double ry, double F);
|
/inkscape/src/ui/dialog/ |
H A D | polar-arrange-tab.cpp | 213 static Geom::Point calcPoint(float cx, float cy, float rx, float ry, float angle) argument 215 return Geom::Point(cx + cos(angle) * rx, cy + sin(angle) * ry); 328 float rx, ry; // Radiuses of the ellipse in x and y direction local 342 rx = referenceEllipse->rx.value; 358 rx = radiusX.getValue("px"); 384 Geom::Point newLocation = calcPoint(cx, cy, rx, ry, angle) * transformation;
|