Geometrize  1.0
An application for geometrizing images into geometric primitives
imagetaskcreator.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <optional>
5 #include <string>
6 
7 class QImage;
8 
9 namespace geometrize
10 {
11 
12 namespace preferences
13 {
14 
15 class ImageTaskPreferences;
16 
17 }
18 
19 namespace task
20 {
21 
22 class ImageTask;
23 
24 }
25 
26 }
27 
28 namespace geometrize
29 {
30 
31 namespace task
32 {
33 
41 ImageTask* createImageTaskAndWindow(const std::string& displayName, const std::string& taskUrl, const std::optional<geometrize::preferences::ImageTaskPreferences>& prefs);
42 
50 ImageTask* createImageTaskAndWindow(const std::string& displayName, const QImage& image, const std::optional<geometrize::preferences::ImageTaskPreferences>& prefs);
51 
52 }
53 
54 }
imageloader.h
geometrize::dialog::ImageTaskWindow::setImageTask
void setImageTask(task::ImageTask *task)
setImageTask Sets the current image task shown by the window.
Definition: imagetaskwindow.cpp:906
imagetaskcreator.h
geometrize::image::loadImage
QImage loadImage(const std::string &filePath)
loadImage Loads an image from the image at the file path. Converts to RGBA8888 format.
Definition: imageloader.cpp:64
geometrize::task::createImageTaskAndWindow
ImageTask * createImageTaskAndWindow(const std::string &displayName, const std::string &taskUrl, const std::optional< geometrize::preferences::ImageTaskPreferences > &prefs)
createImageTaskAndWindow Creates an image task, and immediately creates a graphical window for manipu...
Definition: imagetaskcreator.cpp:52
geometrize::preferences::GlobalPreferences
The GlobalPreferences class models the preferences associated with the application as a whole....
Definition: globalpreferences.h:44
geometrize
Definition: commandlineparser.cpp:73
imagetask.h
geometrize::preferences::GlobalPreferences::shouldUseImageAlphaReplacementColor
bool shouldUseImageAlphaReplacementColor() const
shouldUseImageAlphaReplacementColor Gets the preference for whether to replace the alpha of a target ...
Definition: globalpreferences.cpp:548
geometrize::task::ImageTask::setPreferences
void setPreferences(preferences::ImageTaskPreferences preferences)
setPreferences Sets the preferences for this task.
Definition: imagetask.cpp:397
globalpreferences.h
geometrize::task::ImageTask
The ImageTask class transforms a source image into a collection of shapes approximating the source im...
Definition: imagetask.h:53
geometrize::preferences::GlobalPreferences::getTargetImageAlphaReplacementColor
std::array< std::int32_t, 4 > getTargetImageAlphaReplacementColor() const
getTargetImageAlphaReplacementColor Gets the preference for the color to replace the alpha of a targe...
Definition: globalpreferences.cpp:538
geometrize::preferences::getGlobalPreferences
geometrize::preferences::GlobalPreferences & getGlobalPreferences()
getGlobalPreferences Shorthand function that gets a reference to the shared global preferences object...
Definition: globalpreferences.cpp:32
geometrize::image::convertImageToBitmapWithDownscaling
geometrize::Bitmap convertImageToBitmapWithDownscaling(const QImage &image)
imageToBitmapWithDownscaling Creates a bitmap data object from the given image, downscaling in the pr...
Definition: imageloader.cpp:32
imagetaskwindow.h
geometrize::dialog::ImageTaskWindow
The ImageTaskWindow class encapsulates the UI for manipiulating, running and viewing an image task th...
Definition: imagetaskwindow.h:31