Ipelib
|
An ellipse subpath. More...
#include <ipeshape.h>
Inherits ipe::SubPath.
An ellipse subpath.
Ellipse::Ellipse | ( | const Matrix & | m | ) |
SubPath::Type Ellipse::type | ( | ) | const [virtual] |
Return type of this subpath.
Implements ipe::SubPath.
const Ellipse * Ellipse::asEllipse | ( | ) | const [virtual] |
Return this object as an Ellipse, or 0 if it's not an ellipse.
Reimplemented from ipe::SubPath.
Matrix ipe::Ellipse::matrix | ( | ) | const [inline] |
Return matrix that transforms unit circle to the ellipse.
void Ellipse::save | ( | Stream & | stream | ) | const [virtual] |
Save subpath to XML stream.
Implements ipe::SubPath.
void Ellipse::draw | ( | Painter & | painter | ) | const [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.
void Ellipse::snapVtx | ( | const Vector & | mouse, |
const Matrix & | m, | ||
Vector & | pos, | ||
double & | bound | ||
) | const [virtual] |
snaps to center of ellipse.
Implements ipe::SubPath.
void Ellipse::snapBnd | ( | const Vector & | mouse, |
const Matrix & | m, | ||
Vector & | pos, | ||
double & | bound | ||
) | const [virtual] |
Snap to boundary of subpath.
Implements ipe::SubPath.