/inkscape/src/helper/ |
H A D | geom-curves.h | 6 * Specific curve type functions for Inkscape, not provided by lib2geom. 18 #include <2geom/bezier-curve.h> 27 // the curve can be a quad/cubic bezier, but could still be a perfect straight line 29 Geom::BezierCurve const *curve = dynamic_cast<Geom::BezierCurve const *>(&c); member in class:Geom 30 if (curve) { 31 Geom::Line line(curve->initialPoint(), curve->finalPoint()); 32 std::vector<Geom::Point> pts = curve->controlPoints();
|
/inkscape/src/live_effects/ |
H A D | lpe-clone-original.cpp | 11 #include "display/curve.h" 28 void LPECloneOriginal::doEffect (SPCurve * curve) argument 33 curve->set_pathvector(linked_pathv);
|
H A D | spiro-converters.h | 26 ConverterSPCurve(SPCurve &curve) argument 27 : _curve(curve)
|
H A D | lpe-bounding-box.cpp | 11 #include "display/curve.h" 16 #include "2geom/bezier-curve.h" 37 void LPEBoundingBox::doEffect (SPCurve * curve) argument 39 if (curve) { 50 curve->set_pathvector(out);
|
H A D | lpe-fill-between-many.cpp | 11 #include "display/curve.h" 16 #include "2geom/bezier-curve.h" 36 void LPEFillBetweenMany::doEffect (SPCurve * curve) argument 63 curve->set_pathvector(res_pathv);
|
H A D | lpe-fill-between-strokes.cpp | 11 #include "display/curve.h" 16 #include "2geom/bezier-curve.h" 38 void LPEFillBetweenStrokes::doEffect (SPCurve * curve) argument 40 if (curve) { 68 curve->set_pathvector(result_linked_pathv); 71 curve->set_pathvector(result_linked_pathv); 74 curve->set_pathvector(result_second_pathv); 86 curve->set_pathvector(result_pathv); 98 curve->set_pathvector(result_pathv);
|
H A D | lpe-test-doEffect-stack.cpp | 40 LPEdoEffectStackTest::doEffect (SPCurve * curve) argument 43 Effect::doEffect(curve);
|
H A D | lpe-spiro.cpp | 9 #include "display/curve.h" 38 LPESpiro::doEffect(SPCurve * curve) argument 40 sp_spiro_do_effect(curve); 43 void sp_spiro_do_effect(SPCurve *curve){ argument 48 Geom::PathVector const original_pathv = curve->get_pathvector(); 49 guint len = curve->get_segment_count() + 2; 51 curve->reset(); 69 Geom::Path::const_iterator curve_it1 = path_it->begin(); // incoming curve 70 Geom::Path::const_iterator curve_it2 = ++(path_it->begin()); // outgoing curve 135 Spiro::spiro_run(path, sp_len, *curve); [all...] |
H A D | lpe-attach-path.cpp | 12 #include "display/curve.h" 17 #include "2geom/bezier-curve.h" 31 start_path_curve_start(_("Start path curve start:"), _("Starting curve"), "startcurvestart", &wr, this, Geom::Point(20,0)/*, true*/), 32 start_path_curve_end(_("Start path curve end:"), _("Ending curve"), "startcurveend", &wr, this, Geom::Point(20,0)/*, true*/), 35 end_path_curve_start(_("End path curve start:"), _("Starting curve"), "endcurvestart", &wr, this, Geom::Point(20,0)/*, true*/), 36 end_path_curve_end(_("End path curve end:"), _("Ending curve"), "endcurveen 65 doEffect(SPCurve * curve) argument [all...] |
H A D | lpe-parallel.cpp | 18 #include "display/curve.h" 70 SPCurve const *curve = SP_SHAPE(lpeitem)->_curve; local 72 A = *(curve->first_point()); 73 B = *(curve->last_point());
|
H A D | lpe-roughen.cpp | 19 #include "display/curve.h" 195 void LPERoughen::doEffect(SPCurve *curve) argument 197 Geom::PathVector const original_pathv = pathv_to_linear_and_cubic_beziers(curve->get_pathvector()); 198 curve->reset(); 304 curve->append(nCurve, false);
|
/inkscape/src/ui/ |
H A D | draw-anchor.cpp | 21 #include "display/curve.h" 32 SPDrawAnchor *sp_draw_anchor_new(Inkscape::UI::Tools::FreehandBase *dc, SPCurve *curve, bool start, Geom::Point delta) argument 42 a->curve = curve; 43 curve->ref(); 61 if (anchor->curve) { 62 anchor->curve->unref();
|
H A D | draw-anchor.h | 27 SPCurve *curve; member in struct:SPDrawAnchor 35 SPDrawAnchor *sp_draw_anchor_new(Inkscape::UI::Tools::FreehandBase *dc, SPCurve *curve, bool start,
|
/inkscape/src/ |
H A D | sp-image.h | 19 #include "display/curve.h" 43 SPCurve *curve; // This curve is at the image's boundary for snapping member in class:SPImage 72 /* Return duplicate of curve or NULL */
|
H A D | sp-polyline.cpp | 18 #include "display/curve.h" 38 SPCurve * curve; local 47 curve = new SPCurve (); 89 curve->lineto(x, y); 91 curve->moveto(x, y); 96 this->setCurve(curve, TRUE); 97 curve->unref();
|
H A D | sp-use-reference.cpp | 17 #include "display/curve.h" 209 SPCurve *curve = NULL; local 213 curve = SP_SHAPE(item)->getCurve(); 217 curve = SP_TEXT(item)->getNormalizedBpath(); 224 if (curve == NULL) 228 originalPath->LoadPathVector(curve->get_pathvector(), item->transform, true); 229 curve->unref();
|
H A D | box3d-side.cpp | 18 #include "display/curve.h" 61 SPCurve const *curve = this->_curve; local 64 if ( !curve ) { 68 char *d = sp_svg_write_path ( curve->get_pathvector() ); 198 * This is very important for LPEs to work properly! (the bbox might be recalculated depending on the curve in shape)*/
|
H A D | snapped-curve.cpp | 2 * \file src/snapped-curve.cpp 11 #include "snapped-curve.h" 15 Inkscape::SnappedCurve::SnappedCurve(Geom::Point const &snapped_point, Geom::Point const &tangent, int num_path, int num_segm, Geom::Coord const &snapped_distance, Geom::Coord const &snapped_tolerance, bool const &always_snap, bool const &fully_constrained, Geom::Curve const *curve, SnapSourceType source, long source_num, SnapTargetType target, Geom::OptRect target_bbox) argument 22 _curve = curve; 61 Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedCurve const &curve, Geom::Point const &p, Geom::Affine dt2doc) const argument 68 Geom::Crossings cs = crossings(*(this->_curve), *(curve._curve)); 79 if (this->_num_path == curve._num_path) { 81 if (this->_num_segm == curve._num_segm) continue; 83 if (this->_num_segm == curve._num_segm + 1 && (*i).ta == 0 && (*i).tb == 1) continue; 84 if (this->_num_segm + 1 == curve [all...] |
H A D | sp-polygon.cpp | 16 #include "display/curve.h" 63 // Tolerable workaround: we need to update the object's curve before we set points= 116 SPCurve *curve = new SPCurve(); local 145 curve->lineto(x, y); 147 curve->moveto(x, y); 158 curve->closepath(); 161 this->setCurve(curve, TRUE); 162 curve->unref();
|
/inkscape/src/live_effects/parameter/ |
H A D | originalpath.cpp | 22 #include "display/curve.h" 90 SPCurve *curve = NULL; local 92 curve = SP_SHAPE(linked_obj)->getCurveBeforeLPE(); 95 curve = SP_TEXT(linked_obj)->getNormalizedBpath(); 98 if (curve == NULL) { 99 // curve invalid, set empty pathvector 102 _pathvector = curve->get_pathvector(); 103 curve->unref();
|
H A D | originalpatharray.cpp | 29 #include "display/curve.h" 387 SPCurve *curve = NULL; local 389 curve = SP_SHAPE(linked_obj)->getCurveBeforeLPE(); 392 curve = SP_TEXT(linked_obj)->getNormalizedBpath(); 395 if (curve == NULL) { 396 // curve invalid, set empty pathvector 399 to->_pathvector = curve->get_pathvector(); 400 curve->unref();
|
/inkscape/src/display/ |
H A D | canvas-bpath.cpp | 22 #include "display/curve.h" 62 if (cbp->curve) { 63 cbp->curve = cbp->curve->unref(); 82 if (!cbp->curve) return; 86 Geom::OptRect bbox = bounds_exact_transformed(cbp->curve->get_pathvector(), affine); 109 if ( !cbp->curve || 111 cbp->curve->get_segment_count() < 1) 123 feed_pathvector_to_cairo (buf->ct, cbp->curve->get_pathvector(), cbp->affine, area, 151 if ( !cbp->curve || 170 sp_canvas_bpath_new(SPCanvasGroup *parent, SPCurve *curve) argument 177 sp_canvas_bpath_set_bpath (SP_CANVAS_BPATH (item), curve); local 183 sp_canvas_bpath_set_bpath(SPCanvasBPath *cbp, SPCurve *curve) argument [all...] |
H A D | canvas-bpath.h | 69 SPCurve *curve; member in struct:SPCanvasBPath 95 SPCanvasItem *sp_canvas_bpath_new (SPCanvasGroup *parent, SPCurve *curve); 97 void sp_canvas_bpath_set_bpath (SPCanvasBPath *cbp, SPCurve *curve);
|
H A D | drawing-shape.cpp | 21 #include "display/curve.h" 48 DrawingShape::setPath(SPCurve *curve) argument 56 if (curve) { 57 _curve = curve; 58 curve->ref(); 130 // (one for each point on the curve)
|
/inkscape/src/2geom/ |
H A D | elliptical-arc-from-sbasis.cpp | 32 #include <2geom/curve.h> 35 #include <2geom/bezier-curve.h> 37 #include <2geom/sbasis-curve.h> // for non-native methods 54 * convert a parametric polynomial curve given in symmetric power basis form 55 * into an EllipticalArc type; in order to be successfull the input curve 59 * sample points computed on the input curve; 76 * _curve: the input curve to be converted; 78 * on the input curve for performing the conversion 79 * _tolerance: how much likelihood is required between the input curve 127 const curve_type & curve; // inpu member in class:Geom::make_elliptical_arc [all...] |