Ipelib
|
#include <ipeshape.h>
Inherited by ipe::ClosedSpline, ipe::Curve, and ipe::Ellipse.
A subpath of a Path.
A subpath is either open, or closed. There are two special kinds of closed subpaths, namely ellipses and closed B-splines.
enum ipe::SubPath::Type |
SubPath::~SubPath | ( | ) | [pure virtual] |
Implementation of pure virtual destructor.
virtual Type ipe::SubPath::type | ( | ) | const [pure virtual] |
Return type of this subpath.
Implemented in ipe::Ellipse, ipe::ClosedSpline, and ipe::Curve.
bool SubPath::closed | ( | ) | const [virtual] |
const Ellipse * SubPath::asEllipse | ( | ) | const [virtual] |
Return this object as an Ellipse, or 0 if it's not an ellipse.
Reimplemented in ipe::Ellipse.
const ClosedSpline * SubPath::asClosedSpline | ( | ) | const [virtual] |
Return this object as an ClosedSpline, or 0 if it's not a closed spline.
Reimplemented in ipe::ClosedSpline.
const Curve * SubPath::asCurve | ( | ) | const [virtual] |
Return this object as an Curve, or else 0.
Reimplemented in ipe::Curve.
virtual void ipe::SubPath::save | ( | Stream & | stream | ) | const [pure virtual] |
Save subpath to XML stream.
Implemented in ipe::Ellipse, ipe::ClosedSpline, and ipe::Curve.
virtual void ipe::SubPath::draw | ( | Painter & | painter | ) | const [pure virtual] |
Draw subpath (does not call drawPath()).
Implemented in ipe::Ellipse, ipe::ClosedSpline, and ipe::Curve.
Add subpath to box.
Implemented in ipe::Ellipse, ipe::ClosedSpline, and ipe::Curve.
virtual double ipe::SubPath::distance | ( | const Vector & | v, |
const Matrix & | m, | ||
double | bound | ||
) | const [pure virtual] |
Return distance from v to subpath transformed by m.
Implemented in ipe::Ellipse, ipe::ClosedSpline, and ipe::Curve.
virtual void ipe::SubPath::snapVtx | ( | const Vector & | mouse, |
const Matrix & | m, | ||
Vector & | pos, | ||
double & | bound | ||
) | const [pure virtual] |
Snap to vertex.
Implemented in ipe::Ellipse, ipe::ClosedSpline, and ipe::Curve.
virtual void ipe::SubPath::snapBnd | ( | const Vector & | mouse, |
const Matrix & | m, | ||
Vector & | pos, | ||
double & | bound | ||
) | const [pure virtual] |
Snap to boundary of subpath.
Implemented in ipe::Ellipse, ipe::ClosedSpline, and ipe::Curve.