Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Namespaces | Functions
bindingswrapper.h File Reference
#include <string>
#include <vector>
#include <QImage>
#include "geometrize/shaperesult.h"
#include "common/util.h"

Go to the source code of this file.

Namespaces

 geometrize
 < Energy function passed to the image task worker thread.
 
 geometrize::dialog
 
 geometrize::scene
 
 geometrize::task
 
 geometrize::script
 
 geometrize::script::bindings
 

Functions

geometrize::dialog::ImageTaskWindowgeometrize::script::bindings::createImageTaskWindow ()
 
geometrize::dialog::LaunchWindowgeometrize::script::bindings::createLaunchWindow ()
 
geometrize::task::ImageTaskgeometrize::script::bindings::createImageTask (geometrize::Bitmap &bitmap)
 
std::string geometrize::script::bindings::getApplicationDirectoryPath ()
 
void geometrize::script::bindings::printToConsole (const std::string &str)
 
void geometrize::script::bindings::messageBox (const std::string &str)
 
void geometrize::script::bindings::printToAllScriptConsoleWidgets (const std::string &str)
 
void geometrize::script::bindings::debugBreak ()
 
void geometrize::script::bindings::processApplicationEvents ()
 
bool geometrize::script::bindings::fileExists (const std::string &filePath)
 
bool geometrize::script::bindings::directoryExists (const std::string &dirPath)
 
bool geometrize::script::bindings::directoryContainsFile (const std::string &dirPath, const std::string &fileName)
 
std::string geometrize::script::bindings::readFileAsString (const std::string &filePath)
 
std::vector< std::string > geometrize::script::bindings::getFilePathsForDirectory (const std::string &dirPath)
 
std::vector< std::string > geometrize::script::bindings::getScriptSearchPaths ()
 
std::vector< std::string > geometrize::script::bindings::getTemplateSearchPaths ()
 
std::string geometrize::script::bindings::getFirstFileWithExtension (const std::string &dirPath, const std::string &extension)
 
std::string geometrize::script::bindings::getFirstFileWithExtensions (const std::string &dirPath, const std::vector< std::string > &extensions)
 
std::vector< std::string > geometrize::script::bindings::getFilesWithExtension (const std::string &dirPath, const std::string &extension)
 
std::vector< std::string > geometrize::script::bindings::getFilesWithExtensions (const std::string &, const std::vector< std::string > &)
 
std::vector< std::string > geometrize::script::bindings::getSupportedImageFileExtensions ()
 
std::vector< std::string > geometrize::script::bindings::getScriptsForPath (const std::string &dirPath)
 
void geometrize::script::bindings::openTask (const std::string &url, const bool addToRecents)
 
bool geometrize::script::bindings::openInDefaultApplication (const std::string &path)
 
bool geometrize::script::bindings::revealInDefaultApplication (const std::string &path)
 
void geometrize::script::bindings::clearGlobalClipboard ()
 
std::string geometrize::script::bindings::getGlobalClipboardText ()
 
void geometrize::script::bindings::setGlobalClipboardText (const std::string &text)
 
bool geometrize::script::bindings::stringBeginsWith (const std::string &str, const std::string &prefix)
 
bool geometrize::script::bindings::stringEndsWith (const std::string &str, const std::string &suffix)
 
std::string geometrize::script::bindings::getApplicationDirectoryLocation ()
 
std::string geometrize::script::bindings::getAppDataLocation ()
 
std::string geometrize::script::bindings::getHomeDirectoryLocation ()
 
bool geometrize::script::bindings::writeStringToFile (const std::string &str, const std::string &path)
 
std::string geometrize::script::bindings::percentEncode (const std::string &str)
 
template<typename T , typename U , typename V >
geometrize::script::bindings::randomInRange (U lower, V upper)
 
int geometrize::script::bindings::randomIntInRange (const int lower, const int upper)
 
float geometrize::script::bindings::randomFloatInRange (const float lower, const float upper)
 
template<typename T >
geometrize::script::bindings::randomInVector (const std::vector< T > &v)
 
template<typename T , typename U , typename V >
geometrize::script::bindings::clamp (T value, U lower, V upper)
 
int geometrize::script::bindings::clampInt (const int value, const int lower, const int upper)
 
float geometrize::script::bindings::clampFloat (const float value, const float lower, const float upper)
 
template<typename T >
bool geometrize::script::bindings::vectorContains (const std::vector< T > &v, const T &t)
 
std::vector< std::string > geometrize::script::bindings::split (const std::string &s, const char delimiter)
 
std::string geometrize::script::bindings::getOperatingSystemProductType ()
 
int geometrize::script::bindings::getCursorX ()
 
int geometrize::script::bindings::getCursorY ()
 
void geometrize::script::bindings::setCursorPos (const int x, const int y)
 
void geometrize::script::bindings::setTranslatorsForLocale (const std::string &locale)
 
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)
 
bool geometrize::script::bindings::saveDesktopScreenshot (const std::string &path)
 
bool geometrize::script::bindings::saveWidgetScreenshot (const std::string &path, QWidget *widget)
 
std::string geometrize::script::bindings::customTabletEventDataToString (const geometrize::scene::TabletEventData &data)