15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_RECTANGLEVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_RECTANGLEVIEW_H
37 void paint(QPainter* painter,
const QStyleOptionGraphicsItem*, QWidget*);
Defines RectangleBaseView class.
Base view for all rectangular-like masks.
This is a View of rectangular mask (represented by RectangleItem) on GraphicsScene.
virtual void onChangedX()
qreal left() const
returns the x-coordinate of the rectangle's left edge
virtual void onPropertyChange(const QString &propertyName)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
void update_position()
updates position of view using item properties
qreal right() const
returns the x-coordinate of the rectangle's right edge
qreal bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
qreal top() const
Returns the y-coordinate of the rectangle's top edge.
virtual void onChangedY()