Inkscape
Vector Graphics Editor
|
Elliptical Arc path command. More...
#include <path-description.h>
Public Member Functions | |
PathDescrArcTo (Geom::Point const &pp, double x, double y, double a, bool l, bool c) | |
void | dumpSVG (Inkscape::SVGOStringStream &s, Geom::Point const &last) const override |
A virtual function that derived classes will implement. | |
PathDescr * | clone () const override |
A virtual function that derived classes will implement. | |
void | dump (std::ostream &s) const override |
A virtual function that derived classes will implement. | |
![]() | |
PathDescr () | |
PathDescr (int f) | |
virtual | ~PathDescr ()=default |
int | getType () const |
void | setType (int t) |
Public Attributes | |
Geom::Point | p |
double | rx |
double | ry |
double | angle |
bool | large |
bool | clockwise |
![]() | |
int | flags |
int | associated |
double | tSt |
double | tEn |
Elliptical Arc path command.
Exactly the equivalent of an SVG elliptical arc description.
Definition at line 151 of file path-description.h.
|
inline |
Definition at line 153 of file path-description.h.
|
overridevirtual |
A virtual function that derived classes will implement.
Returns a newly allocated copy of the path description.
Implements PathDescr.
Definition at line 83 of file path-description.cpp.
|
overridevirtual |
A virtual function that derived classes will implement.
Similar to dumpSVG however this prints a simpler path description that's not SVG, only used for debugging purposes.
s | The stream to print to. |
Reimplemented from PathDescr.
Definition at line 88 of file path-description.cpp.
References angle, clockwise, large, p, rx, ry, Geom::X, and Geom::Y.
|
overridevirtual |
A virtual function that derived classes will implement.
Dumps the SVG path d attribute for this path description.
s | The stream to put the SVG description in. |
last | The last point before this path description. This is needed for the computation of SVG descriptions of instructions such as Cubic and Arc. |
Reimplemented from PathDescr.
Definition at line 71 of file path-description.cpp.
References angle, clockwise, large, p, rx, ry, Geom::X, and Geom::Y.
double PathDescrArcTo::angle |
The angle it makes with the x axis in degrees. TODO confirm that
Definition at line 163 of file path-description.h.
Referenced by Path::Convert(), Path::ConvertEvenLines(), Path::ConvertPositionsToForced(), Path::ConvertPositionsToMoveTo(), dump(), dumpSVG(), Path::InsideOutline(), Path::Outline(), Shape::ReFormeArcTo(), Path::SubPaths(), and Path::SubPathsWithNesting().
bool PathDescrArcTo::clockwise |
Clockwise arc or anti-clockwise one?
Definition at line 165 of file path-description.h.
Referenced by Path::Convert(), Path::ConvertEvenLines(), Path::ConvertPositionsToForced(), Path::ConvertPositionsToMoveTo(), dump(), dumpSVG(), Path::InsideOutline(), Path::Outline(), Shape::ReFormeArcTo(), Path::SubPaths(), and Path::SubPathsWithNesting().
bool PathDescrArcTo::large |
The large arc or the small one?
Definition at line 164 of file path-description.h.
Referenced by Path::Convert(), Path::ConvertEvenLines(), Path::ConvertPositionsToForced(), Path::ConvertPositionsToMoveTo(), dump(), dumpSVG(), Path::InsideOutline(), Path::Outline(), Shape::ReFormeArcTo(), Path::SubPaths(), and Path::SubPathsWithNesting().
Geom::Point PathDescrArcTo::p |
The final point of the arc.
Definition at line 160 of file path-description.h.
Referenced by Path::Convert(), Path::ConvertEvenLines(), Path::ConvertForcedToMoveTo(), Path::ConvertPositionsToForced(), Path::ConvertPositionsToMoveTo(), dump(), dumpSVG(), Path::FastBBox(), Path::PrevPoint(), Shape::ReFormeArcTo(), Path::SubPaths(), and Path::SubPathsWithNesting().
double PathDescrArcTo::rx |
The radius in the x direction.
Definition at line 161 of file path-description.h.
Referenced by Path::Convert(), Path::ConvertEvenLines(), Path::ConvertPositionsToForced(), Path::ConvertPositionsToMoveTo(), dump(), dumpSVG(), Path::InsideOutline(), Path::Outline(), Shape::ReFormeArcTo(), Path::SubPaths(), and Path::SubPathsWithNesting().
double PathDescrArcTo::ry |
The radius in the y direction.
Definition at line 162 of file path-description.h.
Referenced by Path::Convert(), Path::ConvertEvenLines(), Path::ConvertPositionsToForced(), Path::ConvertPositionsToMoveTo(), dump(), dumpSVG(), Path::InsideOutline(), Path::Outline(), Shape::ReFormeArcTo(), Path::SubPaths(), and Path::SubPathsWithNesting().