15 #ifndef BORNAGAIN_GUI_VIEW_MASK_ELLIPSEVIEW_H
16 #define BORNAGAIN_GUI_VIEW_MASK_ELLIPSEVIEW_H
41 QPainterPath
shape()
const override;
47 qreal
left()
const override;
48 qreal
right()
const override;
49 qreal
top()
const override;
50 qreal
bottom()
const override;
Defines RectangleBaseView class.
This is a View of ellipse mask (represented by EllipseItem) on GraphicsScene. Given view follows stan...
QRectF mask_rectangle() override
QPainterPath shape() const override
EllipseView(EllipseItem *item)
void onPropertyChange() override
void update_position() override
updates position of view using item properties
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
qreal top() const override
Returns the y-coordinate of the rectangle's top edge.
void onChangedY() override
int type() const override
void onChangedX() override
void onItemDestroyed() override
SessionItem * parameterizedItem() const override
qreal bottom() const override
Returns the y-coordinate of the rectangle's bottom edge.
qreal left() const override
Returns the x-coordinate of the rectangle's left edge.
qreal right() const override
Returns the x-coordinate of the rectangle's right edge.
Base view for all rectangular-like masks.
Base class for a GUI data item.