17 #include <QGraphicsSceneMouseEvent>
25 setFlag(QGraphicsItem::ItemIsMovable);
26 setFlag(QGraphicsItem::ItemSendsGeometryChanges);
36 return QRectF(-4, -4, 8, 8);
62 painter->setRenderHints(QPainter::Antialiasing);
65 brush.setColor(Qt::red);
66 painter->setBrush(brush);
80 IShape2DView::hoverEnterEvent(event);
87 IShape2DView::hoverLeaveEvent(event);
Defines MaskItems classes.
Defines PolygonPointView class.
Main interface class for views representing MaskItems, Projections on graphics scene.
qreal fromSceneY(qreal value) const
void disconnectFromItem(SessionItem *item)
qreal fromSceneX(qreal value) const
convert scene coordinates to ColorMap plot coordinates
static QPen getSelectionMarkerPen()
static QBrush getSelectionMarkerBrush()
void setPosY(double pos_y)
void setPosX(double pos_x)
SessionItem * parameterizedItem() const override
void closePolygonRequest(bool)
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
void onItemDestroyed() override
void onPropertyChange() override
QRectF boundingRect() const override
void update_view() override
PolygonPointView(PolygonPointItem *item)
PolygonPointItem * m_item
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
void updateParameterizedItem(const QPointF &pos)
~PolygonPointView() override
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
Base class for a GUI data item.