Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
geometrize::dialog::ImageTaskImageWidget Class Reference

The ImageTaskImageWidget implements a widget for viewing and manipulating the images that an image task works with. More...

#include <imagetaskimagewidget.h>

Inheritance diagram for geometrize::dialog::ImageTaskImageWidget:
Inheritance graph
[legend]
Collaboration diagram for geometrize::dialog::ImageTaskImageWidget:
Collaboration graph
[legend]

Classes

class  ImageTaskImageWidgetImpl
 

Signals

void targetImageOpacityChanged (unsigned int opacity)
 targetImageOpacityChanged Signal dispatched when the target image opacity is changed. More...
 
void targetImageSelected (const QImage &image)
 targetImageSelected Signal dispatched when a candidate target image is selected, typically by the user. More...
 
void targetImageSet (const QImage &image)
 targetImageSet Signal dispatched when a target image is set and made visible in this widget (and is probably going to be used by the image task). More...
 
void baseImageSelected (const QImage &image)
 baseImageSelected Signal dispatched when a candidate base image is selected, typically by the user. More...
 

Public Member Functions

 ImageTaskImageWidget (QWidget *parent=nullptr)
 
virtual ~ImageTaskImageWidget ()
 
void setTargetImageOpacity (unsigned int opacity)
 setTargetImageOpacity Sets the opacity of the target image. More...
 
void setTargetImage (const QImage &image)
 setTargetImage Sets the target image, which is made visible in this widget. Must be a valid (non-null) image. More...
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Attributes

std::unique_ptr
< ImageTaskImageWidgetImpl
d
 

Detailed Description

The ImageTaskImageWidget implements a widget for viewing and manipulating the images that an image task works with.

Constructor & Destructor Documentation

geometrize::dialog::ImageTaskImageWidget::ImageTaskImageWidget ( QWidget *  parent = nullptr)
91  :
92  QWidget{parent},
93  d{std::make_unique<ImageTaskImageWidget::ImageTaskImageWidgetImpl>(this)}
94 {
95 }
std::unique_ptr< ImageTaskImageWidgetImpl > d
Definition: imagetaskimagewidget.h:68
geometrize::dialog::ImageTaskImageWidget::~ImageTaskImageWidget ( )
virtual
98 {
99 }

Member Function Documentation

void geometrize::dialog::ImageTaskImageWidget::baseImageSelected ( const QImage &  image)
signal

baseImageSelected Signal dispatched when a candidate base image is selected, typically by the user.

Parameters
imageThe image the user picked.
void geometrize::dialog::ImageTaskImageWidget::changeEvent ( QEvent *  event)
overrideprotected
112 {
113  if (event->type() == QEvent::LanguageChange) {
114  d->onLanguageChange();
115  }
116  QWidget::changeEvent(event);
117 }
std::unique_ptr< ImageTaskImageWidgetImpl > d
Definition: imagetaskimagewidget.h:68
void geometrize::dialog::ImageTaskImageWidget::setTargetImage ( const QImage &  image)

setTargetImage Sets the target image, which is made visible in this widget. Must be a valid (non-null) image.

Parameters
imageThe target image to set on this widget.
107 {
108  d->setTargetImage(image);
109 }
std::unique_ptr< ImageTaskImageWidgetImpl > d
Definition: imagetaskimagewidget.h:68
void geometrize::dialog::ImageTaskImageWidget::setTargetImageOpacity ( unsigned int  opacity)

setTargetImageOpacity Sets the opacity of the target image.

Parameters
opacityThe opacity of the target image (0-255).
102 {
103  d->setTargetImageOpacity(opacity);
104 }
std::unique_ptr< ImageTaskImageWidgetImpl > d
Definition: imagetaskimagewidget.h:68
void geometrize::dialog::ImageTaskImageWidget::targetImageOpacityChanged ( unsigned int  opacity)
signal

targetImageOpacityChanged Signal dispatched when the target image opacity is changed.

Parameters
opacityThe opacity of the target image (0-255)
void geometrize::dialog::ImageTaskImageWidget::targetImageSelected ( const QImage &  image)
signal

targetImageSelected Signal dispatched when a candidate target image is selected, typically by the user.

Parameters
imageThe image the user picked.
void geometrize::dialog::ImageTaskImageWidget::targetImageSet ( const QImage &  image)
signal

targetImageSet Signal dispatched when a target image is set and made visible in this widget (and is probably going to be used by the image task).

Parameters
imageThe image that was set on the target image widget.

Member Data Documentation

std::unique_ptr<ImageTaskImageWidgetImpl> geometrize::dialog::ImageTaskImageWidget::d
private

The documentation for this class was generated from the following files: