|
Ipelib
|
#include <ipeshape.h>
Inherits ipe::SubPath.
Public Member Functions | |
| Ellipse (const Matrix &m) | |
| virtual Type | type () const |
| virtual const Ellipse * | asEllipse () const |
| Matrix | matrix () const |
| virtual void | save (Stream &stream) const |
| virtual void | draw (Painter &painter) const |
| virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
| virtual double | distance (const Vector &v, const Matrix &m, double bound) const |
| virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
| virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
Public Member Functions inherited from ipe::SubPath | |
| virtual | ~SubPath ()=0 |
| virtual bool | closed () const |
| virtual const ClosedSpline * | asClosedSpline () const |
| virtual const Curve * | asCurve () const |
Additional Inherited Members | |
Public Types inherited from ipe::SubPath | |
| enum | Type { ECurve, EEllipse, EClosedSpline } |
An ellipse subpath.
| Ellipse::Ellipse | ( | const Matrix & | m | ) |
|
virtual |
Return type of this subpath.
Implements ipe::SubPath.
|
virtual |
Return this object as an Ellipse, or 0 if it's not an ellipse.
Reimplemented from ipe::SubPath.
|
inline |
Return matrix that transforms unit circle to the ellipse.
|
virtual |
Save subpath to XML stream.
Implements ipe::SubPath.
|
virtual |
Draw subpath (does not call drawPath()).
Implements ipe::SubPath.
Add subpath to box.
Implements ipe::SubPath.
Return distance from v to subpath transformed by m.
Implements ipe::SubPath.
|
virtual |
snaps to center of ellipse.
Implements ipe::SubPath.
|
virtual |
Snap to boundary of subpath.
Implements ipe::SubPath.