![]() |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Namespaces | |
bindings | |
Classes | |
class | Command |
The Command class provides a convenient way for a script to tell an object about something For example, this can be used to give scripts a way to control the Geometrize user interface. More... | |
class | CommandHandler |
The CommandHandler class provides an interface that all objects that can handle/process script commands implement. This is used do things like provide a way for scripts to send commands to the Geometrize user interface. More... | |
class | GeometrizerEngine |
The GeometrizerEngine class encapsulates script-based setup and mutation methods for geometrizing shapes. More... | |
Functions | |
std::unique_ptr< chaiscript::ChaiScript > | createDefaultEngine () |
createDefaultEngine Creates a default Chaiscript engine object, with the default bindings (Geometrize-specific utility functions etc). More... | |
std::unique_ptr< chaiscript::ChaiScript > | createLaunchWindowEngine () |
createLaunchWindowEngine Creates a Chaiscript engine object for the launch window script console. More... | |
std::unique_ptr< chaiscript::ChaiScript > | createImageTaskEngine () |
createImageTaskEngine Creates a Chaiscript engine for an image task window script console. More... | |
std::unique_ptr< chaiscript::ChaiScript > | createBatchImageTaskEngine () |
createBatchImageTaskEngine Creates a Chaiscript engine for creating and processing multiple image tasks. More... | |
std::unique_ptr< chaiscript::ChaiScript > | createShapeMutatorEngine () |
createShapeMutatorEngine Creates a Chaiscript engine object for mutating shapes. More... | |
std::unique_ptr< chaiscript::ChaiScript > | createFunctionalTestRunnerEngine () |
createFunctionalTestRunnerEngine Creates a Chaiscript engine object for running functional tests. More... | |
void | runScript (const std::string &code, chaiscript::ChaiScript &runner) |
runScript Evaluates the provided script code. More... | |
void | runScript (const std::string &code) |
runScript Evaluates the provided script code, creating a fresh engine to evaluate the script. More... | |
void | sleep (std::size_t ms) |
sleep Causes the calling thread to sleep for the given length of time. More... | |
std::vector< std::string > | getEngineFunctionNames (const chaiscript::ChaiScript &engine) |
getEngineFunctionNames Gets the names of the functions registered with the given engine. More... | |
std::map< std::string, std::string > | getScripts (const std::string &folder) |
getDefaultScripts Gets a map of the scripts in the given folder. More... | |
std::map< std::string, std::string > | getDefaultShapeMutatorScripts () |
getDefaultScripts Gets a map of the default scripts used for shape creation and mutation in image tasks. More... | |
std::map< std::string, std::string > | getPointerAreaOfInterestShapeMutatorScripts () |
getPointerAreaOfInterestScripts Gets a map of the scripts used for shape creation and mutation based around user input/pointer interaction. More... | |
std::map< std::string, std::string > | getBeforeStepCallbackScripts () |
getBeforeStepCallbackScripts Gets a map of scripts that are useful to call prior to stepping an image task (i.e. before starting work to find a shape to add). More... | |
std::map< std::string, std::string > | getAfterStepCallbackScripts () |
getAfterStepCallbackScripts Gets a map of scripts that are useful to call after stepping an image task (i.e. after completing work to find a shape to add). More... | |
std::map< std::string, std::string > | getStopConditionScripts () |
getStopConditionScripts Gets a map of scripts that get to true/false, and can be used to check whether to stop an image task (usually after stepping). More... | |
std::map< std::string, std::string > | getOnStopConditionMetScripts () |
getOnStopConditionMetScripts Gets a map of scripts that are useful to call after the stop condition for an image task is met. More... | |
std::map< std::string, std::string > | getAddShapePreconditionScripts () |
getAddShapePreconditionScripts Gets a map of scripts that are used to decide whether to add a shape to an image or not More... | |
std::map< std::string, std::string > | getBeforeAddShapeCallbackScripts () |
getBeforeAddShapeCallbackScripts Gets a map of scripts that are useful to call before adding a shape to the image task views. More... | |
std::map< std::string, std::string > | getAfterAddShapeCallbackScripts () |
getAfterAddShapeCallbackScripts Gets a map of scripts that are useful to call after adding a shape to the image task views. More... | |
std::map< std::string, std::string > | getOnPenInputCallbackScripts () |
getOnPenInputCallbackScripts Gets a map of scripts that are useful to call after receiving pen input to the image task views. More... | |
std::map< std::string, std::string > | getOnPenProximityEnterCallbackScripts () |
getOnPenProximityEnterCallbackScripts Gets a map of scripts that are useful to call after receiving a pen proximity enter event. This is application global, not bound to a particular view. More... | |
std::map< std::string, std::string > | getOnPenProximityExitCallbackScripts () |
getOnPenProximityExitCallbackScripts Gets a map of scripts that are useful to call after receiving a pen proximity exit event. This is application global, not bound to a particular view. More... | |
std::map< std::string, std::string > | getOnKeyDownEventScripts () |
getOnKeyDownEventScripts Gets a map of scripts that are useful to call after receiving a key down event to the image task views. More... | |
std::map< std::string, std::string > | getOnKeyUpEventScripts () |
getOnKeyUpEventScripts Gets a map of scripts that are useful to call after receiving a key up event to the image task views. More... | |
std::map< std::string, std::string > | getOnMouseDownEventScripts () |
getOnMouseDownEventScripts Gets a map of scripts that are useful to call after receiving a mouse down event to the image task views. More... | |
std::map< std::string, std::string > | getOnMouseUpEventScripts () |
getOnMouseUpEventScripts Gets a map of scripts that are useful to call after receiving a mouse up event to the image task views. More... | |
std::map< std::string, std::string > | getOnMouseMoveEventScripts () |
getOnMouseMoveEventScripts Gets a map of scripts that are useful to call after receiving a mouse move event to the image task views. More... | |
std::map< std::string, std::string > | getOnMouseWheelEventScripts () |
getOnMouseWheelEventScripts Gets a map of scripts that are useful to call after receiving a mouse wheel event to the image task views. More... | |
std::map< std::string, std::string > | getOnTimedUpdateEventScripts () |
getOnTimedUpdateEventScripts Gets a map of scripts that are useful to regularly periodically call i.e. on update More... | |
std::map< std::string, std::string > | getTaskQueueBatchProcessingScripts () |
getTaskQueueBatchProcessingScripts Gets a map of scripts used for batch processing multiple images on the task queue More... | |
std::unique_ptr< chaiscript::ChaiScript > geometrize::script::createBatchImageTaskEngine | ( | ) |
createBatchImageTaskEngine Creates a Chaiscript engine for creating and processing multiple image tasks.
std::unique_ptr< chaiscript::ChaiScript > geometrize::script::createDefaultEngine | ( | ) |
createDefaultEngine Creates a default Chaiscript engine object, with the default bindings (Geometrize-specific utility functions etc).
std::unique_ptr< chaiscript::ChaiScript > geometrize::script::createFunctionalTestRunnerEngine | ( | ) |
createFunctionalTestRunnerEngine Creates a Chaiscript engine object for running functional tests.
std::unique_ptr< chaiscript::ChaiScript > geometrize::script::createImageTaskEngine | ( | ) |
createImageTaskEngine Creates a Chaiscript engine for an image task window script console.
std::unique_ptr< chaiscript::ChaiScript > geometrize::script::createLaunchWindowEngine | ( | ) |
createLaunchWindowEngine Creates a Chaiscript engine object for the launch window script console.
std::unique_ptr< chaiscript::ChaiScript > geometrize::script::createShapeMutatorEngine | ( | ) |
createShapeMutatorEngine Creates a Chaiscript engine object for mutating shapes.
std::map< std::string, std::string > geometrize::script::getAddShapePreconditionScripts | ( | ) |
getAddShapePreconditionScripts Gets a map of scripts that are used to decide whether to add a shape to an image or not
std::map< std::string, std::string > geometrize::script::getAfterAddShapeCallbackScripts | ( | ) |
getAfterAddShapeCallbackScripts Gets a map of scripts that are useful to call after adding a shape to the image task views.
std::map< std::string, std::string > geometrize::script::getAfterStepCallbackScripts | ( | ) |
getAfterStepCallbackScripts Gets a map of scripts that are useful to call after stepping an image task (i.e. after completing work to find a shape to add).
std::map< std::string, std::string > geometrize::script::getBeforeAddShapeCallbackScripts | ( | ) |
getBeforeAddShapeCallbackScripts Gets a map of scripts that are useful to call before adding a shape to the image task views.
std::map< std::string, std::string > geometrize::script::getBeforeStepCallbackScripts | ( | ) |
getBeforeStepCallbackScripts Gets a map of scripts that are useful to call prior to stepping an image task (i.e. before starting work to find a shape to add).
std::map< std::string, std::string > geometrize::script::getDefaultShapeMutatorScripts | ( | ) |
getDefaultScripts Gets a map of the default scripts used for shape creation and mutation in image tasks.
std::vector< std::string > geometrize::script::getEngineFunctionNames | ( | const chaiscript::ChaiScript & | engine | ) |
getEngineFunctionNames Gets the names of the functions registered with the given engine.
engine | The engine whose function names will be fetched. |
std::map< std::string, std::string > geometrize::script::getOnKeyDownEventScripts | ( | ) |
getOnKeyDownEventScripts Gets a map of scripts that are useful to call after receiving a key down event to the image task views.
std::map< std::string, std::string > geometrize::script::getOnKeyUpEventScripts | ( | ) |
getOnKeyUpEventScripts Gets a map of scripts that are useful to call after receiving a key up event to the image task views.
std::map< std::string, std::string > geometrize::script::getOnMouseDownEventScripts | ( | ) |
getOnMouseDownEventScripts Gets a map of scripts that are useful to call after receiving a mouse down event to the image task views.
std::map< std::string, std::string > geometrize::script::getOnMouseMoveEventScripts | ( | ) |
getOnMouseMoveEventScripts Gets a map of scripts that are useful to call after receiving a mouse move event to the image task views.
std::map< std::string, std::string > geometrize::script::getOnMouseUpEventScripts | ( | ) |
getOnMouseUpEventScripts Gets a map of scripts that are useful to call after receiving a mouse up event to the image task views.
std::map< std::string, std::string > geometrize::script::getOnMouseWheelEventScripts | ( | ) |
getOnMouseWheelEventScripts Gets a map of scripts that are useful to call after receiving a mouse wheel event to the image task views.
std::map< std::string, std::string > geometrize::script::getOnPenInputCallbackScripts | ( | ) |
getOnPenInputCallbackScripts Gets a map of scripts that are useful to call after receiving pen input to the image task views.
std::map< std::string, std::string > geometrize::script::getOnPenProximityEnterCallbackScripts | ( | ) |
getOnPenProximityEnterCallbackScripts Gets a map of scripts that are useful to call after receiving a pen proximity enter event. This is application global, not bound to a particular view.
std::map< std::string, std::string > geometrize::script::getOnPenProximityExitCallbackScripts | ( | ) |
getOnPenProximityExitCallbackScripts Gets a map of scripts that are useful to call after receiving a pen proximity exit event. This is application global, not bound to a particular view.
std::map< std::string, std::string > geometrize::script::getOnStopConditionMetScripts | ( | ) |
getOnStopConditionMetScripts Gets a map of scripts that are useful to call after the stop condition for an image task is met.
std::map< std::string, std::string > geometrize::script::getOnTimedUpdateEventScripts | ( | ) |
getOnTimedUpdateEventScripts Gets a map of scripts that are useful to regularly periodically call i.e. on update
std::map< std::string, std::string > geometrize::script::getPointerAreaOfInterestShapeMutatorScripts | ( | ) |
getPointerAreaOfInterestScripts Gets a map of the scripts used for shape creation and mutation based around user input/pointer interaction.
std::map< std::string, std::string > geometrize::script::getScripts | ( | const std::string & | folder | ) |
getDefaultScripts Gets a map of the scripts in the given folder.
folder | Path to the folder containing the ChaiScript scripts to retrieve. The files must have the ".chai" file extension. |
std::map< std::string, std::string > geometrize::script::getStopConditionScripts | ( | ) |
getStopConditionScripts Gets a map of scripts that get to true/false, and can be used to check whether to stop an image task (usually after stepping).
std::map< std::string, std::string > geometrize::script::getTaskQueueBatchProcessingScripts | ( | ) |
getTaskQueueBatchProcessingScripts Gets a map of scripts used for batch processing multiple images on the task queue
void geometrize::script::runScript | ( | const std::string & | code | ) |
runScript Evaluates the provided script code, creating a fresh engine to evaluate the script.
code | The script code to evaluate. |
void geometrize::script::runScript | ( | const std::string & | code, |
chaiscript::ChaiScript & | runner | ||
) |
runScript Evaluates the provided script code.
code | The script code to evaluate. |
runner | The engine that will evaluate the script. |