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