Searched refs:SnapConstraint (Results 1 - 17 of 17) sorted by relevance

/inkscape/src/
H A Dsnapper.h69 class SnapConstraint class in class:Inkscape::Snapper
76 SnapConstraint(Geom::Point const &d) : _point(), _direction(d), _radius(0), _type(DIRECTION) {} function in class:Inkscape::Snapper::SnapConstraint
78 SnapConstraint(Geom::Point const &p, Geom::Point const &d) : _point(p), _direction(d), _radius(0), _type(LINE) {} function in class:Inkscape::Snapper::SnapConstraint
80 SnapConstraint(Geom::Point const &p, Geom::Dim2 const &d) : _point(p), _direction(), _radius(0), _type(LINE) {_direction[d] = 1.;} function in class:Inkscape::Snapper::SnapConstraint
81 SnapConstraint(Geom::Line const &l) : _point(l.origin()), _direction(l.versor()), _radius(0), _type(LINE) {} function in class:Inkscape::Snapper::SnapConstraint
83 SnapConstraint(Geom::Point const &p, Geom::Point const &d, Geom::Coord const &r) : _point(p), _direction(d), _radius(r), _type(CIRCLE) {} function in class:Inkscape::Snapper::SnapConstraint
85 SnapConstraint() : _point(), _direction(), _radius(0), _type(UNDEFINED) {} function in class:Inkscape::Snapper::SnapConstraint
140 SnapConstraint const &/*c*/,
H A Dobject-snapper.h56 SnapConstraint const &c,
83 SnapConstraint const &c = SnapConstraint(),
100 SnapConstraint const &c,
H A Dpure-transform.cpp147 Snapper::SnapConstraint dedicated_constraint = Snapper::SnapConstraint(pt_orig, _direction);
208 Snapper::SnapConstraint dedicated_constraint = Inkscape::Snapper::SnapConstraint(_origin, cvec);
221 Snapper::SnapConstraint dedicated_constraint = Inkscape::Snapper::SnapConstraint(_origin, b);
241 Snapper::SnapConstraint dedicated_constraint;
247 dedicated_constraint = Inkscape::Snapper::SnapConstraint(_origin, b); // dedicated constraint
250 dedicated_constraint = Inkscape::Snapper::SnapConstraint(pt_orig, cvec);
304 return sm->constrainedSnap(p, Inkscape::Snapper::SnapConstraint(constraint_vecto
[all...]
H A Dsnap.h265 Inkscape::Snapper::SnapConstraint const &constraint,
286 Inkscape::Snapper::SnapConstraint const &constraint,
290 std::vector<Inkscape::Snapper::SnapConstraint> const &constraints,
H A Dline-snapper.h36 SnapConstraint const &c,
H A Dcontext-fns.cpp132 Inkscape::Snapper::SnapConstraint(p[0] - p[1]));
136 Inkscape::Snapper::SnapConstraint(p[1] - p[0]));
157 Inkscape::Snapper::SnapConstraint(p[1] - p[0]));
H A Dsnap.cpp215 Inkscape::Snapper::SnapConstraint const &constraint,
223 Inkscape::Snapper::SnapConstraint const &constraint,
287 std::vector<Inkscape::Snapper::SnapConstraint> const &constraints,
302 for (std::vector<Inkscape::Snapper::SnapConstraint>::const_iterator c = constraints.begin(); c != constraints.end(); ++c) {
311 Inkscape::Snapper::SnapConstraint cc = constraints.front(); //closest constraint
313 std::vector<Inkscape::Snapper::SnapConstraint>::const_iterator c = constraints.begin();
375 std::vector<Inkscape::Snapper::SnapConstraint> constraints;
376 constraints.push_back(Inkscape::Snapper::SnapConstraint(Geom::Line(o, angle_ceil - M_PI/2)));
377 constraints.push_back(Inkscape::Snapper::SnapConstraint(Geom::Line(o, angle_floor - M_PI/2)));
434 Inkscape::Snapper::SnapConstraint c
[all...]
H A Dknot-holder-entity.cpp115 KnotHolderEntity::snap_knot_position_constrained(Geom::Point const &p, Inkscape::Snapper::SnapConstraint const &constraint, guint state)
129 Inkscape::Snapper::SnapConstraint transformed_constraint = Inkscape::Snapper::SnapConstraint(constraint.getPoint() * i2d, (constraint.getPoint() + constraint.getDirection()) * i2d - constraint.getPoint() * i2d);
H A Dknot-holder-entity.h71 Geom::Point snap_knot_position_constrained(Geom::Point const &p, Inkscape::Snapper::SnapConstraint const &constraint, unsigned int state);
H A Dline-snapper.cpp93 SnapConstraint const &c,
H A Dobject-snapper.cpp277 SnapConstraint const &c,
602 SnapConstraint const &c,
619 // SnapConstraint: p_min_on_cl and p_max_on_cl. The distance between those points is twice the snapping tolerance
710 SnapConstraint const &c,
H A Dseltrans.cpp1296 std::vector<Inkscape::Snapper::SnapConstraint> constraints;
1297 constraints.push_back(Inkscape::Snapper::SnapConstraint(_point, Geom::Point(1, 0)));
1298 constraints.push_back(Inkscape::Snapper::SnapConstraint(_point, Geom::Point(0, 1)));
H A Dgradient-drag.cpp1025 Inkscape::Snapper::SnapConstraint cl(low_lim, high_lim - low_lim);
/inkscape/src/ui/tool/
H A Dnode.cpp342 boost::optional<Inkscape::Snapper::SnapConstraint> ctrl_constraint;
365 ctrl_constraint = Inkscape::Snapper::SnapConstraint(parent_pos, parent_pos - snap_pos);
368 ctrl_constraint = Inkscape::Snapper::SnapConstraint(parent_pos, parent_pos - orig_pos);
372 ctrl_constraint = Inkscape::Snapper::SnapConstraint(parent_pos, parent_pos - perp_pos);
396 Inkscape::Snapper::SnapConstraint cl(_parent->position(),
1287 std::vector<Inkscape::Snapper::SnapConstraint> constraints;
1299 constraints.push_back(Inkscape::Snapper::SnapConstraint(origin, *front_point));
1303 constraints.push_back(Inkscape::Snapper::SnapConstraint(origin, *back_point));
1312 constraints.push_back(Inkscape::Snapper::SnapConstraint(origin, *fperp_point));
1318 constraints.push_back(Inkscape::Snapper::SnapConstraint(origi
[all...]
H A Dtransform-handle-set.cpp654 std::vector<Inkscape::Snapper::SnapConstraint> constraints;
655 constraints.push_back(Inkscape::Snapper::SnapConstraint(origin, Geom::Point(1, 0)));
656 constraints.push_back(Inkscape::Snapper::SnapConstraint(origin, Geom::Point(0, 1)));
/inkscape/src/ui/
H A Dobject-edit.cpp153 Geom::Point const s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(Geom::Point(rect->x.computed + rect->width.computed, rect->y.computed), Geom::Point(-1, 0)), state);
202 Geom::Point const s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(Geom::Point(rect->x.computed + rect->width.computed, rect->y.computed), Geom::Point(0, 1)), state);
289 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state);
296 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-1, 0)), state);
308 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state);
315 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(0, -1)), state);
382 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state);
390 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-1, 0)), state);
403 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state);
411 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handl
[all...]
/inkscape/src/ui/tools/
H A Dpen-tool.cpp2062 Inkscape::Snapper::SnapConstraint cl(origin, next_dir ? Geom::Point(0, 1) : Geom::Point(1, 0));

Completed in 268 milliseconds