Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
imagetaskimagewidget.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <QWidget>
6 
7 class QEvent;
8 class QImage;
9 
10 namespace geometrize
11 {
12 
13 namespace dialog
14 {
15 
19 class ImageTaskImageWidget : public QWidget
20 {
21  Q_OBJECT
22 
23 public:
24  ImageTaskImageWidget(QWidget* parent = nullptr);
25  virtual ~ImageTaskImageWidget();
26 
31  void setTargetImageOpacity(unsigned int opacity);
32 
37  void setTargetImage(const QImage& image);
38 
39 signals:
44  void targetImageOpacityChanged(unsigned int opacity);
45 
50  void targetImageSelected(const QImage& image);
51 
56  void targetImageSet(const QImage& image);
57 
62  void baseImageSelected(const QImage& image);
63 
64 protected:
65  void changeEvent(QEvent*) override;
66 
67 private:
69  std::unique_ptr<ImageTaskImageWidgetImpl> d;
70 };
71 
72 }
73 
74 }
std::unique_ptr< ImageTaskImageWidgetImpl > d
Definition: imagetaskimagewidget.h:68
ImageTaskImageWidget(QWidget *parent=nullptr)
Definition: imagetaskimagewidget.cpp:91
void setTargetImage(const QImage &image)
setTargetImage Sets the target image, which is made visible in this widget. Must be a valid (non-null...
Definition: imagetaskimagewidget.cpp:106
void changeEvent(QEvent *) override
Definition: imagetaskimagewidget.cpp:111
virtual ~ImageTaskImageWidget()
Definition: imagetaskimagewidget.cpp:97
void targetImageSelected(const QImage &image)
targetImageSelected Signal dispatched when a candidate target image is selected, typically by the use...
void targetImageOpacityChanged(unsigned int opacity)
targetImageOpacityChanged Signal dispatched when the target image opacity is changed.
void baseImageSelected(const QImage &image)
baseImageSelected Signal dispatched when a candidate base image is selected, typically by the user...
void targetImageSet(const QImage &image)
targetImageSet Signal dispatched when a target image is set and made visible in this widget (and is p...
The ImageTaskImageWidget implements a widget for viewing and manipulating the images that an image ta...
Definition: imagetaskimagewidget.h:19
void setTargetImageOpacity(unsigned int opacity)
setTargetImageOpacity Sets the opacity of the target image.
Definition: imagetaskimagewidget.cpp:101