Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
imagetaskstatswidget.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <QWidget>
6 
7 class QEvent;
8 
9 namespace geometrize
10 {
11 
12 namespace dialog
13 {
14 
18 class ImageTaskStatsWidget : public QWidget
19 {
20  Q_OBJECT
21 
22 public:
26  };
27 
28  ImageTaskStatsWidget(QWidget* parent = nullptr);
29  virtual ~ImageTaskStatsWidget();
30 
31  void setTaskId(std::size_t id);
32  void setTimeRunning(int seconds);
33  void setCurrentStatus(ImageTaskStatus status);
34  void setShapeCount(std::size_t shapeCount);
35  void setSimilarity(float similarity);
36  void setImageDimensions(std::uint32_t width, std::uint32_t height);
37 
38 protected:
39  void changeEvent(QEvent*) override;
40 
41 private:
43  std::unique_ptr<ImageTaskStatsWidgetImpl> d;
44 };
45 
46 }
47 
48 }
void setShapeCount(std::size_t shapeCount)
Definition: imagetaskstatswidget.cpp:121
void changeEvent(QEvent *) override
Definition: imagetaskstatswidget.cpp:146
void setImageDimensions(std::uint32_t width, std::uint32_t height)
Definition: imagetaskstatswidget.cpp:141
ImageTaskStatus
Definition: imagetaskstatswidget.h:23
Definition: imagetaskstatswidget.h:25
void setTaskId(std::size_t id)
Definition: imagetaskstatswidget.cpp:116
The ImageTaskStatsWidget implements a widget for statistics relating to image task progress...
Definition: imagetaskstatswidget.h:18
void setCurrentStatus(ImageTaskStatus status)
Definition: imagetaskstatswidget.cpp:131
virtual ~ImageTaskStatsWidget()
Definition: imagetaskstatswidget.cpp:112
Definition: imagetaskstatswidget.h:24
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
ImageTaskStatsWidget(QWidget *parent=nullptr)
Definition: imagetaskstatswidget.cpp:106
void setTimeRunning(int seconds)
Definition: imagetaskstatswidget.cpp:126
void setSimilarity(float similarity)
Definition: imagetaskstatswidget.cpp:136