Inkscape
Vector Graphics Editor
|
Implementation of <path sodipodi:type="inkscape:offset">. More...
Go to the source code of this file.
Functions | |
static void | refresh_offset_source (SPOffset *offset) |
static void | sp_offset_quit_listening (SPOffset *offset) |
static void | sp_offset_href_changed (SPObject *old_ref, SPObject *ref, SPOffset *offset) |
static void | sp_offset_move_compensate (Geom::Affine const *mp, SPItem *original, SPOffset *self) |
static void | sp_offset_delete_self (SPObject *deleted, SPOffset *self) |
static void | sp_offset_source_modified (SPObject *iSource, guint flags, SPItem *item) |
static bool | vectors_are_clockwise (Geom::Point A, Geom::Point B, Geom::Point C) |
double | sp_offset_distance_to_original (SPOffset *offset, Geom::Point px) |
Distance to the original path; that function is called from shape-editor-knotholders to set the radius when the control knot moves. | |
void | sp_offset_top_point (SPOffset const *offset, Geom::Point *px) |
Computes a point on the offset; used to set a "seed" position for the control knot. | |
static void | sp_offset_start_listening (SPOffset *offset, SPItem *to) |
SPItem * | sp_offset_get_source (SPOffset *offset) |
Variables | |
static bool | use_slow_but_correct_offset_method = false |
Implementation of <path sodipodi:type="inkscape:offset">.
Definition in file sp-offset.cpp.
|
static |
Definition at line 1061 of file sp-offset.cpp.
References Inkscape::XML::Node::attribute(), Shape::ConvertToForme(), Shape::ConvertToShape(), css, fill_nonZero, fill_oddEven, SPObject::getRepr(), Geom::Affine::isIdentity(), item, offset, orig, sp_repr_css_attr(), sp_repr_css_property(), sp_svg_transform_read(), Path::svg_dump_path(), and SPItem::transform.
Referenced by SPOffset::set(), and SPOffset::update().
Definition at line 1029 of file sp-offset.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getInt(), mode, offset, SP_CLONE_ORPHANS_DELETE, SP_CLONE_ORPHANS_UNLINK, and sp_offset_quit_listening().
Referenced by sp_offset_start_listening().
double sp_offset_distance_to_original | ( | SPOffset * | offset, |
Geom::Point | px | ||
) |
Distance to the original path; that function is called from shape-editor-knotholders to set the radius when the control knot moves.
The sign of the result is the radius we're going to offset the shape with, so result > 0 ==outset and result < 0 ==inset. thus result<0 means 'px inside source'.
Definition at line 736 of file sp-offset.cpp.
References Shape::ConvertToShape(), dot(), Shape::dg_arete::dx, Shape::dg_arete::en, fill_oddEven, FIRST, Shape::getEdge(), Shape::getPoint(), Shape::dg_point::incidentEdge, LAST, len, Shape::NextAt(), Shape::numberOfEdges(), Shape::numberOfPoints(), offset, Shape::dg_arete::st, Shape::dg_point::totalDegree(), vectors_are_clockwise(), and Shape::dg_point::x.
Definition at line 1148 of file sp-offset.cpp.
References offset.
Referenced by _ungroup_compensate_source_transform(), Inkscape::ObjectSet::cloneOriginal(), and Inkscape::ObjectSet::getSiblingState().
Definition at line 974 of file sp-offset.cpp.
References offset, sp_offset_quit_listening(), and sp_offset_start_listening().
Referenced by SPOffset::SPOffset().
|
static |
Definition at line 990 of file sp-offset.cpp.
References SPItem::doWriteTransform(), Inkscape::Preferences::get(), Inkscape::Preferences::getInt(), Geom::Affine::inverse(), Geom::Affine::isTranslation(), mode, SPObject::readAttr(), SPObject::requestDisplayUpdate(), Geom::Affine::setIdentity(), SPOffset::sourceDirty, SP_CLONE_COMPENSATION_NONE, SP_CLONE_COMPENSATION_PARALLEL, SP_CLONE_COMPENSATION_UNMOVED, TRANSFORM, and SPItem::transform.
Referenced by sp_offset_start_listening().
|
static |
Definition at line 959 of file sp-offset.cpp.
References offset.
Referenced by SPOffset::release(), SPOffset::set(), sp_offset_delete_self(), and sp_offset_href_changed().
Definition at line 1050 of file sp-offset.cpp.
Referenced by sp_offset_start_listening().
Definition at line 945 of file sp-offset.cpp.
References SPObject::connectDelete(), SPObject::connectModified(), SPItem::connectTransformed(), SPObject::getRepr(), offset, sp_offset_delete_self(), sp_offset_move_compensate(), and sp_offset_source_modified().
Referenced by sp_offset_href_changed().
void sp_offset_top_point | ( | SPOffset const * | offset, |
Geom::Point * | px | ||
) |
Computes a point on the offset; used to set a "seed" position for the control knot.
Definition at line 896 of file sp-offset.cpp.
References Path::Convert(), Path::Fill(), Shape::getPoint(), Shape::hasPoints(), Path::LoadPathVector(), offset, Shape::SortPoints(), and Shape::dg_point::x.
|
static |
Definition at line 682 of file sp-offset.cpp.
References dot(), and Geom::rot90().
Referenced by sp_offset_distance_to_original().
|
static |
Definition at line 82 of file sp-offset.cpp.
Referenced by SPOffset::set_shape().