49 bool m_image_dirty{
false};
72 void setImage(std::unique_ptr<Core::Common::ImageRegion> image)
override;
83 void updateTile(std::unique_ptr<Core::Common::ImageRegion> tile)
override;
116 QSGNode*
updatePaintNode(QSGNode* node, UpdatePaintNodeData* data)
override;
Base class for Qt Quick image display items managing common state (zoom, pan, dimensions)
Base class for Qt Quick image display items managing common state dimensions.
QPointF pan() const override
Gets the current pan offset.
float zoom() const override
Gets the current zoom level.
QQuickItem that renders an image via QSGSimpleTextureNode.
void panChanged(const QPointF &pan)
Signal emitted when the pan offset changes.
void onZoomChanged(float new_zoom) override
void imageSizeChanged()
Signal emitted when the image dimensions change (width or height).
void onImageChanged() override
~SGSImageItem() override
Destroys the SGSImageItem and releases associated resources.
void updateTile(std::unique_ptr< Core::Common::ImageRegion > tile) override
Updates a specific tile of the displayed image.
void onPanChanged(const QPointF &new_pan) override
SGSImageItem(QQuickItem *parent=nullptr)
Constructs a new SGSImageItem.
void setImage(std::unique_ptr< Core::Common::ImageRegion > image) override
Sets the full image to be displayed.
void zoomChanged(float zoom)
Signal emitted when the zoom value changes.
QSGNode * updatePaintNode(QSGNode *node, UpdatePaintNodeData *data) override
Updates the scene graph node for this item.