![]() |
MyScript Interactive Ink SDK
4.1.2
|
#include <Engine.h>
Public Member Functions | |
| virtual | ~Engine ()=default |
| virtual String | getVersion ()=0 |
| virtual std::shared_ptr< Configuration > | getConfiguration () noexcept=0 |
| virtual std::shared_ptr< Renderer > | createRenderer (float dpiX, float dpiY, std::shared_ptr< IRenderTarget > target)=0 |
| virtual std::shared_ptr< ToolController > | createToolController () noexcept=0 |
| virtual std::shared_ptr< Editor > | createEditor (std::shared_ptr< Renderer > renderer, std::shared_ptr< ToolController > toolController=nullptr)=0 |
| virtual std::shared_ptr< OffscreenEditor > | createOffscreenEditor (float scaleX, float scaleY)=0 |
| virtual std::shared_ptr< ItemIdHelper > | createItemIdHelper (std::shared_ptr< OffscreenEditor > offscreenEditor)=0 |
| virtual std::shared_ptr< Recognizer > | createRecognizer (float scaleX, float scaleY, const String &type)=0 |
| std::shared_ptr< ContentPackage > | createPackage (const String &fileName) |
| virtual std::shared_ptr< ContentPackage > | openPackage (const String &fileName, PackageOpenOption openOption=(PackageOpenOption) 0)=0 |
| virtual void | deletePackage (const String &fileName)=0 |
| virtual std::vector< String > | getSupportedPartTypes () noexcept=0 |
| virtual std::shared_ptr< ParameterSet > | createParameterSet ()=0 |
| virtual std::shared_ptr< RecognitionAssetsBuilder > | createRecognitionAssetsBuilder ()=0 |
| virtual std::vector< String > | getSupportedRecognizerTypes ()=0 |
| virtual std::shared_ptr< HandwritingGenerator > | createHandwritingGenerator ()=0 |
Static Public Member Functions | |
| static std::shared_ptr< Engine > | create (const char *certificateBytes, size_t certificateLength) |
Represents the iink runtime environment.
|
virtualdefault |
|
static |
Creates a new engine.
| certificateBytes | the certificate bytes that identifies you as a valid MyScript technology integrator. |
| certificateLength | length of the certificate. |
| std::invalid_argument | when the given application certificate is invalid. |
| std::runtime_error | when an internal error occurred. |
|
pure virtual |
Returns the version of iink SDK.
|
pure virtualnoexcept |
Returns the configuration associated with this engine.
|
pure virtual |
Creates a new renderer.
| dpiX | the physical horizontal resolution of the display in dots per inch. |
| dpiY | the physical vertical resolution of the display in dots per inch. |
| target | the render target. |
| std::invalid_argument | when dpiX is not a number, is zero or is negative. |
| std::invalid_argument | when dpiY is not a number, is zero or is negative. |
|
pure virtualnoexcept |
Creates a new tool controller.
|
pure virtual |
Creates a new editor.
| renderer | the renderer to be used to display editor's content. |
| toolController | the tool controller to be used to manage tools, or nullptr for default one. |
| std::invalid_argument | when renderer is nullptr. |
|
pure virtual |
Creates a new offscreen editor.
| scaleX | the scale to convert input horizontal coordinates unit into mm. |
| scaleY | the scale to convert input vertical coordinates unit into mm. |
| std::invalid_argument | when scaleX is not a number, is zero or is negative. |
| std::invalid_argument | when scaleY is not a number, is zero or is negative. |
|
pure virtual |
Creates a new item id helper associated with an offscreen editor.
| offscreenEditor | the associated offscreen editor. |
| std::invalid_argument | when offscreenEditor is nullptr. |
|
pure virtual |
Creates a new recognizer.
| scaleX | the scale to convert input horizontal coordinates unit into mm. |
| scaleY | the scale to convert input vertical coordinates unit into mm. |
| type | the type of the new recognizer. |
| std::invalid_argument | when scaleX is not a number, is zero or is negative. |
| std::invalid_argument | when scaleY is not a number, is zero or is negative. |
| std::invalid_argument | when type is not a supported recognizer type. |
| std::runtime | error when type is "Text" and the search path of the configuration manager is empty. |
| std::runtime | error when type is "Text", guides are enabled and the language does not allow guides. |
| std::runtime | error when type is "Text", guides are enabled and the line gap is zero or is negative. |
|
inline |
Creates a new package.
| fileName | the package file. |
| std::runtime_error | when a package with associated fileName already exists. |
| std::runtime_error | when an I/O operation fails. |
| std::invalid_argument | when a package associated with the same fileName is already opened, it can be accessed via a call to openPackage(). |
|
pure virtual |
Opens the specified package.
| fileName | the package file. |
| openOption | the open option used to open the package file. |
| std::runtime_error | if openOption is EXISTING, when a package with associated fileName does not exist. |
| std::runtime_error | if openOption is CREATE_NEW, when a package with associated fileName already exists. |
| std::invalid_argument | if openOption is CREATE_NEW, when a package associated with the same fileName is already opened. |
| std::runtime_error | when an I/O operation fails. |
|
pure virtual |
Deletes the specified package.
| fileName | the package file. |
| std::runtime_error | when an I/O operation fails. |
| std::invalid_argument | when a package associated with the same fileName is already opened. |
|
pure virtualnoexcept |
Lists the part types supported by this engine.
|
pure virtual |
Create an empty parameter set
|
pure virtual |
Creates a new RecognitionAssetsBuilder.
|
pure virtual |
Lists the recognizer types supported by this engine.
|
pure virtual |
Creates a new handwriting generator.
| std::runtime_error | when the handwriting generator cannot be created. |