50 virtual void setImage(std::unique_ptr<Core::Common::ImageRegion> image) = 0;
61 virtual void updateTile(std::unique_ptr<Core::Common::ImageRegion> tile) = 0;
79 [[nodiscard]]
virtual float zoom()
const = 0;
85 [[nodiscard]]
virtual QPointF
pan()
const = 0;
Abstract base class for image display items managing common state (zoom, pan, dimensions).
virtual ~IRenderingItemBase()=default
Virtual destructor for safe inheritance.
virtual QMutex * getImageMutex() const =0
Gets a pointer to the mutex protecting the image data. This method provides access to the mutex for t...
virtual void setImage(std::unique_ptr< Core::Common::ImageRegion > image)=0
Sets the full image to be displayed.
virtual bool isImageValid() const =0
Checks if the full image data is loaded and valid.
virtual int imageWidth() const =0
Get the width of the image.
virtual float zoom() const =0
Gets the current zoom level.
virtual const Core::Common::ImageRegion * getFullImage() const =0
Gets a pointer to the full image data. This method provides access to the internal image data pointer...
virtual void updateTile(std::unique_ptr< Core::Common::ImageRegion > tile)=0
Updates a specific tile of the displayed image.
virtual void setPan(const QPointF &pan)=0
Sets the pan offset.
virtual int imageHeight() const =0
Get the height of the image.
virtual void setZoom(float zoom)=0
Sets the zoom level.
virtual QPointF pan() const =0
Gets the current pan offset.
Defines the ImageRegion structure for representing pixel buffers in the CaptureMoment Core library.
Represents a rectangular region of an image and its pixel data.