~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to src/ui/tool/node.cpp

  • Committer: Daniel Bailey
  • Date: 2016-07-08 22:45:22 UTC
  • Revision ID: d@nielbailey.com-20160708224522-pkb9q4w17iy842ze
Handle conversion from arcs to beziers in node editor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1500
1500
    return SnapCandidatePoint(position(), _snapSourceType(), _snapTargetType());
1501
1501
}
1502
1502
 
 
1503
Geom::EllipticalArc Node::getEllipticalArc(){
 
1504
    // Must have a next node for this to be an arc
 
1505
    if (not _next()) return Geom::EllipticalArc();
 
1506
    Geom::Point r = Geom::Point(_arc_rx.length(), _arc_ry.length());
 
1507
    Geom::Coord rot = _arc_rx.angle();
 
1508
    // Create an arc and return it
 
1509
    return Geom::EllipticalArc(position(), r, rot, _arc_large, _arc_sweep, _next()->position());
 
1510
}
 
1511
 
1503
1512
Handle *Node::handleToward(Node *to)
1504
1513
{
1505
1514
    if (_next() == to) {