15 #ifndef BORNAGAIN_GUI_VIEW_MASK_RECTANGLEVIEW_H
16 #define BORNAGAIN_GUI_VIEW_MASK_RECTANGLEVIEW_H
33 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.
Base view for all rectangular-like masks.
This is a View of rectangular mask (represented by RectangleItem) on GraphicsScene....
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
QRectF mask_rectangle() override
qreal left() const override
Returns the x-coordinate of the rectangle's left edge.
QPainterPath shape() const override
void onItemDestroyed() override
qreal bottom() const override
Returns the y-coordinate of the rectangle's bottom edge.
void onChangedY() override
void update_position() override
updates position of view using item properties
qreal top() const override
Returns the y-coordinate of the rectangle's top edge.
qreal right() const override
Returns the x-coordinate of the rectangle's right edge.
SessionItem * parameterizedItem() const override
~RectangleView() override
void onChangedX() override
int type() const override
void onPropertyChange() override
RectangleView(RectangleItem *item)
Base class for a GUI data item.