Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Classes | |
class | SPOffset |
SPOffset class. More... | |
Functions | |
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. | |
SPItem * | sp_offset_get_source (SPOffset *offset) |
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().
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.