Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Functions | |
unsigned int | sp_svg_number_read_f (const char *str, float *val) |
unsigned int | sp_svg_number_read_d (const char *str, double *val) |
std::string | sp_svg_number_write_de (double val, unsigned int tprec, int min_exp) |
unsigned int | sp_svg_length_read_computed_absolute (const char *str, float *length) |
std::vector< SVGLength > | sp_svg_length_list_read (const char *str) |
unsigned int | sp_svg_length_read_ldd (const char *str, SVGLength::Unit *unit, double *value, double *computed) |
std::string | sp_svg_length_write_with_units (SVGLength const &length) |
N.B. This routine will sometimes return strings with ‘e’ notation, so is unsuitable for CSS lengths (which don't allow scientific ‘e’ notation). | |
bool | sp_svg_transform_read (char const *str, Geom::Affine *transform) |
std::string | sp_svg_transform_write (Geom::Affine const &transform) |
double | sp_svg_read_percentage (const char *str, double def) |
Geom::PathVector | sp_svg_read_pathv (char const *str) |
std::string | sp_svg_write_path (Geom::PathVector const &p, bool normalize=false) |
std::string | sp_svg_write_path (Geom::Path const &p) |
std::vector< SVGLength > sp_svg_length_list_read | ( | const char * | str | ) |
unsigned int sp_svg_length_read_computed_absolute | ( | const char * | str, |
float * | length | ||
) |
unsigned int sp_svg_length_read_ldd | ( | const char * | str, |
SVGLength::Unit * | unit, | ||
double * | value, | ||
double * | computed | ||
) |
std::string sp_svg_length_write_with_units | ( | SVGLength const & | length | ) |
N.B. This routine will sometimes return strings with ‘e’ notation, so is unsuitable for CSS lengths (which don't allow scientific ‘e’ notation).
Definition at line 621 of file svg-length.cpp.
References SVGLength::PERCENT, sp_svg_length_get_css_units(), and Inkscape::SVGOStringStream::str().
Referenced by SVGLength::write(), SPRoot::write(), SPSymbol::write(), and SPDimensions::writeDimensions().
unsigned int sp_svg_number_read_d | ( | const char * | str, |
double * | val | ||
) |
unsigned int sp_svg_number_read_f | ( | const char * | str, |
float * | val | ||
) |
std::string sp_svg_number_write_de | ( | double | val, |
unsigned int | tprec, | ||
int | min_exp | ||
) |
Definition at line 117 of file svg-length.cpp.
References buf, floor(), and sp_svg_number_write_d().
Referenced by Inkscape::SVG::PathString::State::appendNumber(), and sp_svg_transform_write().
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().
double sp_svg_read_percentage | ( | const char * | str, |
double | def | ||
) |
Definition at line 574 of file svg-length.cpp.
Referenced by SPStop::set(), SPText::set(), and GrDrag::styleSet().
bool sp_svg_transform_read | ( | char const * | str, |
Geom::Affine * | transform | ||
) |
std::string sp_svg_transform_write | ( | Geom::Affine const & | transform | ) |
Definition at line 25 of file svg-affine.cpp.
References Geom::are_near(), c, Geom::Affine::descrim(), Inkscape::Preferences::get(), Inkscape::Preferences::getInt(), Geom::Affine::isHShear(), Geom::Affine::isIdentity(), Geom::Affine::isRotation(), Geom::Affine::isScale(), Geom::Affine::isTranslation(), Geom::Affine::isVShear(), sp_svg_number_write_de(), and Geom::Affine::withoutTranslation().
Referenced by Inkscape::Extension::Internal::SvgBuilder::_createClip(), Inkscape::Extension::Internal::SvgBuilder::_createGradient(), Inkscape::Extension::Internal::SvgBuilder::_createTilingPattern(), Inkscape::Extension::Internal::SvgBuilder::addMaskedImage(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::ObjectSet::breakApart(), Inkscape::LivePathEffect::LPESlice::cloneD(), create_flowtext_with_internal_frame(), create_text_with_rectangle(), Inkscape::ObjectSet::createBitmapCopy(), Inkscape::LivePathEffect::LPEMeasureSegments::createTextLabel(), Inkscape::UI::Tools::do_trace(), Inkscape::LivePathEffect::LPETiling::doOnVisibilityToggled(), SPItem::removeTransformsRecursively(), Inkscape::BooleanBuilder::shape_commit(), sp_gradient_convert_to_userspace(), sp_gradient_reset_to_userspace(), sp_gradient_transform_multiply(), sp_import_document(), sp_item_gradient_set_coords(), sp_selection_copy_one(), sp_selection_paste_impl(), Inkscape::Extension::Internal::svgSetTransform(), Inkscape::ObjectSet::tile(), Inkscape::LivePathEffect::LPECopyRotate::toItem(), Inkscape::LivePathEffect::LPEMirrorSymmetry::toMirror(), Inkscape::ObjectSet::toSymbol(), SPHatch::transform_multiply(), SPGradient::write(), SPItem::write(), and write_transform().
std::string sp_svg_write_path | ( | Geom::Path const & | p | ) |
Definition at line 134 of file svg-path.cpp.
References sp_svg_write_path().
std::string sp_svg_write_path | ( | Geom::PathVector const & | p, |
bool | normalize = false |
||
) |
Definition at line 121 of file svg-path.cpp.
References normalize(), Inkscape::SVG::PATHSTRING_ABSOLUTE, and sp_svg_write_path().