 |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
|
std::shared_ptr< chaiscript::Module > | createDefaultBindings () |
| createDefaultBindings Creates the default Chaiscript to C++ bindings. More...
|
|
std::shared_ptr< chaiscript::Module > | createQWidgetBindings () |
| createQWidgetBindings Creates the Chaiscript to C++ bindings for the Qt QWidget class. More...
|
|
std::shared_ptr< chaiscript::Module > | createLaunchWindowBindings () |
| createLaunchWindowBindings Creates the Chaiscript to C++ bindings for the Geometrize launch window. More...
|
|
std::shared_ptr< chaiscript::Module > | createImageTaskWindowBindings () |
| createImageTaskWindowBindings Creates the Chaiscript to C++ binding for the Geometrize image task window. More...
|
|
std::shared_ptr< chaiscript::Module > | createImageBindings () |
| createImageBindings Creates the Chaiscript to C++ bindings for image manipulation. More...
|
|
std::shared_ptr< chaiscript::Module > | createSynchronousImageTaskBindings () |
| createSynchronousImageTaskBindings Creates the Chaiscript to C++ bindings for synchronous Geometrize image tasks (used by the Twitter bot). More...
|
|
std::shared_ptr< chaiscript::Module > | createImageTaskBindings () |
| createImageTaskBindings Creates the Chaiscript to C++ bindings for Geometrize image tasks. More...
|
|
std::shared_ptr< chaiscript::Module > | createImageExportBindings () |
| createImageExportBindings Creates the Chaiscript to C++ bindings for saving images. More...
|
|
std::shared_ptr< chaiscript::Module > | createAnimatedGifExportBindings () |
| createGifExportBindings Creates the ChaiScript to C++ bindings for saving animated GIFs. More...
|
|
std::shared_ptr< chaiscript::Module > | createGeometrizeLibraryBindings () |
| createGeometrizeLibraryBindings Creates the Chaiscript to C++ bindings for all of the functionality in the Geometrize library. More...
|
|
std::shared_ptr< chaiscript::Module > | createTabletEventBindings () |
| createTabletEventBindings Creates the Chaiscript to C++ bindings for tablet events (e.g. Wacom pen input data). More...
|
|
std::shared_ptr< chaiscript::Module > | createMathBindings () |
| createMathBindings Creates the Chaiscript to C++ bindings for common math functions. More...
|
|
std::shared_ptr< chaiscript::Module > | createUserInterfacePuppeteerBindings () |
| createUserInterfacePuppeteerBindings Creates ChaiScript to C++ bindings for driving the user interface (primarily for testing purposes). More...
|
|
std::shared_ptr< chaiscript::Module > | createFunctionalTestHelperBindings () |
| createFunctionalTestHelperBindings Creates ChaiScript to C++ bindings for helper functions needed for the functional/self-tests (e.g. reporting test results). More...
|
|
geometrize::dialog::ImageTaskWindow * | createImageTaskWindow () |
|
geometrize::dialog::LaunchWindow * | createLaunchWindow () |
|
geometrize::task::ImageTask * | createImageTask (geometrize::Bitmap &bitmap) |
|
std::vector< geometrize::dialog::LaunchWindow * > | getLaunchWindows () |
|
std::vector< geometrize::dialog::ImageTaskWindow * > | getImageTaskWindows () |
|
std::string | getApplicationDirectoryPath () |
|
void | printToConsole (const std::string &str) |
|
void | printToAllScriptConsoleWidgets (const std::string &str) |
|
void | messageBox (const std::string &str) |
|
void | debugBreak () |
|
void | processApplicationEvents () |
|
bool | fileExists (const std::string &filePath) |
|
bool | directoryExists (const std::string &dirPath) |
|
bool | directoriesExist (const std::vector< std::string > &dirPaths) |
|
bool | directoryContainsFile (const std::string &dirPath, const std::string &fileName) |
|
bool | createDirectory (const std::string &dirPath) |
|
std::string | readFileAsString (const std::string &filePath) |
|
std::vector< std::string > | getFilePathsForDirectory (const std::string &dirPath) |
|
std::vector< std::string > | getScriptSearchPaths () |
|
std::vector< std::string > | getTemplateSearchPaths () |
|
std::string | getFirstFileWithExtension (const std::string &dirPath, const std::string &extension) |
|
std::string | getFirstFileWithExtensions (const std::string &dirPath, const std::vector< std::string > &extensions) |
|
std::vector< std::string > | getFilesWithExtensions (const std::string &, const std::vector< std::string > &) |
|
std::vector< std::string > | getFilesWithExtension (const std::string &dirPath, const std::string &extension) |
|
std::vector< std::string > | getSupportedImageFileExtensions () |
|
std::vector< std::string > | getScriptsForPath (const std::string &dirPath) |
|
std::vector< std::string > | getScriptsForPaths (const std::vector< std::string > &dirPaths) |
|
std::string | getDirectoryForFilePath (const std::string &filePath) |
|
std::string | getFileNameForFilePath (const std::string &filePath) |
|
void | openTask (const std::string &url, const bool addToRecents) |
|
bool | openInDefaultApplication (const std::string &path) |
|
bool | revealInDefaultApplication (const std::string &path) |
|
void | clearGlobalClipboard () |
|
std::string | getGlobalClipboardText () |
|
void | setGlobalClipboardText (const std::string &text) |
|
bool | stringBeginsWith (const std::string &str, const std::string &prefix) |
|
bool | stringEndsWith (const std::string &str, const std::string &suffix) |
|
std::string | getApplicationDirectoryLocation () |
|
std::string | getAppDataLocation () |
|
std::string | getHomeDirectoryLocation () |
|
std::string | getDesktopDirectoryLocation () |
|
bool | writeStringToFile (const std::string &str, const std::string &path) |
|
std::string | percentEncode (const std::string &str) |
|
int | randomIntInRange (const int lower, const int upper) |
|
float | randomFloatInRange (const float lower, const float upper) |
|
int | clampInt (const int value, const int lower, const int upper) |
|
float | clampFloat (const float value, const float lower, const float upper) |
|
std::vector< std::string > | split (const std::string &s, const char delimiter) |
|
std::string | getOperatingSystemProductType () |
|
int | getCursorX () |
|
int | getCursorY () |
|
void | setCursorPos (const int x, const int y) |
|
void | setTranslatorsForLocale (const std::string &locale) |
|
std::vector< std::string > | getSupportedLocaleCodes () |
|
void | setLocaleAndUserInterfaceLanguage (const std::string &locale) |
|
bool | exportGIF (const std::vector< geometrize::ShapeResult > &data, const std::uint32_t inputWidth, const std::uint32_t inputHeight, const std::uint32_t outputWidth, const std::uint32_t outputHeight, const std::size_t frameSkip, const std::string &filePath) |
|
bool | saveWidgetScreenshot (const std::string &path, QWidget *widget) |
|
std::string | customTabletEventDataToString (const geometrize::scene::TabletEventData &data) |
|
std::vector< std::string > | getAllNamedWidgets () |
|
std::vector< std::string > | getAllNamedGeometrizeWidgets () |
|
QWidget * | getWidgetByName (const std::string &widgetName) |
|
std::vector< std::string > | getAllNamedCommandHandlers () |
|
CommandHandler * | getCommandHandlerByName (const std::string &name) |
|
void | sendCommandString (const std::string &target, const std::string &command) |
|
void | sendCommandObject (const std::string &target, Command &command) |
|
void | broadcastCommandString (const std::string &command) |
|
void | broadcastCommandObject (Command &command) |
|
std::string | getFormattedTimestamp (const std::string &formatString) |
|
std::string | getFilenameTimestamp () |
|
std::string | getUuidString () |
|
void | setWidgetSize (QWidget *widget, int width, int height) |
|
void | setWidgetPosition (QWidget *widget, int x, int y) |
|
void | arrangeWidgetsInGrid (const std::vector< QWidget * > &widgets, int centerX, int centerY, int xDim, int yDim, int resizeX, int resizeY) |
|
void | arrangeImageTaskWidgetsInGrid (int centerX, int centerY, int xDim, int yDim, int resizeX, int resizeY) |
|
void | arrangeWidgetsInGridOnMonitor (const std::vector< QWidget * > &widgets, int monitorId, int resizeX, int resizeY) |
|
void | arrangeImageTaskWidgetsInGridOnMonitor (int monitorId, int resizeX, int resizeY) |
|
void | arrangeWidgetsInGridOnPrimaryMonitor (const std::vector< QWidget * > &widgets, int resizeX, int resizeY) |
|
void | arrangeImageTaskWidgetsInGridOnPrimaryMonitor (int resizeX, int resizeY) |
|
void | fitWidgetsInGridOnMonitor (const std::vector< QWidget * > &widgets, int screenIdx) |
|
void | fitImageTaskWidgetsInGridOnMonitor (int screenIdx) |
|
void | fitWidgetsInGridOnPrimaryMonitor (const std::vector< QWidget * > &widgets) |
|
void | fitImageTaskWidgetsInGridOnPrimaryMonitor () |
|
template<typename T , typename U , typename V > |
T | randomInRange (U lower, V upper) |
|
template<typename T > |
T | randomInVector (const std::vector< T > &v) |
|
template<typename T , typename U , typename V > |
T | clamp (T value, U lower, V upper) |
|
template<typename T > |
bool | vectorContains (const std::vector< T > &v, const T &t) |
|
◆ arrangeImageTaskWidgetsInGrid()
void geometrize::script::bindings::arrangeImageTaskWidgetsInGrid |
( |
int |
centerX, |
|
|
int |
centerY, |
|
|
int |
xDim, |
|
|
int |
yDim, |
|
|
int |
resizeX, |
|
|
int |
resizeY |
|
) |
| |
◆ arrangeImageTaskWidgetsInGridOnMonitor()
void geometrize::script::bindings::arrangeImageTaskWidgetsInGridOnMonitor |
( |
int |
monitorId, |
|
|
int |
resizeX, |
|
|
int |
resizeY |
|
) |
| |
◆ arrangeImageTaskWidgetsInGridOnPrimaryMonitor()
void geometrize::script::bindings::arrangeImageTaskWidgetsInGridOnPrimaryMonitor |
( |
int |
resizeX, |
|
|
int |
resizeY |
|
) |
| |
◆ arrangeWidgetsInGrid()
void geometrize::script::bindings::arrangeWidgetsInGrid |
( |
const std::vector< QWidget * > & |
widgets, |
|
|
int |
centerX, |
|
|
int |
centerY, |
|
|
int |
xDim, |
|
|
int |
yDim, |
|
|
int |
resizeX, |
|
|
int |
resizeY |
|
) |
| |
◆ arrangeWidgetsInGridOnMonitor()
void geometrize::script::bindings::arrangeWidgetsInGridOnMonitor |
( |
const std::vector< QWidget * > & |
widgets, |
|
|
int |
monitorId, |
|
|
int |
resizeX, |
|
|
int |
resizeY |
|
) |
| |
◆ arrangeWidgetsInGridOnPrimaryMonitor()
void geometrize::script::bindings::arrangeWidgetsInGridOnPrimaryMonitor |
( |
const std::vector< QWidget * > & |
widgets, |
|
|
int |
resizeX, |
|
|
int |
resizeY |
|
) |
| |
◆ broadcastCommandObject()
void geometrize::script::bindings::broadcastCommandObject |
( |
Command & |
command | ) |
|
◆ broadcastCommandString()
void geometrize::script::bindings::broadcastCommandString |
( |
const std::string & |
command | ) |
|
◆ clamp()
template<typename T , typename U , typename V >
T geometrize::script::bindings::clamp |
( |
T |
value, |
|
|
U |
lower, |
|
|
V |
upper |
|
) |
| |
166 assert(lower <= upper);
◆ clampFloat()
float geometrize::script::bindings::clampFloat |
( |
const float |
value, |
|
|
const float |
lower, |
|
|
const float |
upper |
|
) |
| |
282 return clamp<float, float, float>(value, lower, upper);
◆ clampInt()
int geometrize::script::bindings::clampInt |
( |
const int |
value, |
|
|
const int |
lower, |
|
|
const int |
upper |
|
) |
| |
277 return clamp<int, int, int>(value, lower, upper);
◆ clearGlobalClipboard()
void geometrize::script::bindings::clearGlobalClipboard |
( |
| ) |
|
◆ createAnimatedGifExportBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createAnimatedGifExportBindings |
( |
| ) |
|
createGifExportBindings Creates the ChaiScript to C++ bindings for saving animated GIFs.
- Returns
- A shared pointer to a module encapsulating the bindings.
419 auto module = createModule();
◆ createDefaultBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createDefaultBindings |
( |
| ) |
|
createDefaultBindings Creates the default Chaiscript to C++ bindings.
- Returns
- A shared pointer to a module encapsulating the bindings.
84 auto module = createModule();
173 ADD_MEMBER(CommandHandler, getCommandHandlerName);
174 ADD_MEMBER(CommandHandler, setCommandHandlerName);
◆ createDirectory()
bool geometrize::script::bindings::createDirectory |
( |
const std::string & |
dirPath | ) |
|
◆ createFunctionalTestHelperBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createFunctionalTestHelperBindings |
( |
| ) |
|
createFunctionalTestHelperBindings Creates ChaiScript to C++ bindings for helper functions needed for the functional/self-tests (e.g. reporting test results).
- Returns
- A shared pointer encapsulating the bindings.
662 auto module = createModule();
◆ createGeometrizeLibraryBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createGeometrizeLibraryBindings |
( |
| ) |
|
createGeometrizeLibraryBindings Creates the Chaiscript to C++ bindings for all of the functionality in the Geometrize library.
- Returns
- A shared pointer to a module enscapsulating the bindings.
428 auto module = createModule();
458 ADD_CONSTRUCTOR(ImageRunner, ImageRunner(
const geometrize::Bitmap&
COMMA const geometrize::Bitmap&));
493 ADD_CONSTRUCTOR(Polyline, Polyline(
const std::vector<std::pair<float, float>>));
496 chaiscript::bootstrap::standard_library::pair_type<std::pair<float, float>>(
"FloatPair", *module);
497 chaiscript::bootstrap::standard_library::vector_type<std::vector<std::pair<float, float>>>(
"IntPairVector", *module);
498 module->add(chaiscript::vector_conversion<std::vector<std::pair<float, float>>>());
547 chaiscript::utility::add_class<geometrize::ShapeTypes>(*module,
550 { RECTANGLE,
"RECTANGLE" },
551 { ROTATED_RECTANGLE,
"ROTATED_RECTANGLE" },
552 { TRIANGLE,
"TRIANGLE" },
553 { ELLIPSE,
"ELLIPSE" },
554 { ROTATED_ELLIPSE,
"ROTATED_ELLIPSE" },
555 { CIRCLE,
"CIRCLE" },
557 { QUADRATIC_BEZIER,
"QUADRATIC_BEZIER" },
558 { POLYLINE,
"POLYLINE" }
561 using namespace geometrize::core;
570 chaiscript::bootstrap::standard_library::vector_type<std::vector<Scanline>>(
"ScanlineVector", *module);
572 using namespace geometrize::commonutil;
◆ createImageBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createImageBindings |
( |
| ) |
|
createImageBindings Creates the Chaiscript to C++ bindings for image manipulation.
- Returns
- A shared pointer to a module encapsulating the bindings.
292 auto module = createModule();
303 chaiscript::utility::add_class<Qt::TransformationMode>(*module,
304 "TransformationMode",
306 { Qt::FastTransformation,
"QtFastTransformation" },
307 { Qt::SmoothTransformation,
"QtSmoothTransformation" }
◆ createImageExportBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createImageExportBindings |
( |
| ) |
|
createImageExportBindings Creates the Chaiscript to C++ bindings for saving images.
- Returns
- A shared pointer to a module encapsulating the bindings.
406 auto module = createModule();
◆ createImageTask()
47 return new task::ImageTask(bitmap);
◆ createImageTaskBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createImageTaskBindings |
( |
| ) |
|
createImageTaskBindings Creates the Chaiscript to C++ bindings for Geometrize image tasks.
- Returns
- A shared pointer to a module encapsulating the bindings.
348 auto module = createModule();
385 module->add(chaiscript::fun(
387 (&ImageTaskPreferences::setShapeBounds)),
"setShapeBounds");
◆ createImageTaskWindow()
37 return new dialog::ImageTaskWindow();
◆ createImageTaskWindowBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createImageTaskWindowBindings |
( |
| ) |
|
createImageTaskWindowBindings Creates the Chaiscript to C++ binding for the Geometrize image task window.
- Returns
- A shared pointer to a module encapsulating the bindings.
256 auto module = createModule();
274 chaiscript::bootstrap::standard_library::vector_type<std::vector<ImageTaskWindow*>>(
"ImageTaskWindowVector", *module);
282 module->add(chaiscript::fun(
static_cast<void(
ImageTaskWindow::*)(
int,
int)
>(&ImageTaskWindow::resize)),
"resize");
283 module->add(chaiscript::fun(
static_cast<void(
ImageTaskWindow::*)(
int,
int)
>(&ImageTaskWindow::move)),
"move");
◆ createLaunchWindow()
42 return new dialog::LaunchWindow();
◆ createLaunchWindowBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createLaunchWindowBindings |
( |
| ) |
|
createLaunchWindowBindings Creates the Chaiscript to C++ bindings for the Geometrize launch window.
- Returns
- A shared pointer to a module encapsulating the bindings.
225 auto module = createModule();
238 chaiscript::bootstrap::standard_library::vector_type<std::vector<LaunchWindow*>>(
"LaunchWindowVector", *module);
245 module->add(chaiscript::fun(
static_cast<void(
LaunchWindow::*)(
int,
int)
>(&LaunchWindow::resize)),
"resize");
246 module->add(chaiscript::fun(
static_cast<void(
LaunchWindow::*)(
int,
int)
>(&LaunchWindow::move)),
"move");
◆ createMathBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createMathBindings |
( |
| ) |
|
createMathBindings Creates the Chaiscript to C++ bindings for common math functions.
- Returns
- A shared pointer to a module encapsulating the bindings.
◆ createQWidgetBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createQWidgetBindings |
( |
| ) |
|
createQWidgetBindings Creates the Chaiscript to C++ bindings for the Qt QWidget class.
- Returns
- A shared pointer to a module encapsulating the bindings.
195 auto module = createModule();
214 module->add(chaiscript::fun(
static_cast<void(QWidget::*)(
int,
int)
>(&QWidget::resize)),
"resize");
215 module->add(chaiscript::fun(
static_cast<void(QWidget::*)(
int,
int)
>(&QWidget::move)),
"move");
◆ createSynchronousImageTaskBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createSynchronousImageTaskBindings |
( |
| ) |
|
createSynchronousImageTaskBindings Creates the Chaiscript to C++ bindings for synchronous Geometrize image tasks (used by the Twitter bot).
- Returns
- A shared pointer to a module encapsulating the bindings.
325 auto module = createModule();
◆ createTabletEventBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createTabletEventBindings |
( |
| ) |
|
createTabletEventBindings Creates the Chaiscript to C++ bindings for tablet events (e.g. Wacom pen input data).
- Returns
- A shared pointer to a module encapsulating the bindings.
604 auto module = createModule();
606 chaiscript::utility::add_class<TabletEventType>(*module,
609 { TabletEventType::Move,
"Move" },
610 { TabletEventType::Press,
"Press" },
611 { TabletEventType::Release,
"Release" },
612 { TabletEventType::EnterProximity,
"EnterProximity" },
613 { TabletEventType::LeaveProximity,
"LeaveProximity" },
617 chaiscript::utility::add_class<TabletEventPointerType>(*module,
618 "TabletEventPointerType",
620 { TabletEventPointerType::UnknownPointer,
"UnknownPointer" },
621 { TabletEventPointerType::Pen,
"Pen" },
622 { TabletEventPointerType::Cursor,
"Cursor" },
◆ createUserInterfacePuppeteerBindings()
std::shared_ptr< chaiscript::Module > geometrize::script::bindings::createUserInterfacePuppeteerBindings |
( |
| ) |
|
createUserInterfacePuppeteerBindings Creates ChaiScript to C++ bindings for driving the user interface (primarily for testing purposes).
- Returns
- A shared pointer encapsulating the bindings.
651 auto module = createModule();
◆ customTabletEventDataToString()
◆ debugBreak()
void geometrize::script::bindings::debugBreak |
( |
| ) |
|
◆ directoriesExist()
bool geometrize::script::bindings::directoriesExist |
( |
const std::vector< std::string > & |
dirPaths | ) |
|
◆ directoryContainsFile()
bool geometrize::script::bindings::directoryContainsFile |
( |
const std::string & |
dirPath, |
|
|
const std::string & |
fileName |
|
) |
| |
◆ directoryExists()
bool geometrize::script::bindings::directoryExists |
( |
const std::string & |
dirPath | ) |
|
◆ exportGIF()
bool geometrize::script::bindings::exportGIF |
( |
const std::vector< geometrize::ShapeResult > & |
data, |
|
|
const std::uint32_t |
inputWidth, |
|
|
const std::uint32_t |
inputHeight, |
|
|
const std::uint32_t |
outputWidth, |
|
|
const std::uint32_t |
outputHeight, |
|
|
const std::size_t |
frameSkip, |
|
|
const std::string & |
filePath |
|
) |
| |
339 return frameSkip == 0U ? false : (frameIndex % frameSkip == 0);
◆ fileExists()
bool geometrize::script::bindings::fileExists |
( |
const std::string & |
filePath | ) |
|
◆ fitImageTaskWidgetsInGridOnMonitor()
void geometrize::script::bindings::fitImageTaskWidgetsInGridOnMonitor |
( |
int |
screenIdx | ) |
|
◆ fitImageTaskWidgetsInGridOnPrimaryMonitor()
void geometrize::script::bindings::fitImageTaskWidgetsInGridOnPrimaryMonitor |
( |
| ) |
|
◆ fitWidgetsInGridOnMonitor()
void geometrize::script::bindings::fitWidgetsInGridOnMonitor |
( |
const std::vector< QWidget * > & |
widgets, |
|
|
int |
screenIdx |
|
) |
| |
◆ fitWidgetsInGridOnPrimaryMonitor()
void geometrize::script::bindings::fitWidgetsInGridOnPrimaryMonitor |
( |
const std::vector< QWidget * > & |
widgets | ) |
|
◆ getAllNamedCommandHandlers()
std::vector< std::string > geometrize::script::bindings::getAllNamedCommandHandlers |
( |
| ) |
|
◆ getAllNamedGeometrizeWidgets()
std::vector< std::string > geometrize::script::bindings::getAllNamedGeometrizeWidgets |
( |
| ) |
|
◆ getAllNamedWidgets()
std::vector< std::string > geometrize::script::bindings::getAllNamedWidgets |
( |
| ) |
|
◆ getAppDataLocation()
std::string geometrize::script::bindings::getAppDataLocation |
( |
| ) |
|
◆ getApplicationDirectoryLocation()
std::string geometrize::script::bindings::getApplicationDirectoryLocation |
( |
| ) |
|
◆ getApplicationDirectoryPath()
std::string geometrize::script::bindings::getApplicationDirectoryPath |
( |
| ) |
|
◆ getCommandHandlerByName()
CommandHandler * geometrize::script::bindings::getCommandHandlerByName |
( |
const std::string & |
name | ) |
|
◆ getCursorX()
int geometrize::script::bindings::getCursorX |
( |
| ) |
|
◆ getCursorY()
int geometrize::script::bindings::getCursorY |
( |
| ) |
|
◆ getDesktopDirectoryLocation()
std::string geometrize::script::bindings::getDesktopDirectoryLocation |
( |
| ) |
|
◆ getDirectoryForFilePath()
std::string geometrize::script::bindings::getDirectoryForFilePath |
( |
const std::string & |
filePath | ) |
|
◆ getFileNameForFilePath()
std::string geometrize::script::bindings::getFileNameForFilePath |
( |
const std::string & |
filePath | ) |
|
◆ getFilenameTimestamp()
std::string geometrize::script::bindings::getFilenameTimestamp |
( |
| ) |
|
◆ getFilePathsForDirectory()
std::vector< std::string > geometrize::script::bindings::getFilePathsForDirectory |
( |
const std::string & |
dirPath | ) |
|
◆ getFilesWithExtension()
std::vector< std::string > geometrize::script::bindings::getFilesWithExtension |
( |
const std::string & |
dirPath, |
|
|
const std::string & |
extension |
|
) |
| |
◆ getFilesWithExtensions()
std::vector< std::string > geometrize::script::bindings::getFilesWithExtensions |
( |
const std::string & |
, |
|
|
const std::vector< std::string > & |
|
|
) |
| |
147 std::vector<std::string> files;
◆ getFirstFileWithExtension()
std::string geometrize::script::bindings::getFirstFileWithExtension |
( |
const std::string & |
dirPath, |
|
|
const std::string & |
extension |
|
) |
| |
◆ getFirstFileWithExtensions()
std::string geometrize::script::bindings::getFirstFileWithExtensions |
( |
const std::string & |
dirPath, |
|
|
const std::vector< std::string > & |
extensions |
|
) |
| |
◆ getFormattedTimestamp()
std::string geometrize::script::bindings::getFormattedTimestamp |
( |
const std::string & |
formatString | ) |
|
◆ getGlobalClipboardText()
std::string geometrize::script::bindings::getGlobalClipboardText |
( |
| ) |
|
◆ getHomeDirectoryLocation()
std::string geometrize::script::bindings::getHomeDirectoryLocation |
( |
| ) |
|
◆ getImageTaskWindows()
◆ getLaunchWindows()
◆ getOperatingSystemProductType()
std::string geometrize::script::bindings::getOperatingSystemProductType |
( |
| ) |
|
◆ getScriptSearchPaths()
std::vector< std::string > geometrize::script::bindings::getScriptSearchPaths |
( |
| ) |
|
◆ getScriptsForPath()
std::vector< std::string > geometrize::script::bindings::getScriptsForPath |
( |
const std::string & |
dirPath | ) |
|
◆ getScriptsForPaths()
std::vector< std::string > geometrize::script::bindings::getScriptsForPaths |
( |
const std::vector< std::string > & |
dirPaths | ) |
|
◆ getSupportedImageFileExtensions()
std::vector< std::string > geometrize::script::bindings::getSupportedImageFileExtensions |
( |
| ) |
|
◆ getSupportedLocaleCodes()
std::vector< std::string > geometrize::script::bindings::getSupportedLocaleCodes |
( |
| ) |
|
318 std::vector<std::string> v;
319 for(
const QString& s : codes) {
320 v.emplace_back(s.toStdString());
◆ getTemplateSearchPaths()
std::vector< std::string > geometrize::script::bindings::getTemplateSearchPaths |
( |
| ) |
|
◆ getUuidString()
std::string geometrize::script::bindings::getUuidString |
( |
| ) |
|
◆ getWidgetByName()
QWidget * geometrize::script::bindings::getWidgetByName |
( |
const std::string & |
widgetName | ) |
|
◆ messageBox()
void geometrize::script::bindings::messageBox |
( |
const std::string & |
str | ) |
|
◆ openInDefaultApplication()
bool geometrize::script::bindings::openInDefaultApplication |
( |
const std::string & |
path | ) |
|
◆ openTask()
void geometrize::script::bindings::openTask |
( |
const std::string & |
url, |
|
|
const bool |
addToRecents |
|
) |
| |
191 QString qUrl{QString::fromStdString(url)};
192 const QString strToReplace{
":/"};
193 if(qUrl.startsWith(strToReplace)) {
194 qUrl.replace(0, strToReplace.size(),
"qrc:///");
◆ percentEncode()
std::string geometrize::script::bindings::percentEncode |
( |
const std::string & |
str | ) |
|
◆ printToAllScriptConsoleWidgets()
void geometrize::script::bindings::printToAllScriptConsoleWidgets |
( |
const std::string & |
str | ) |
|
◆ printToConsole()
void geometrize::script::bindings::printToConsole |
( |
const std::string & |
str | ) |
|
◆ processApplicationEvents()
void geometrize::script::bindings::processApplicationEvents |
( |
| ) |
|
◆ randomFloatInRange()
float geometrize::script::bindings::randomFloatInRange |
( |
const float |
lower, |
|
|
const float |
upper |
|
) |
| |
272 return randomInRange<float, float, float>(lower, upper);
◆ randomInRange()
template<typename T , typename U , typename V >
T geometrize::script::bindings::randomInRange |
( |
U |
lower, |
|
|
V |
upper |
|
) |
| |
◆ randomIntInRange()
int geometrize::script::bindings::randomIntInRange |
( |
const int |
lower, |
|
|
const int |
upper |
|
) |
| |
267 return randomInRange<int, int, int>(lower, upper);
◆ randomInVector()
template<typename T >
T geometrize::script::bindings::randomInVector |
( |
const std::vector< T > & |
v | ) |
|
160 return v[randomInRange<int, std::size_t, std::size_t>(0, v.size() - 1)];
◆ readFileAsString()
std::string geometrize::script::bindings::readFileAsString |
( |
const std::string & |
filePath | ) |
|
◆ revealInDefaultApplication()
bool geometrize::script::bindings::revealInDefaultApplication |
( |
const std::string & |
path | ) |
|
◆ saveWidgetScreenshot()
bool geometrize::script::bindings::saveWidgetScreenshot |
( |
const std::string & |
path, |
|
|
QWidget * |
widget |
|
) |
| |
◆ sendCommandObject()
void geometrize::script::bindings::sendCommandObject |
( |
const std::string & |
target, |
|
|
Command & |
command |
|
) |
| |
◆ sendCommandString()
void geometrize::script::bindings::sendCommandString |
( |
const std::string & |
target, |
|
|
const std::string & |
command |
|
) |
| |
◆ setCursorPos()
void geometrize::script::bindings::setCursorPos |
( |
const int |
x, |
|
|
const int |
y |
|
) |
| |
◆ setGlobalClipboardText()
void geometrize::script::bindings::setGlobalClipboardText |
( |
const std::string & |
text | ) |
|
◆ setLocaleAndUserInterfaceLanguage()
void geometrize::script::bindings::setLocaleAndUserInterfaceLanguage |
( |
const std::string & |
locale | ) |
|
◆ setTranslatorsForLocale()
void geometrize::script::bindings::setTranslatorsForLocale |
( |
const std::string & |
locale | ) |
|
◆ setWidgetPosition()
void geometrize::script::bindings::setWidgetPosition |
( |
QWidget * |
widget, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
◆ setWidgetSize()
void geometrize::script::bindings::setWidgetSize |
( |
QWidget * |
widget, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
◆ split()
std::vector< std::string > geometrize::script::bindings::split |
( |
const std::string & |
s, |
|
|
const char |
delimiter |
|
) |
| |
◆ stringBeginsWith()
bool geometrize::script::bindings::stringBeginsWith |
( |
const std::string & |
str, |
|
|
const std::string & |
prefix |
|
) |
| |
◆ stringEndsWith()
bool geometrize::script::bindings::stringEndsWith |
( |
const std::string & |
str, |
|
|
const std::string & |
suffix |
|
) |
| |
◆ vectorContains()
template<typename T >
bool geometrize::script::bindings::vectorContains |
( |
const std::vector< T > & |
v, |
|
|
const T & |
t |
|
) |
| |
183 return (std::find(v.begin(), v.end(), t) != v.end());
◆ writeStringToFile()
bool geometrize::script::bindings::writeStringToFile |
( |
const std::string & |
str, |
|
|
const std::string & |
path |
|
) |
| |
#define ADD_TYPE(Class)
Definition: bindingshelpers.h:12
void arrangeImageTaskWidgetsInGrid(int centerX, int centerY, int xDim, int yDim, int resizeX, int resizeY)
arrangeImageTaskWidgetsInGrid Arranges all the open image task widgets into a grid shape
Definition: util.cpp:540
Definition: imageloader.cpp:20
void printToConsole(const std::string &str)
printToConsole A convenience function for printing a string to the command-line console.
Definition: util.cpp:87
std::string getFileNameForFilePath(const std::string &filePath)
getFileNameForFilePath Gets the filename from the given local file path.
Definition: util.cpp:273
void fitWidgetsInGridOnPrimaryMonitor(const std::vector< QWidget * > &widgets)
fitWidgetsInGridOnPrimaryMonitor Fits the given widgets into a grid on the primary monitor
Definition: util.cpp:592
void debugBreak()
debugBreak Forces the debugger to break/halt the application when this is called.
Definition: util.cpp:75
std::string getHomeDirectoryLocation()
getHomeDirectoryLocation Returns a path to where the user's home directory is.
Definition: util.cpp:324
std::vector< std::string > getFilesWithExtensions(const std::string &, const std::vector< std::string > &)
Definition: bindingswrapper.cpp:145
The LaunchWindow class models the UI for a launchpad for opening new task templates and recent tasks.
Definition: launchwindow.h:22
int getCursorY()
getCursorY Gets the y-coordinate of the cursor in global screen coordinates.
Definition: util.cpp:379
std::string getFirstFileWithExtensions(const std::string &dirPath, const std::vector< std::string > &extensions)
getFirstFileWithExtensions Gets the absolute file path to the first file with one of the given extens...
Definition: util.cpp:224
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
The TabletEventData class represents data produced from a Wacom pen/tablet event (in the context of a...
Definition: customtabletevent.h:56
void sleep(const std::size_t ms)
sleep Causes the calling thread to sleep for the given length of time.
Definition: scriptutil.cpp:43
static std::vector< LaunchWindow * > getTopLevelLaunchWindows()
getTopLevelLaunchWindows Gets all of the existing top level launch windows.
Definition: launchwindow.cpp:296
std::vector< std::string > getTemplateSearchPaths()
getTemplateSearchpaths Gets the directory paths that the program will search for project file templat...
Definition: searchpaths.cpp:26
QImage convertImageToRgba8888(const QImage &image)
convertImageToRgba8888 Returns a copy of the image in the RGBA8888 format.
Definition: imageloader.cpp:82
#define ADD_MEMBER(Class, Name)
Definition: bindingshelpers.h:10
bool directoryContainsFile(const std::string &dirPath, const std::string &fileName)
directoryContainsFile Checks if the directory contains the given file, returns true if it does.
Definition: util.cpp:135
std::vector< std::string > getScriptSearchPaths()
getScriptSearchPaths Gets the directory paths that the program will search for scripts....
Definition: searchpaths.cpp:21
Definition: globalpreferences.cpp:21
std::vector< std::string > getScriptsForPath(const std::string &dirPath)
getScriptsForPath Gets the absolute file paths to the script files (*.chai) for the given directory,...
Definition: util.cpp:236
std::vector< std::string > getScriptsForPaths(const std::vector< std::string > &dirPaths)
getScriptsForPaths Gets the absolute file paths to the script files (*.chai) for the given directorie...
Definition: util.cpp:252
bool exportGIF(const std::vector< geometrize::ShapeResult > &data, std::uint32_t inputWidth, std::uint32_t inputHeight, std::uint32_t outputWidth, std::uint32_t outputHeight, const std::function< bool(std::size_t)> &frameSkipPredicate, const std::string &filePath)
exportGIF Exports shape data to a GIF image.
Definition: gifexporter.cpp:80
void sendCommandString(const std::string &target, const std::string &command)
Definition: bindingswrapper.cpp:378
QWidget * getWidgetByName(const std::string &widgetName)
getWidgetByName Returns the first found instance of the existing widget with the given name
Definition: util.cpp:423
void broadcastCommandObject(Command &command)
Definition: bindingswrapper.cpp:393
static std::vector< ImageTaskWindow * > getExistingImageTaskWindows()
getExistingImageTaskWindows Gets all of the existing image task windows.
Definition: imagetaskwindow.cpp:881
void clearGlobalClipboard()
clearGlobalClipboard Clears the global system clipboard contents.
Definition: util.cpp:289
std::string getFormattedTimestamp(const std::string &formatString)
getFormattedTimestamp Gets a formatted timestamp for the current local time
Definition: util.cpp:496
std::vector< std::string > getAllNamedWidgets()
getAllWidgetNames Returns a vector containing the names of all the existing widgets in the applicatio...
Definition: util.cpp:399
void fitWidgetsInGridOnMonitor(const std::vector< QWidget * > &widgets, int screenIdx)
fitWidgetsInGridOnMonitor Fits the given widgets into a grid on the given monitor
Definition: util.cpp:572
void arrangeImageTaskWidgetsInGridOnPrimaryMonitor(int resizeX, int resizeY)
arrangeImageTaskWidgetsInGridOnPrimaryMonitor Arranges all the open image task widgets into a grid on...
Definition: util.cpp:567
std::string readFileAsString(const std::string &filePath)
readFileAsString Reads a file, returning a string containing the contents.
Definition: util.cpp:155
bool revealInDefaultApplication(const std::string &path)
revealInDefaultApplication Reveals the given path in the parent folder (or path with the filename tri...
Definition: util.cpp:283
Definition: uiactions.cpp:28
void processApplicationEvents()
processApplicationEvents Processes all pending application events for the calling thread.
Definition: util.cpp:110
std::string getGlobalClipboardText()
getGlobalClipboardText Gets the global system clipboard text.
Definition: util.cpp:294
#define ADD_FREE_FUN_TEMPLATE(Name, Params)
Definition: bindingshelpers.h:9
std::string getFilenameTimestamp()
getFilenameTimestamp Gets a filename timestamp string for the current local time
Definition: util.cpp:501
std::string getDirectoryForFilePath(const std::string &filePath)
getDirectoryForFilePath Gets the directory path from the given local file path.
Definition: util.cpp:262
std::vector< geometrize::dialog::ImageTaskWindow * > getImageTaskWindows()
Definition: bindingswrapper.cpp:55
bool exportGIF(const std::vector< geometrize::ShapeResult > &data, const std::uint32_t inputWidth, const std::uint32_t inputHeight, const std::uint32_t outputWidth, const std::uint32_t outputHeight, const std::size_t frameSkip, const std::string &filePath)
Definition: bindingswrapper.cpp:330
geometrize::task::ImageTask * createImageTask(geometrize::Bitmap &bitmap)
Definition: bindingswrapper.cpp:45
bool directoriesExist(const std::vector< std::string > &dirPaths)
directoriesExist Checks if the given directories exist, returns true if all do.
Definition: util.cpp:130
std::vector< std::string > getFilesWithExtension(const std::string &dirPath, const std::string &extension)
getFilesWithExtension Gets the absolute file paths to the files with the given extension in the given...
Definition: util.cpp:203
void printToAllScriptConsoleWidgets(const std::string &str)
printToAllScriptConsoleWidgets A convenience function for printing a string to all the GUI console wi...
Definition: util.cpp:92
The ImageTaskPreferences class models the preferences associated with an image task.
Definition: imagetaskpreferences.h:29
void setCursorPos(const int x, const int y)
setCursorPos Sets the cursor position in global screen coordinates.
Definition: util.cpp:384
std::string getApplicationDirectoryLocation()
getApplicationDirectory Get directory that the application is in.
Definition: util.cpp:314
Definition: gifexporter.cpp:78
std::string getOperatingSystemProductType()
getOperatingSystemProductType Returns the product name of the operating system this application is ru...
Definition: util.cpp:389
Definition: bindingscreator.cpp:80
std::vector< std::string > getSupportedImageFileExtensions()
Definition: bindingswrapper.cpp:161
int getCursorX()
getCursorX Gets the x-coordinate of the cursor in global screen coordinates.
Definition: util.cpp:374
#define COMMA
Definition: bindingshelpers.h:5
bool writeStringToFile(const std::string &str, const std::string &path)
writeStringToFile Writes the string to the file path, attempting to overwrite any existing file at th...
Definition: util.cpp:334
std::vector< std::string > getAllNamedGeometrizeWidgets()
getAllWidgetNames Returns a vector containing the names of all the widgets in the application with "g...
Definition: util.cpp:411
geometrize::dialog::ImageTaskWindow * createImageTaskWindow()
Definition: bindingswrapper.cpp:35
Bitmap createBitmap(const QImage &image)
createBitmap Creates a bitmap data object from the given image.
Definition: imageloader.cpp:22
void arrangeImageTaskWidgetsInGridOnMonitor(int screenIdx, int resizeX, int resizeY)
arrangeImageTaskWidgetsInGridOnMonitor Arranges all the open image task widgets into a grid on the gi...
Definition: util.cpp:557
int randomIntInRange(const int lower, const int upper)
Definition: bindingswrapper.cpp:265
void sendCommand(const std::string &target, const std::string &command)
sendCommand Sends a command to the given command handler
Definition: util.cpp:456
QString tabletEventDataToString(const TabletEventData &data)
tabletEventDataToString Helper function to convert a structure of tablet event data to a string
Definition: customtabletevent.cpp:44
Definition: imagetaskexportwidget.h:19
bool createDirectory(const std::string &dirPath)
createDirectory Creates the directory at the given path, recursively creating subdirectories if neede...
Definition: util.cpp:150
std::string getDesktopDirectoryLocation()
getDesktopDirectoryLocation Returns a path to where the user's desktop is.
Definition: util.cpp:329
std::vector< geometrize::dialog::LaunchWindow * > getLaunchWindows()
Definition: bindingswrapper.cpp:50
std::string getFirstFileWithExtension(const std::string &dirPath, const std::string &extension)
getFirstFileWithExtension Gets the absolute file path to the first file with the given extension in t...
Definition: util.cpp:214
void setTranslatorsForLocale(const QString &locale)
installTranslatorsForLocale Installs translators for the application.
Definition: localization.cpp:76
bool saveWidgetScreenshot(const std::string &path, QWidget *widget)
saveWidgetScreenshot Takes a screenshot of the given widget and saves it as a .png image to the given...
Definition: util.cpp:394
void messageBox(const std::string &str)
messageBox A convenience function for displaying a message box containing a message.
Definition: util.cpp:103
int randomInRange(const int lower, const int upper)
randomInRange Returns a random integer in the range [lower, upper], inclusive. Note that this uses th...
Definition: util.cpp:361
void arrangeWidgetsInGrid(const std::vector< QWidget * > &widgets, int centerX, int centerY, int xDim, int yDim, int resizeX, int resizeY)
arrangeWidgetsInGrid Arranges the given widgets into a grid shape
Definition: util.cpp:521
geometrize::dialog::LaunchWindow * createLaunchWindow()
Definition: bindingswrapper.cpp:40
std::vector< std::string > getFilePathsForDirectory(const std::string &dirPath)
getFilePathsForDirectory Gets the absolute file paths to the files in the given directory.
Definition: util.cpp:166
std::string percentEncode(const std::string &str)
percentEncode Returns a percent-encoded copy of the input string.
Definition: util.cpp:354
void setWidgetPosition(QWidget *widget, int x, int y)
setWidgetPosition Sets the widget to the given position.
Definition: util.cpp:516
bool stringBeginsWith(const std::string &str, const std::string &prefix)
stringBeginsWith Checks if a string begins with the given prefix.
Definition: util.cpp:304
float randomFloatInRange(const float lower, const float upper)
Definition: bindingswrapper.cpp:270
void setGlobalClipboardText(const std::string &text)
setClipboardText Sets the global system clipboard text.
Definition: util.cpp:299
bool directoryExists(const std::string &dirPath)
directoryExists Checks if a directory exists, returns true if it does.
Definition: util.cpp:125
QStringList getSupportedLocaleCodes()
getSupportedLocaleCodes Iterates over the embedded .qm files and extracts the ISO language codes from...
Definition: localization.cpp:212
void broadcastCommand(const std::string &command)
broadcastCommand Sends a command to all command handlers
Definition: util.cpp:480
std::string customTabletEventDataToString(const geometrize::scene::TabletEventData &data)
Definition: bindingswrapper.cpp:348
Definition: aboutdialog.cpp:14
geometrize::script::CommandHandler * getCommandHandlerByName(const std::string &name)
getCommandHandlerByName Returns the first found instance of the existing command handler with the giv...
Definition: util.cpp:444
#define ADD_BASE_CLASS(Base, Derived)
Definition: bindingshelpers.h:13
bool exportImage(const QImage &image, const std::string &filePath)
exportImage Exports the image data to an image format that Qt supports (depending on the file extensi...
Definition: imageexporter.cpp:30
void arrangeWidgetsInGridOnMonitor(const std::vector< QWidget * > &widgets, int screenIdx, int resizeX, int resizeY)
arrangeWidgetsInGridOnMonitor Arranges the given widgets into a grid on the given monitor
Definition: util.cpp:545
void broadcastCommandString(const std::string &command)
Definition: bindingswrapper.cpp:388
The ImageTask class transforms a source image into a collection of shapes approximating the source im...
Definition: imagetask.h:53
T clamp(T value, T lower, T upper)
clamp Clamps a value within a range.
Definition: util.h:266
std::string getUuidString()
getUuidString Gets a Universally Unique Identifier (UUID) as a string
Definition: util.cpp:506
int clampInt(const int value, const int lower, const int upper)
Definition: bindingswrapper.cpp:275
void openTask(const std::string &url, const bool addToRecents)
Definition: bindingswrapper.cpp:186
void setLocaleAndUserInterfaceLanguage(const QString &isoCode)
setLocaleAndUserInterfaceLanguage Sets the application locale and user interface language to the give...
Definition: localization.cpp:226
bool exportRasterizedSvg(const std::vector< geometrize::ShapeResult > &shapes, const std::uint32_t inputWidth, const std::uint32_t inputHeight, const std::uint32_t outputWidth, const std::uint32_t outputHeight, const std::string &filePath)
exportRasterizedSvg Exports the shape data as an image by rasterizing an SVG rendered from the shape ...
Definition: imageexporter.cpp:74
bool openInDefaultApplication(const std::string &path)
openInDefaultApplication Opens the given path in the default application.
Definition: util.cpp:278
bool fileExists(const std::string &filePath)
fileExists Checks if a file exists, returns true if it does.
Definition: util.cpp:120
std::string getAppDataLocation()
getAppDataLocation Returns a directory location where persistent application data can be stored.
Definition: util.cpp:319
void sendCommandObject(const std::string &target, Command &command)
Definition: bindingswrapper.cpp:383
#define ADD_FREE_FUN(Name)
Definition: bindingshelpers.h:8
std::vector< std::string > getAllNamedCommandHandlers()
getAllNamedCommandHandlers Gets all of the existing objects in the application that implement the Com...
Definition: util.cpp:434
void arrangeWidgetsInGridOnPrimaryMonitor(const std::vector< QWidget * > &widgets, int resizeX, int resizeY)
arrangeWidgetsInGridOnPrimaryMonitor Arranges the given widgets into a grid on the primary monitor
Definition: util.cpp:562
geometrize::Bitmap convertImageToBitmapWithDownscaling(const QImage &image)
imageToBitmapWithDownscaling Creates a bitmap data object from the given image, downscaling in the pr...
Definition: imageloader.cpp:32
bool exportBitmap(const geometrize::Bitmap &bitmap, const std::string &filePath)
exportBitmap Exports the Geometrize bitmap data to an image format that Qt supports (depending on the...
Definition: imageexporter.cpp:24
void fitImageTaskWidgetsInGridOnPrimaryMonitor()
fitImageTaskWidgetsInGridOnPrimaryMonitor Fits all of the open image task widgets into a grid on the ...
Definition: util.cpp:597
#define ADD_CONSTRUCTOR(Class, Signature)
Definition: bindingshelpers.h:14
void setWidgetSize(QWidget *widget, int width, int height)
setWidgetSize Sets the size of the given widget in pixels.
Definition: util.cpp:511
bool vectorContains(const std::vector< T > &v, const T &t)
Definition: bindingswrapper.h:181
float clampFloat(const float value, const float lower, const float upper)
Definition: bindingswrapper.cpp:280
The ImageTaskWindow class encapsulates the UI for manipiulating, running and viewing an image task th...
Definition: imagetaskwindow.h:31
void openTasks(const QStringList &urls, const bool addToRecents)
Definition: taskutil.cpp:58
Definition: areaofinfluenceshapeitem.cpp:10
std::vector< std::string > split(const std::string &s, const char delimiter)
split Splits a given string into a vector of tokens using the given delimiter.
Definition: util.cpp:367
void fitImageTaskWidgetsInGridOnMonitor(int screenIdx)
fitImageTaskWidgetsInGridOnMonitor Fits all of the open image task widgets into a grid on the given m...
Definition: util.cpp:587
T randomInVector(const std::vector< T > &v)
Definition: bindingswrapper.h:157
bool stringEndsWith(const std::string &str, const std::string &suffix)
stringEndsWith Checks if a string ends with the given suffix.
Definition: util.cpp:309
std::string getApplicationDirectoryPath()
getApplicationDirectoryPath Gets the directory that contains the application executable.
Definition: searchpaths.cpp:16
The SynchronousImageTask class transforms a source image into a collection of shapes approximating th...
Definition: synchronousimagetask.h:28