Go to the documentation of this file.
12 #include <QGraphicsScene>
17 QGraphicsEllipseItem (rect),
18 m_graphicsPoint (graphicsPoint),
31 QGraphicsEllipseItem::hoverEnterEvent (event);
41 QGraphicsEllipseItem::hoverLeaveEvent (event);
45 const QVariant &value)
47 if (change == QGraphicsItem::ItemPositionHasChanged) {
51 <<
" positionHasChanged";
56 return QGraphicsEllipseItem::itemChange(change,
60 void GraphicsPointEllipse::setOpacityForSubtree (
double opacity)
65 if (m_shadow !=
nullptr) {
68 m_shadow->setOpacity (opacity <
MAX_OPACITY ? 0.0 : opacity);
75 if (boundingRect().width() > 0) {
76 double scale = (2 * radius) / boundingRect().width();
void signalPointHoverEnter(QString)
Signal for geometry window to highlight the current point upon hover enter.
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Accept hover so point can be highlighted when cursor is over it as a guide to user.
GraphicsPointEllipse(GraphicsPoint &graphicsPoint, const QRect &rect)
Single constructor.
void signalPointHoverLeave(QString)
Signal for geometry window to unhighlight the current point upon hover leave.
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Unhighlight this point.
void setShadow(GraphicsPointEllipse *shadow)
Bind this graphics item to its shadow.
Item type (i.e. image versus point)
void setRadius(int radius)
Update the radius.
#define LOG4CPP_INFO_S(logger)
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests.
log4cpp::Category * mainCat
double highlightOpacity() const
Get method for highlight opacity.
Graphics item for drawing a circular or polygonal Point.
#define LOG4CPP_DEBUG_S(logger)
This class add event handling to QGraphicsEllipseItem.