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

The ImageTaskExportWidget implements a widget for accessing and using the image task exporters e.g. for exporting image task shape data to JSON. More...

#include <imagetaskexportwidget.h>

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

Classes

class  ImageTaskExportWidgetImpl
 

Public Member Functions

 ImageTaskExportWidget (QWidget *parent=nullptr)
 
virtual ~ImageTaskExportWidget ()
 
void setImageTask (const task::ImageTask *task, const std::vector< geometrize::ShapeResult > *shapes)
 setImageTask Sets the current image task used by the export functions. More...
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Slots

void on_saveImageButton_clicked ()
 
void on_saveImagesButton_clicked ()
 
void on_saveSVGButton_clicked ()
 
void on_saveGeometryDataButton_clicked ()
 
void on_saveGIFButton_clicked ()
 
void on_saveHTML5WebpageButton_clicked ()
 
void on_saveWebGLWebpageButton_clicked ()
 

Private Attributes

std::unique_ptr
< ImageTaskExportWidgetImpl
d
 

Detailed Description

The ImageTaskExportWidget implements a widget for accessing and using the image task exporters e.g. for exporting image task shape data to JSON.

Constructor & Destructor Documentation

geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidget ( QWidget *  parent = nullptr)
226  :
227  QWidget{parent},
228  d{std::make_unique<ImageTaskExportWidget::ImageTaskExportWidgetImpl>(this)}
229 {
230 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
geometrize::dialog::ImageTaskExportWidget::~ImageTaskExportWidget ( )
virtual
233 {
234 }

Member Function Documentation

void geometrize::dialog::ImageTaskExportWidget::changeEvent ( QEvent *  event)
overrideprotected
277 {
278  if (event->type() == QEvent::LanguageChange) {
279  d->onLanguageChange();
280  }
281  QWidget::changeEvent(event);
282 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::on_saveGeometryDataButton_clicked ( )
privateslot
257 {
258  d->saveGeometryData();
259 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::on_saveGIFButton_clicked ( )
privateslot
262 {
263  d->saveGIF();
264 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::on_saveHTML5WebpageButton_clicked ( )
privateslot
267 {
268  d->saveHTML5WebpageButton();
269 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::on_saveImageButton_clicked ( )
privateslot
242 {
243  d->saveRasterizedSVG();
244 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::on_saveImagesButton_clicked ( )
privateslot
247 {
248  d->saveRasterizedSVGs();
249 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::on_saveSVGButton_clicked ( )
privateslot
252 {
253  d->saveSVG();
254 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::on_saveWebGLWebpageButton_clicked ( )
privateslot
272 {
273  d->saveWebGLWebpageButton();
274 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void geometrize::dialog::ImageTaskExportWidget::setImageTask ( const task::ImageTask task,
const std::vector< geometrize::ShapeResult > *  shapes 
)

setImageTask Sets the current image task used by the export functions.

Parameters
taskNon-owning pointer to the image task that the exporters on this widget will use.
shapesA non-owning pointer to the shape data produced by the image task.
237 {
238  d->setImageTask(task, shapes);
239 }
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62

Member Data Documentation

std::unique_ptr<ImageTaskExportWidgetImpl> geometrize::dialog::ImageTaskExportWidget::d
private

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