![]() |
MyScript Interactive Ink SDK 4.2.0
|
#include <HandwritingGenerator.h>
Public Member Functions | |
| virtual | ~HandwritingGenerator ()=default |
| virtual void | setListener (std::shared_ptr< IHandwritingGeneratorListener > listener)=0 |
| virtual std::shared_ptr< Engine > | getEngine ()=0 |
| virtual std::shared_ptr< HandwritingProfileBuilder > | createHandwritingProfileBuilder ()=0 |
| virtual std::vector< String > | getSupportedContentTypes () const =0 |
| virtual void | start (const String &type, std::shared_ptr< HandwritingProfile > profile, std::shared_ptr< ParameterSet > overrideConfiguration=nullptr)=0 |
| virtual std::vector< MimeType > | getSupportedMimeTypes (const String &type) const =0 |
| virtual void | add (const String &label, MimeType type)=0 |
| virtual void | end ()=0 |
| virtual void | cancel ()=0 |
| virtual bool | isIdle ()=0 |
| virtual void | waitForIdle ()=0 |
| virtual std::shared_ptr< HandwritingResult > | getResult () const =0 |
| virtual void | loadResource ()=0 |
Represents a handwriting generator that provides a way to generate handwritten content from source parameters (label, writing profile and formatting).
|
virtualdefault |
|
pure virtual |
Sets the specified listener to this handwriting generator.
| listener | the listener to be added, or nullptr to unset the previous one. |
|
pure virtual |
Returns the Engine to which this handwriting generator is attached.
|
pure virtual |
Create a new handwriting profile builder.
| std::runtime_error | when the handwriting profile builder cannot be created. |
|
pure virtual |
Returns the types of content that can be generated.
|
pure virtual |
Starts a handwriting generation using the specified writing profile.
| type | the type of the generated handwritten content. |
| profile | the handwriting profile used to generate the handwritten content. |
| overrideConfiguration | the extra configuration used for this handwriting generation. |
| std::invalid_argument | when type is not a supported content type. |
| std::runtime_error | when this handwriting generator is not idle (see isIdle()). |
| std::runtime_error | when the handwriting generator resource is not found in the search path of the configuration manager ("configuration-manager.search-path"). |
| std::invalid_argument | when overrideConfiguration is invalid. |
|
pure virtual |
Returns the input formats supported by the handwriting generation for the given content type.
| type | the type of the generated handwritten content. |
| std::invalid_argument | when type is not a supported content type. |
|
pure virtual |
Adds text in the current handwriting generation.
| label | the input label that the generated handwritten content must match. |
| type | The mime type describing the format of the label. |
| std::invalid_argument | when type is not supported by this handwriting generator. |
| std::runtime_error | when a handwriting generation has not been started (see start()). |
|
pure virtual |
|
pure virtual |
Cancels the ongoing handwriting generation if any.
|
pure virtual |
Checks whether a generation is ongoing.
true if no operation is ongoing, false otherwise.
|
pure virtual |
Waits until ongoing generation is over.
|
pure virtual |
Returns the cumulative result of the latest handwriting generation.
| std::runtime_error | when this handwriting generator is not idle (see isIdle()). |
|
pure virtual |
Loads the resource synchronously.
| std::runtime_error | when the resource file cannot be loaded. |