15 #ifndef BORNAGAIN_GUI_VIEW_MASK_LINEVIEWS_H
16 #define BORNAGAIN_GUI_VIEW_MASK_LINEVIEWS_H
33 QPainterPath
shape()
const override;
42 void paint(QPainter* painter,
const QStyleOptionGraphicsItem*, QWidget*)
override;
43 QVariant
itemChange(GraphicsItemChange change,
const QVariant& value)
override;
63 QPainterPath
shape()
const override;
72 void paint(QPainter* painter,
const QStyleOptionGraphicsItem*, QWidget*)
override;
73 QVariant
itemChange(GraphicsItemChange change,
const QVariant& value)
override;
Defines interface IShape2DView.
This is a view of HorizontalLineItem mask.
HorizontalLineView(HorizontalLineItem *item)
void onPropertyChange() override
void update_view() override
HorizontalLineItem * m_item
int type() const override
void onChangedY() override
QPainterPath shape() const override
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override
Allows item movement along y, prevent movement along x.
SessionItem * parameterizedItem() const override
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
~HorizontalLineView() override
void onItemDestroyed() override
Main interface class for views representing MaskItems, Projections on graphics scene.
Base class for a GUI data item.
This is a view of VerticalLineItem mask.
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override
Allows item movement along x, prevent movement along y.
void onItemDestroyed() override
void onChangedX() override
void onPropertyChange() override
SessionItem * parameterizedItem() const override
QPainterPath shape() const override
int type() const override
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
VerticalLineView(VerticalLineItem *item)
void update_view() override
~VerticalLineView() override
VerticalLineItem * m_item