17 #include <QGraphicsSceneMouseEvent>
86 IShape2DView::mouseMoveEvent(event);
Defines MaskItems classes.
Defines RectangleView class.
qreal toSceneX(qreal value) const
qreal fromSceneY(qreal value) const
void setBlockOnProperty(bool value)
void disconnectFromItem(SessionItem *item)
qreal fromSceneX(qreal value) const
convert scene coordinates to ColorMap plot coordinates
qreal toSceneY(qreal value) const
Base view for all rectangular-like masks.
SizeHandleElement * m_activeHandleElement
QRectF m_mask_rect
mask rectangle in scene coordinates
qreal width() const
Returns width of the rectangle.
void update_view() override
update visual appearance of view (triggered by ISceneAdaptor)
QPointF m_resize_opposite_origin
DoubleDescriptor xLow() const
DoubleDescriptor yUp() const
void setXLow(double x_low)
DoubleDescriptor yLow() const
DoubleDescriptor xUp() const
void setYLow(double y_low)
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
QRectF mask_rectangle() override
qreal left() const override
Returns the x-coordinate of the rectangle's left edge.
QPainterPath shape() const override
void onItemDestroyed() override
qreal bottom() const override
Returns the y-coordinate of the rectangle's bottom edge.
void onChangedY() override
void update_position() override
updates position of view using item properties
qreal top() const override
Returns the y-coordinate of the rectangle's top edge.
qreal right() const override
Returns the x-coordinate of the rectangle's right edge.
SessionItem * parameterizedItem() const override
~RectangleView() override
void onChangedX() override
void onPropertyChange() override
RectangleView(RectangleItem *item)
Base class for a GUI data item.
EHandleType getHandleType() const