/inkscape/src/display/ |
H A D | guideline.h | 36 Geom::Point normal_to_line; member in struct:SPGuideLine 42 inline bool is_horizontal() const { return (normal_to_line[Geom::X] == 0.); }; 43 inline bool is_vertical() const { return (normal_to_line[Geom::Y] == 0.); }; 57 void sp_guideline_set_normal(SPGuideLine *gl, Geom::Point normal_to_line);
|
H A D | guideline.cpp | 50 gl->normal_to_line = Geom::Point(0,1); 92 Geom::Point normal_dt = /*unit_vector*/(gl->normal_to_line * gl->affine.withoutTranslation()); // note that normal_dt does not have unit length 204 Geom::Point vec = gl->normal_to_line * gl->affine.withoutTranslation(); 217 gl->normal_to_line = normal; 218 gl->angle = tan( -gl->normal_to_line[Geom::X] / gl->normal_to_line[Geom::Y]); 254 void sp_guideline_set_normal(SPGuideLine *gl, Geom::Point normal_to_line) argument 256 gl->normal_to_line = normal_to_line; 257 gl->angle = tan( -normal_to_line[Geo [all...] |
H A D | canvas-axonomgrid.cpp | 776 void CanvasAxonomGridSnapper::_addSnappedLine(IntermSnapResults &isr, Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, Geom::Point const &normal_to_line, Geom::Point const &point_on_line) const argument 778 SnappedLine dummy = SnappedLine(snapped_point, snapped_distance, source, source_num, Inkscape::SNAPTARGET_GRID, getSnapperTolerance(), getSnapperAlwaysSnap(), normal_to_line, point_on_line);
|
H A D | canvas-grid.cpp | 1060 void CanvasXYGridSnapper::_addSnappedLine(IntermSnapResults &isr, Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, Geom::Point const &normal_to_line, Geom::Point const &point_on_line) const argument 1062 SnappedLine dummy = SnappedLine(snapped_point, snapped_distance, source, source_num, Inkscape::SNAPTARGET_GRID, getSnapperTolerance(), getSnapperAlwaysSnap(), normal_to_line, point_on_line);
|
/inkscape/src/ |
H A D | guide-snapper.cpp | 69 void Inkscape::GuideSnapper::_addSnappedLine(IntermSnapResults &isr, Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, Geom::Point const &normal_to_line, Geom::Point const &point_on_line) const argument 71 SnappedLine dummy = SnappedLine(snapped_point, snapped_distance, source, source_num, Inkscape::SNAPTARGET_GUIDE, getSnapperTolerance(), getSnapperAlwaysSnap(), normal_to_line, point_on_line);
|
H A D | sp-guide.h | 47 Geom::Point getNormal() const { return normal_to_line; } 50 void set_normal(Geom::Point const normal_to_line, bool const commit); 67 bool isHorizontal() const { return (normal_to_line[Geom::X] == 0.); }; 68 bool isVertical() const { return (normal_to_line[Geom::Y] == 0.); }; 72 double angle() const { return std::atan2( - normal_to_line[Geom::X], normal_to_line[Geom::Y] ); } 84 Geom::Point normal_to_line; member in class:SPGuide
|
H A D | snapped-line.cpp | 93 Inkscape::SnappedLine::SnappedLine(Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, SnapTargetType const &target, Geom::Coord const &snapped_tolerance, bool const &always_snap, Geom::Point const &normal_to_line, Geom::Point const &point_on_line) argument 94 : _normal_to_line(normal_to_line), _point_on_line(point_on_line)
|
H A D | sp-guide.cpp | 56 , normal_to_line(Geom::Point(0.,1.)) 128 this->normal_to_line = Geom::Point(0., 1.); 130 this->normal_to_line = Geom::Point(1., 0.); 140 this->normal_to_line = direction; 143 this->normal_to_line = Geom::Point(1., 0.); 147 this->normal_to_line = Geom::Point(1., 0.); 149 this->set_normal(this->normal_to_line, false); 279 SPCanvasItem *item = sp_guideline_new(group, label, point_on_line, normal_to_line); 347 return Geom::dot(pt - point_on_line, normal_to_line); 404 void SPGuide::set_normal(Geom::Point const normal_to_line, boo argument 417 sp_repr_set_point(getRepr(), "orientation", normal_to_line); local [all...] |