28 m_rect (QRectF(0, 0, 0, 0)),
47 Q_UNUSED(initial_selection_rect)
62 setRect(QRectF(mapFromScene(mapped_points.at(0)), mapFromScene(mapped_points.at(1))));
76 QRectF r(
m_rect.normalized());
77 r.adjust(-adjust, -adjust, adjust, adjust);
97 return(mapToScene(
rect().topLeft()));
119 prepareGeometryChange();
131 return(
rect().isNull());
144 prepareGeometryChange();
159 prepareGeometryChange();
QRectF sceneGeometricRect() const override
AbstractPartEllipse::sceneGeometricRect.
void handleUserTransformation(const QRectF &, const QRectF &) override
AbstractPartEllipse::handleUserTransformation Handle the user-induced transformation from initial_sel...
QList< QPointF > mapPoints(const QRectF &, const QRectF &, const QList< QPointF > &)
virtual void setStartAngle(const int &start_angle)
AbstractPartEllipse::setStartAngle Sets the start angle for an ellipse segment to angle...
The CustomElementGraphicPart class This class is the base for all home-made primitive like line...
bool isUseless() const override
AbstractPartEllipse::isUseless.
virtual QPointF sceneTopLeft() const
AbstractPartEllipse::sceneTopLeft.
virtual void setSpanAngle(const int &span_angle)
AbstractPartEllipse::setSpanAngle Returns the span angle of an ellipse segment in 16ths of a degree...
AbstractPartEllipse(QETElementEditor *editor, QGraphicsItem *parent=nullptr)
AbstractPartEllipse::AbstractPartEllipse Constructor.
virtual void setRect(const QRectF &rect)
AbstractPartEllipse::setRect Sets the item's ellipse geometry to rect. The rectangle's left edge defi...
~AbstractPartEllipse() override
AbstractPartEllipse::~AbstractPartEllipse Destructor.
QRectF boundingRect() const override
AbstractPartEllipse::boundingRect Bounding rectangle this part can fit into.
QList< QPointF > saved_points_
qreal penWeight() const
CustomElementGraphicPart::penWeight.
void startUserTransformation(const QRectF &) override
AbstractPartEllipse::startUserTransformation Start the user-induced transformation, provided this primitive is contained within the initial_selection_rect bounding rectangle.