 |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Go to the documentation of this file.
74 std::vector<geometrize::ShapeResult>
getShapes()
const;
78 std::unique_ptr<SynchronousImageTaskImpl>
d;
void drawBackgroundRectangle()
Definition: synchronousimagetask.cpp:57
SynchronousImageTaskImpl(const SynchronousImageTaskImpl &)=delete
void drawBackgroundRectangle()
drawBackgroundRectangle Convenience function that draws a background rectangle shape using the target...
Definition: synchronousimagetask.cpp:109
SynchronousImageTask(const SynchronousImageTask &)=delete
Bitmap & getTarget()
getTarget Gets the target bitmap.
Definition: synchronousimagetask.cpp:94
void stepModel()
stepModel Steps the internal model, typically adding a shape.
Definition: synchronousimagetask.cpp:104
Definition: synchronousimagetask.cpp:24
SynchronousImageTask(Bitmap &target)
Definition: synchronousimagetask.cpp:86
geometrize::preferences::ImageTaskPreferences m_preferences
Definition: synchronousimagetask.cpp:81
SynchronousImageTask * q
Definition: synchronousimagetask.cpp:79
geometrize::preferences::ImageTaskPreferences & getPreferences()
getPreferences Gets a reference to the current preferences of this task.
Definition: synchronousimagetask.cpp:114
std::vector< geometrize::ShapeResult > getShapes() const
Definition: synchronousimagetask.cpp:73
SynchronousImageTask & operator=(const SynchronousImageTask &)=delete
std::unique_ptr< geometrize::task::ImageTask > m_task
Definition: synchronousimagetask.cpp:82
The ImageTaskPreferences class models the preferences associated with an image task.
Definition: imagetaskpreferences.h:29
std::unique_ptr< SynchronousImageTaskImpl > d
Definition: synchronousimagetask.h:77
SynchronousImageTaskImpl(SynchronousImageTask *pQ, Bitmap &target)
Definition: synchronousimagetask.cpp:26
void step()
Definition: synchronousimagetask.cpp:52
void setPreferences(preferences::ImageTaskPreferences preferences)
setPreferences Sets the preferences for this task.
Definition: synchronousimagetask.cpp:119
Definition: commandlineparser.cpp:73
Bitmap & getCurrent()
getCurrent Gets the current bitmap.
Definition: synchronousimagetask.cpp:99
QMetaObject::Connection m_stepConnection
Definition: synchronousimagetask.cpp:83
geometrize::preferences::ImageTaskPreferences & getPreferences()
Definition: synchronousimagetask.cpp:63
std::vector< geometrize::ShapeResult > m_shapes
Definition: synchronousimagetask.cpp:80
virtual ~SynchronousImageTask()
Definition: synchronousimagetask.cpp:90
~SynchronousImageTaskImpl()
Definition: synchronousimagetask.cpp:37
void setPreferences(preferences::ImageTaskPreferences preferences)
Definition: synchronousimagetask.cpp:68
Bitmap & getCurrent()
Definition: synchronousimagetask.cpp:47
SynchronousImageTaskImpl operator=(const SynchronousImageTaskImpl &)=delete
void signal_modelDidStep(std::vector< geometrize::ShapeResult > shapes)
signal_modelDidStep Signal that is emitted immediately after the underlying image task model is stepp...
Bitmap & getTarget()
Definition: synchronousimagetask.cpp:42
std::vector< geometrize::ShapeResult > getShapes() const
getShapes Gets a vector of shapes generated so far by this task.
Definition: synchronousimagetask.cpp:124
The SynchronousImageTask class transforms a source image into a collection of shapes approximating th...
Definition: synchronousimagetask.h:28