viewer: implemented basic zoom

No scrolling functionality yet, but the zoom is functional and efficient.
This commit is contained in:
itsmattkc
2020-03-13 16:41:09 +11:00
parent 0418c8ab85
commit c1c8067ee7
5 changed files with 113 additions and 33 deletions
+12 -12
View File
@@ -68,18 +68,17 @@ public:
*/
void DisconnectColorManager();
/**
* @brief Set the transformation matrix to draw with
*
* Set this if you want the drawing to pass through some sort of transform (most of the time you won't want this).
*/
void SetMatrix(const QMatrix4x4& mat);
/**
* @brief Set an image to load and display on screen
*/
void SetImage(const QString& fn);
ColorManager* color_manager() const;
const QString& ocio_display() const;
const QString& ocio_view() const;
const QString& ocio_look() const;
public slots:
/**
* @brief Set the texture to draw and draw it
@@ -113,11 +112,12 @@ public slots:
*/
void SetOCIOLook(const QString& look);
ColorManager* color_manager() const;
const QString& ocio_display() const;
const QString& ocio_view() const;
const QString& ocio_look() const;
/**
* @brief Set the transformation matrix to draw with
*
* Set this if you want the drawing to pass through some sort of transform (most of the time you won't want this).
*/
void SetMatrix(const QMatrix4x4& mat);
signals:
void DragStarted();