Пример #1
0
bool BezierCurve::intersects(QPointF point, qreal distance) {
	bool result = false;
	if( getStrokedPath(distance, false).contains(point) ) {
	//if( getSimplePath().controlPointRect().contains(point)) {
		result = true;
	} 
	return result;
}
Пример #2
0
QPainterPath BezierCurve::getStrokedPath(qreal width)
{
    return getStrokedPath(width, true);
}
Пример #3
0
QPainterPath BezierCurve::getStrokedPath()
{
    return getStrokedPath( 2.0 * width );
}