示例#1
0
bool MgEllipse::_setHandlePoint(int index, const Point2d& pt, float tol)
{
    int index2 = isCircle() ? index + 4 : index;
    return (index < _getHandleCount() - 1
            ? MgBaseRect::_setHandlePoint(index2, pt, tol)
            : offset(pt - getCenter(), -1));
}
示例#2
0
int MgEllipse::_getHandleType(int index) const
{
    int index2 = isCircle() ? index + 4 : index;
    return (index == _getHandleCount() - 1 ? kMgHandleCenter :
            index2 >= 4 && index2 < 8 ? kMgHandleQuadrant : kMgHandleVertex);
}
示例#3
0
int MgBaseShape::getHandleCount() const {
    return _getHandleCount();
}
示例#4
0
Point2d MgEllipse::_getHandlePoint(int index) const
{
    int index2 = isCircle() ? index + 4 : index;
    return (index < _getHandleCount() - 1
            ? MgBaseRect::_getHandlePoint(index2) : getCenter());
}
示例#5
0
Point2d MgEllipse::_getHandlePoint(int index) const
{
    int index2 = getFlag(kMgSquare) ? index + 4 : index;
    return (index < _getHandleCount() - 1
            ? MgBaseRect::_getHandlePoint(index2) : getCenter());
}