20 #include <QStyleOptionGraphicsItem>
26 setFlag(QGraphicsItem::ItemIsSelectable);
49 QColor color(250, 250, 240, 150);
50 painter->setBrush(color);
55 pen.setStyle(Qt::DashLine);
57 painter->setBrush(Qt::NoBrush);
Defines class ColorMapSceneAdaptor.
Defines MaskAllView class.
Defines MaskItems classes.
virtual const QRectF & viewportRectangle() const
Returns viewport rectangle in scene coordinates.
Main interface class for views representing MaskItems, Projections on graphics scene.
const ISceneAdaptor * m_adaptor
void disconnectFromItem(SessionItem *item)
void onItemDestroyed() override
void update_view() override
SessionItem * parameterizedItem() const override
MaskAllView(MaskAllItem *item)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
Base class for a GUI data item.