Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
svg-path.cpp File Reference

Go to the source code of this file.

Functions

Geom::PathVector sp_svg_read_pathv (char const *str)
 
static void sp_svg_write_curve (Inkscape::SVG::PathString &str, Geom::Curve const *c, bool normalize=false)
 
static void sp_svg_write_path (Inkscape::SVG::PathString &str, Geom::Path const &p, bool normalize=false)
 
std::string sp_svg_write_path (Geom::PathVector const &p, bool normalize)
 
std::string sp_svg_write_path (Geom::Path const &p)
 

Function Documentation

◆ sp_svg_read_pathv()

Geom::PathVector sp_svg_read_pathv ( char const *  str)

Definition at line 37 of file svg-path.cpp.

References builder, Geom::EPSILON, Geom::SVGPathParser::parse(), Geom::SVGPathParser::setZSnapThreshold(), and sp_svg_write_path().

Referenced by SPHatchPath::_readHatchPathVector(), Inkscape::Extension::Internal::SvgBuilder::_shouldClip(), Inkscape::Extension::Internal::Emf::add_clips(), Inkscape::Extension::Internal::Wmf::add_clips(), Inkscape::LivePathEffect::LPEKnot::addCanvasIndicators(), Inkscape::LivePathEffect::LPETransform2Pts::addCanvasIndicators(), SPLPEItem::applyToClipPathOrMask(), SPPath::build(), SPShape::checkBrokenPathEffect(), Inkscape::UI::Dialog::create_path_from_glyph(), Inkscape::LivePathEffect::LPETaperStroke::doBeforeEffect(), Inkscape::LivePathEffect::LPEShowHandles::drawHandle(), Inkscape::LivePathEffect::LPESimplify::drawHandle(), Inkscape::LivePathEffect::LPESimplify::drawNode(), Inkscape::LivePathEffect::LPEShowHandles::drawNode(), Inkscape::LivePathEffect::PathParam::linked_modified_callback(), Inkscape::UI::Dialog::SvgFontsDialog::missing_glyph_description_from_selected_path(), Inkscape::Extension::Internal::Emf::myEnhMetaFileProc(), Inkscape::Extension::Internal::Wmf::myMetaFileProc(), normalize_all_paths(), Inkscape::LivePathEffect::PathParam::param_readSVGValue(), Inkscape::LivePathEffect::PathParam::paste_param_path(), SPShape::prepareShapeForLPE(), Inkscape::LivePathEffect::LPECurveStitch::resetDefaults(), SvgFont::scaled_font_render_glyph(), SPOffset::set(), SPPath::set(), Inkscape::UI::Dialog::SvgFontsDialog::set_glyph_description_from_selected_path(), SPOffset::set_shape(), Inkscape::UI::Tools::MeasureTool::setPoint(), Inkscape::LivePathEffect::sp_bspline_drawHandle(), sp_lpe_item_cleanup_original_path_recursive(), and Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE().

◆ sp_svg_write_curve()

◆ sp_svg_write_path() [1/3]

std::string sp_svg_write_path ( Geom::Path const &  p)

Definition at line 134 of file svg-path.cpp.

References sp_svg_write_path().

◆ sp_svg_write_path() [2/3]

std::string sp_svg_write_path ( Geom::PathVector const &  p,
bool  normalize 
)

◆ sp_svg_write_path() [3/3]

static void sp_svg_write_path ( Inkscape::SVG::PathString str,
Geom::Path const &  p,
bool  normalize = false 
)
static

Definition at line 109 of file svg-path.cpp.

References Geom::Path::begin(), Geom::Path::closed(), Inkscape::SVG::PathString::closePath(), Geom::Path::end_open(), Geom::Path::initialPoint(), Inkscape::SVG::PathString::moveTo(), normalize(), and sp_svg_write_curve().

Referenced by Inkscape::UI::Tools::ConnectorTool::_flushWhite(), Inkscape::UI::Tools::EraserTool::_insertAcidIntoDocument(), Inkscape::Extension::Internal::SvgBuilder::_renderText(), Inkscape::LivePathEffect::LPEPowerClip::add(), Inkscape::Extension::Internal::Emf::add_clips(), Inkscape::Extension::Internal::Wmf::add_clips(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), SPLPEItem::applyToClipPathOrMask(), Inkscape::ObjectSet::breakApart(), Inkscape::LivePathEffect::LPEBSpline::changeWeight(), Inkscape::LivePathEffect::LPECloneOriginal::cloneAttributes(), Inkscape::LivePathEffect::LPECopyRotate::cloneD(), Inkscape::LivePathEffect::LPEMirrorSymmetry::cloneD(), Inkscape::LivePathEffect::LPETiling::cloneD(), Inkscape::LivePathEffect::LPESlice::cloneD(), Inkscape::ObjectSet::cloneOriginalPathLPE(), Inkscape::ObjectSet::combine(), Inkscape::UI::Dialog::create_path_from_glyph(), Inkscape::LivePathEffect::LPEMeasureSegments::createLine(), Inkscape::LivePathEffect::LPEBool::divisionit(), Inkscape::LivePathEffect::LPECloneOriginal::doBeforeEffect(), Inkscape::LivePathEffect::LPEKnot::doEffect_path(), Inkscape::LivePathEffect::LPEBool::fractureit(), insert_path_data(), item_to_paths(), Inkscape::UI::Dialog::SvgFontsDialog::missing_glyph_description_from_selected_path(), Inkscape::Extension::Internal::Emf::myEnhMetaFileProc(), Inkscape::Extension::Internal::Wmf::myMetaFileProc(), normalize_all_paths(), Inkscape::LivePathEffect::LPESlice::originalDtoD(), Inkscape::LivePathEffect::PathParam::param_editOncanvas(), Inkscape::LivePathEffect::PathParam::param_getSVGValue(), Inkscape::LivePathEffect::PathParam::paste_param_path(), Inkscape::ObjectSet::pathReverse(), SPPath::removeTransformsRecursively(), SPGenericEllipse::set_elliptical_path_attribute(), Inkscape::UI::Dialog::SvgFontsDialog::set_glyph_description_from_selected_path(), Inkscape::LivePathEffect::PathParam::set_new_value(), Inkscape::LivePathEffect::PathParam::set_new_value(), SPRect::set_rect_path_attribute(), Inkscape::UI::Tools::CalligraphicTool::set_to_accumulated(), Inkscape::LivePathEffect::LPEPowerMask::setMask(), Inkscape::UI::Tools::MeasureTool::setMeasureItem(), Inkscape::BooleanBuilder::shape_commit(), sp_group_perform_patheffect(), sp_lpe_item_cleanup_original_path_recursive(), sp_selected_item_to_curved_repr(), sp_svg_read_pathv(), sp_svg_write_path(), sp_svg_write_path(), Inkscape::UI::Tools::spdc_flush_white(), Inkscape::LivePathEffect::LPESlice::splititem(), Inkscape::LivePathEffect::LPEPowerClip::upd(), SPShape::update_patheffect(), SPOffset::write(), Box3DSide::write(), SPPath::write(), SPSpiral::write(), and SPStar::write().