diff options
| author | Joshua L. Blocher <verbalshadow@gmail.com> | 2008-12-28 22:44:35 +0000 |
|---|---|---|
| committer | verbalshadow <verbalshadow@users.sourceforge.net> | 2008-12-28 22:44:35 +0000 |
| commit | 1e3ef71825fa122062b626937848539cbb62f0ca (patch) | |
| tree | 80c4099e25b93d910b580ebe681cdf11d8957d60 /src/livarot/path-description.cpp | |
| parent | convert NR to Geom (diff) | |
| download | inkscape-1e3ef71825fa122062b626937848539cbb62f0ca.tar.gz inkscape-1e3ef71825fa122062b626937848539cbb62f0ca.zip | |
More NR ==> Geom changes
(bzr r7032)
Diffstat (limited to 'src/livarot/path-description.cpp')
| -rw-r--r-- | src/livarot/path-description.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/livarot/path-description.cpp b/src/livarot/path-description.cpp index 8058e0452..9ecfb99d6 100644 --- a/src/livarot/path-description.cpp +++ b/src/livarot/path-description.cpp @@ -6,12 +6,12 @@ PathDescr *PathDescrMoveTo::clone() const return new PathDescrMoveTo(*this); } -void PathDescrMoveTo::dumpSVG(Inkscape::SVGOStringStream& s, NR::Point const &/*last*/) const +void PathDescrMoveTo::dumpSVG(Inkscape::SVGOStringStream& s, Geom::Point const &/*last*/) const { - s << "M " << p[NR::X] << " " << p[NR::Y] << " "; + s << "M " << p[Geom::X] << " " << p[Geom::Y] << " "; } -void PathDescrMoveTo::transform(NR::Matrix const& t) +void PathDescrMoveTo::transform(Geom::Matrix const& t) { p = p * t; } @@ -19,12 +19,12 @@ void PathDescrMoveTo::transform(NR::Matrix const& t) void PathDescrMoveTo::dump(std::ostream &s) const { /* localizing ok */ - s << " m " << p[NR::X] << " " << p[NR::Y]; + s << " m " << p[Geom::X] << " " << p[Geom::Y]; } -void PathDescrLineTo::dumpSVG(Inkscape::SVGOStringStream& s, NR::Point const &/*last*/) const +void PathDescrLineTo::dumpSVG(Inkscape::SVGOStringStream& s, Geom::Point const &/*last*/) const { - s << "L " << p[NR::X] << " " << p[NR::Y] << " "; + s << "L " << p[Geom::X] << " " << p[Geom::Y] << " "; } PathDescr *PathDescrLineTo::clone() const @@ -32,7 +32,7 @@ PathDescr *PathDescrLineTo::clone() const return new PathDescrLineTo(*this); } -void PathDescrLineTo::transform(NR::Matrix const& t) +void PathDescrLineTo::transform(Geom::Matrix const& t) { p = p * t; } @@ -40,7 +40,7 @@ void PathDescrLineTo::transform(NR::Matrix const& t) void PathDescrLineTo::dump(std::ostream &s) const { /* localizing ok */ - s << " l " << p[NR::X] << " " << p[NR::Y]; + s << " l " << p[Geom::X] << " " << p[Geom::Y]; } PathDescr *PathDescrBezierTo::clone() const @@ -48,7 +48,7 @@ PathDescr *PathDescrBezierTo::clone() const return new PathDescrBezierTo(*this); } -void PathDescrBezierTo::transform(NR::Matrix const& t) +void PathDescrBezierTo::transform(Geom::Matrix const& t) { p = p * t; } @@ -56,7 +56,7 @@ void PathDescrBezierTo::transform(NR::Matrix const& t) void PathDescrBezierTo::dump(std::ostream &s) const { /* localizing ok */ - s << " b " << p[NR::X] << " " << p[NR::Y] << " " << nb; + s << " b " << p[Geom::X] << " " << p[Geom::Y] << " " << nb; } PathDescr *PathDescrIntermBezierTo::clone() const @@ -64,7 +64,7 @@ PathDescr *PathDescrIntermBezierTo::clone() const return new PathDescrIntermBezierTo(*this); } -void PathDescrIntermBezierTo::transform(NR::Matrix const& t) +void PathDescrIntermBezierTo::transform(Geom::Matrix const& t) { p = p * t; } @@ -72,18 +72,18 @@ void PathDescrIntermBezierTo::transform(NR::Matrix const& t) void PathDescrIntermBezierTo::dump(std::ostream &s) const { /* localizing ok */ - s << " i " << p[NR::X] << " " << p[NR::Y]; + s << " i " << p[Geom::X] << " " << p[Geom::Y]; } -void PathDescrCubicTo::dumpSVG(Inkscape::SVGOStringStream& s, NR::Point const &last) const +void PathDescrCubicTo::dumpSVG(Inkscape::SVGOStringStream& s, Geom::Point const &last) const { s << "C " - << last[NR::X] + start[0] / 3 << " " - << last[NR::Y] + start[1] / 3 << " " - << p[NR::X] - end[0] / 3 << " " - << p[NR::Y] - end[1] / 3 << " " - << p[NR::X] << " " - << p[NR::Y] << " "; + << last[Geom::X] + start[0] / 3 << " " + << last[Geom::Y] + start[1] / 3 << " " + << p[Geom::X] - end[0] / 3 << " " + << p[Geom::Y] - end[1] / 3 << " " + << p[Geom::X] << " " + << p[Geom::Y] << " "; } PathDescr *PathDescrCubicTo::clone() const @@ -95,14 +95,14 @@ void PathDescrCubicTo::dump(std::ostream &s) const { /* localizing ok */ s << " c " - << p[NR::X] << " " << p[NR::Y] << " " - << start[NR::X] << " " << start[NR::Y] << " " - << end[NR::X] << " " << end[NR::Y] << " "; + << p[Geom::X] << " " << p[Geom::Y] << " " + << start[Geom::X] << " " << start[Geom::Y] << " " + << end[Geom::X] << " " << end[Geom::Y] << " "; } -void PathDescrCubicTo::transform(NR::Matrix const& t) +void PathDescrCubicTo::transform(Geom::Matrix const& t) { - NR::Matrix tr = t; + Geom::Matrix tr = t; tr[4] = tr[5] = 0; start = start * tr; end = end * tr; @@ -110,7 +110,7 @@ void PathDescrCubicTo::transform(NR::Matrix const& t) p = p * t; } -void PathDescrArcTo::dumpSVG(Inkscape::SVGOStringStream& s, NR::Point const &/*last*/) const +void PathDescrArcTo::dumpSVG(Inkscape::SVGOStringStream& s, Geom::Point const &/*last*/) const { s << "A " << rx << " " @@ -118,8 +118,8 @@ void PathDescrArcTo::dumpSVG(Inkscape::SVGOStringStream& s, NR::Point const &/*l << angle << " " << (large ? "1" : "0") << " " << (clockwise ? "0" : "1") << " " - << p[NR::X] << " " - << p[NR::Y] << " "; + << p[Geom::X] << " " + << p[Geom::Y] << " "; } PathDescr *PathDescrArcTo::clone() const @@ -127,7 +127,7 @@ PathDescr *PathDescrArcTo::clone() const return new PathDescrArcTo(*this); } -void PathDescrArcTo::transform(NR::Matrix const& t) +void PathDescrArcTo::transform(Geom::Matrix const& t) { p = p * t; } @@ -136,7 +136,7 @@ void PathDescrArcTo::dump(std::ostream &s) const { /* localizing ok */ s << " a " - << p[NR::X] << " " << p[NR::Y] << " " + << p[Geom::X] << " " << p[Geom::Y] << " " << rx << " " << ry << " " << angle << " " << (clockwise ? 1 : 0) << " " @@ -148,7 +148,7 @@ PathDescr *PathDescrForced::clone() const return new PathDescrForced(*this); } -void PathDescrClose::dumpSVG(Inkscape::SVGOStringStream& s, NR::Point const &/*last*/) const +void PathDescrClose::dumpSVG(Inkscape::SVGOStringStream& s, Geom::Point const &/*last*/) const { s << "z "; } |
