Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
PathDescrArcTo Struct Reference

Elliptical Arc path command. More...

#include <path-description.h>

Inheritance diagram for PathDescrArcTo:
PathDescr

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.
 
PathDescrclone () 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.
 
- Public Member Functions inherited from PathDescr
 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
 
- Public Attributes inherited from PathDescr
int flags
 
int associated
 
double tSt
 
double tEn
 

Detailed Description

Elliptical Arc path command.

Exactly the equivalent of an SVG elliptical arc description.

Definition at line 151 of file path-description.h.

Constructor & Destructor Documentation

◆ PathDescrArcTo()

PathDescrArcTo::PathDescrArcTo ( Geom::Point const &  pp,
double  x,
double  y,
double  a,
bool  l,
bool  c 
)
inline

Definition at line 153 of file path-description.h.

Member Function Documentation

◆ clone()

PathDescr * PathDescrArcTo::clone ( ) const
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.

◆ dump()

void PathDescrArcTo::dump ( std::ostream &  ) const
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.

Parameters
sThe 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.

◆ dumpSVG()

void PathDescrArcTo::dumpSVG ( Inkscape::SVGOStringStream ,
Geom::Point const &   
) const
overridevirtual

A virtual function that derived classes will implement.

Dumps the SVG path d attribute for this path description.

Parameters
sThe stream to put the SVG description in.
lastThe 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.

Member Data Documentation

◆ angle

double PathDescrArcTo::angle

◆ clockwise

◆ large

◆ p

◆ rx

◆ ry


The documentation for this struct was generated from the following files: