15 #ifndef BORNAGAIN_GUI_VIEW_MASK_ISHAPE2DVIEW_H
16 #define BORNAGAIN_GUI_VIEW_MASK_ISHAPE2DVIEW_H
19 #include <QGraphicsObject>
51 void paint(QPainter* painter,
const QStyleOptionGraphicsItem*, QWidget*)
override;
Defines class MaskEditorHelper.
Interface to adapt MaskItems coordinates (expressed in units of IntensityDataItem) to/from scene coor...
Main interface class for views representing MaskItems, Projections on graphics scene.
virtual void onPropertyChange()
virtual void addView(IShape2DView *childView, int row=0)
virtual SessionItem * parameterizedItem() const =0
virtual void onItemDestroyed()=0
virtual void onChangedX()
virtual void update_view()=0
update visual appearance of view (triggered by ISceneAdaptor)
const ISceneAdaptor * m_adaptor
qreal toSceneX(qreal value) const
QRectF boundingRect() const override
qreal fromSceneY(qreal value) const
void setBlockOnProperty(bool value)
void disconnectFromItem(SessionItem *item)
QPainterPath maskedShape() const
Returns the shape with all masking already applied.
bool blockOnProperty() const
void onItemPropertyChange(const QString &propertyName)
qreal fromSceneX(qreal value) const
convert scene coordinates to ColorMap plot coordinates
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
void setSceneAdaptor(const ISceneAdaptor *adaptor)
virtual void onChangedY()
qreal toSceneY(qreal value) const
bool m_block_on_property_change
IShape2DView(SessionItem *item)
int type() const override
Base class for a GUI data item.