#include <CDRPath.h>
Public Member Functions | |
| CDRPath () | |
| CDRPath (const CDRPath &path) | |
| ~CDRPath () override | |
| CDRPath & | operator= (const CDRPath &path) |
| void | appendMoveTo (double x, double y) |
| void | appendLineTo (double x, double y) |
| void | appendCubicBezierTo (double x1, double y1, double x2, double y2, double x, double y) |
| void | appendQuadraticBezierTo (double x1, double y1, double x, double y) |
| void | appendSplineTo (const std::vector< std::pair< double, double > > &points) |
| void | appendArcTo (double rx, double ry, double rotation, bool longAngle, bool sweep, double x, double y) |
| void | appendClosePath () |
| void | appendPath (const CDRPath &path) |
| void | writeOut (librevenge::RVNGPropertyListVector &vec) const override |
| void | writeOut (librevenge::RVNGString &path, librevenge::RVNGString &viewBox, double &width) const |
| void | transform (const CDRTransforms &trafos) override |
| void | transform (const CDRTransform &trafo) override |
| std::unique_ptr< CDRPathElement > | clone () override |
| void | clear () |
| bool | empty () const |
| bool | isClosed () const |
Public Member Functions inherited from libcdr::CDRPathElement | |
| CDRPathElement () | |
| virtual | ~CDRPathElement () |
| virtual void | writeOut (librevenge::RVNGPropertyListVector &vec) const =0 |
| virtual void | transform (const CDRTransforms &trafos)=0 |
| virtual void | transform (const CDRTransform &trafo)=0 |
| virtual std::unique_ptr< CDRPathElement > | clone ()=0 |
Private Attributes | |
| std::vector< std::unique_ptr< CDRPathElement > > | m_elements |
| bool | m_isClosed |
|
inline |
| libcdr::CDRPath::CDRPath | ( | const CDRPath & | path | ) |
|
override |
| void libcdr::CDRPath::appendArcTo | ( | double | rx, |
| double | ry, | ||
| double | rotation, | ||
| bool | longAngle, | ||
| bool | sweep, | ||
| double | x, | ||
| double | y | ||
| ) |
Referenced by libcdr::CDRParser::readEllipse(), and libcdr::CMXParser::readEllipse().
| void libcdr::CDRPath::appendClosePath | ( | ) |
| void libcdr::CDRPath::appendCubicBezierTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | x, | ||
| double | y | ||
| ) |
Referenced by libcdr::CommonParser::processPath().
| void libcdr::CDRPath::appendLineTo | ( | double | x, |
| double | y | ||
| ) |
| void libcdr::CDRPath::appendMoveTo | ( | double | x, |
| double | y | ||
| ) |
| void libcdr::CDRPath::appendPath | ( | const CDRPath & | path | ) |
Referenced by CDRPath(), libcdr::CDRPolygon::create(), and operator=().
| void libcdr::CDRPath::appendQuadraticBezierTo | ( | double | x1, |
| double | y1, | ||
| double | x, | ||
| double | y | ||
| ) |
| void libcdr::CDRPath::appendSplineTo | ( | const std::vector< std::pair< double, double > > & | points | ) |
Referenced by libcdr::CDRSplineData::create().
| void libcdr::CDRPath::clear | ( | ) |
Referenced by operator=().
|
overridevirtual |
Implements libcdr::CDRPathElement.
| bool libcdr::CDRPath::empty | ( | ) | const |
| bool libcdr::CDRPath::isClosed | ( | ) | const |
Referenced by CDRPath(), and operator=().
|
overridevirtual |
Implements libcdr::CDRPathElement.
|
overridevirtual |
Implements libcdr::CDRPathElement.
Referenced by libcdr::CDRContentCollector::_lineProperties(), and libcdr::CDRPolygon::create().
|
overridevirtual |
Implements libcdr::CDRPathElement.
Referenced by libcdr::CDRContentCollector::_lineProperties(), and writeOut().
| void libcdr::CDRPath::writeOut | ( | librevenge::RVNGString & | path, |
| librevenge::RVNGString & | viewBox, | ||
| double & | width | ||
| ) | const |
|
private |
|
private |
Referenced by appendClosePath(), CDRPath(), clear(), isClosed(), and operator=().