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

The ImageTaskStatsWidget implements a widget for statistics relating to image task progress, such as the number of shapes created so far. More...

#include <imagetaskstatswidget.h>

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

Classes

class  ImageTaskStatsWidgetImpl
 

Public Types

enum  ImageTaskStatus { STOPPED, RUNNING }
 

Public Member Functions

 ImageTaskStatsWidget (QWidget *parent=nullptr)
 
virtual ~ImageTaskStatsWidget ()
 
void setTaskId (std::size_t id)
 
void setTimeRunning (int seconds)
 
void setCurrentStatus (ImageTaskStatus status)
 
void setShapeCount (std::size_t shapeCount)
 
void setSimilarity (float similarity)
 
void setImageDimensions (std::uint32_t width, std::uint32_t height)
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Attributes

std::unique_ptr
< ImageTaskStatsWidgetImpl
d
 

Detailed Description

The ImageTaskStatsWidget implements a widget for statistics relating to image task progress, such as the number of shapes created so far.

Member Enumeration Documentation

Enumerator
STOPPED 
RUNNING 
23  {
24  STOPPED,
25  RUNNING
26  };
Definition: imagetaskstatswidget.h:25
Definition: imagetaskstatswidget.h:24

Constructor & Destructor Documentation

geometrize::dialog::ImageTaskStatsWidget::ImageTaskStatsWidget ( QWidget *  parent = nullptr)
106  :
107  QWidget{parent},
108  d{std::make_unique<ImageTaskStatsWidget::ImageTaskStatsWidgetImpl>(this)}
109 {
110 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
geometrize::dialog::ImageTaskStatsWidget::~ImageTaskStatsWidget ( )
virtual
113 {
114 }

Member Function Documentation

void geometrize::dialog::ImageTaskStatsWidget::changeEvent ( QEvent *  event)
overrideprotected
147 {
148  if (event->type() == QEvent::LanguageChange) {
149  d->onLanguageChange();
150  }
151  QWidget::changeEvent(event);
152 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
void geometrize::dialog::ImageTaskStatsWidget::setCurrentStatus ( ImageTaskStatus  status)
132 {
133  d->setCurrentStatus(status);
134 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
void geometrize::dialog::ImageTaskStatsWidget::setImageDimensions ( std::uint32_t  width,
std::uint32_t  height 
)
142 {
143  d->setImageDimensions(width, height);
144 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
void geometrize::dialog::ImageTaskStatsWidget::setShapeCount ( std::size_t  shapeCount)
122 {
123  d->setShapeCount(shapeCount);
124 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
void geometrize::dialog::ImageTaskStatsWidget::setSimilarity ( float  similarity)
137 {
138  d->setSimilarity(similarity);
139 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
void geometrize::dialog::ImageTaskStatsWidget::setTaskId ( std::size_t  id)
117 {
118  d->setTaskId(id);
119 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42
void geometrize::dialog::ImageTaskStatsWidget::setTimeRunning ( int  seconds)
127 {
128  d->setTimeRunning(seconds);
129 }
std::unique_ptr< ImageTaskStatsWidgetImpl > d
Definition: imagetaskstatswidget.h:42

Member Data Documentation

std::unique_ptr<ImageTaskStatsWidgetImpl> geometrize::dialog::ImageTaskStatsWidget::d
private

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