17 #include <QGraphicsSceneMouseEvent>
79 IShape2DView::mouseMoveEvent(event);
Defines MaskItems classes.
Defines RectangleView class.
qreal toSceneX(const QString &property_name) const
qreal toSceneY(const QString &property_name) const
qreal fromSceneY(qreal value) const
void setBlockOnProperty(bool value)
qreal fromSceneX(qreal value) const
convert scene coordinates to ColorMap plot coordinates
double par(const QString &property_name) const
static QBrush getMaskBrush(bool mask_value)
static QPen getMaskPen(bool mask_value)
static const QString P_MASK_VALUE
SizeHandleElement * m_activeHandleElement
QRectF m_mask_rect
mask rectangle in scene coordinates
qreal width() const
returns width of the rectangle
void update_view()
update visual appearance of view (triggered by ISceneAdaptor)
QPointF m_resize_opposite_origin
static const QString P_XUP
static const QString P_YLOW
static const QString P_YUP
static const QString P_XLOW
virtual void onChangedX()
qreal left() const
returns the x-coordinate of the rectangle's left edge
virtual void onPropertyChange(const QString &propertyName)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
void update_position()
updates position of view using item properties
qreal right() const
returns the x-coordinate of the rectangle's right edge
qreal bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
qreal top() const
Returns the y-coordinate of the rectangle's top edge.
virtual void onChangedY()
QVariant getItemValue(const QString &tag) const
Directly access value of item under given tag.
void setItemValue(const QString &tag, const QVariant &variant)
Directly set value of item under given tag.
EHandleType getHandleType() const