 |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Go to the documentation of this file.
15 class ImageTaskPreferences;
41 ImageTask*
createImageTaskAndWindow(
const std::string& displayName,
const std::string& taskUrl,
const std::optional<geometrize::preferences::ImageTaskPreferences>& prefs);
50 ImageTask*
createImageTaskAndWindow(
const std::string& displayName,
const QImage& image,
const std::optional<geometrize::preferences::ImageTaskPreferences>& prefs);
void setImageTask(task::ImageTask *task)
setImageTask Sets the current image task shown by the window.
Definition: imagetaskwindow.cpp:906
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
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
The GlobalPreferences class models the preferences associated with the application as a whole....
Definition: globalpreferences.h:44
Definition: commandlineparser.cpp:73
bool shouldUseImageAlphaReplacementColor() const
shouldUseImageAlphaReplacementColor Gets the preference for whether to replace the alpha of a target ...
Definition: globalpreferences.cpp:548
void setPreferences(preferences::ImageTaskPreferences preferences)
setPreferences Sets the preferences for this task.
Definition: imagetask.cpp:397
The ImageTask class transforms a source image into a collection of shapes approximating the source im...
Definition: imagetask.h:53
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::GlobalPreferences & getGlobalPreferences()
getGlobalPreferences Shorthand function that gets a reference to the shared global preferences object...
Definition: globalpreferences.cpp:32
geometrize::Bitmap convertImageToBitmapWithDownscaling(const QImage &image)
imageToBitmapWithDownscaling Creates a bitmap data object from the given image, downscaling in the pr...
Definition: imageloader.cpp:32
The ImageTaskWindow class encapsulates the UI for manipiulating, running and viewing an image task th...
Definition: imagetaskwindow.h:31