39 QPainterPath outerRect;
42 QPainterPath innerRect;
46 painter->drawPath(outerRect.subtracted(innerRect));
Defines interface class ISceneAdaptor.
Defines MaskItems classes.
Defines RegionOfInterestView class.
virtual const QRectF & viewportRectangle() const
Returns viewport rectangle in scene coordinates.
const ISceneAdaptor * m_adaptor
static QBrush getMaskBrush(bool mask_value)
QRectF m_mask_rect
mask rectangle in scene coordinates
void update_view() override
update visual appearance of view (triggered by ISceneAdaptor)
This is a View of rectangular mask (represented by RectangleItem) on GraphicsScene....
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
RegionOfInterestView(RegionOfInterestItem *item)
QRectF boundingRect() const override
void update_view() override