#include <HandwritingProfileBuilder.h>
A builder for handwriting profiles.
- See also
- HandwritingProfile
- Since
- 4.1
◆ ~HandwritingProfileBuilder()
| virtual myscript::iink::HandwritingProfileBuilder::~HandwritingProfileBuilder |
( |
| ) |
|
|
virtualdefault |
◆ getPredefinedProfileCount()
| virtual int myscript::iink::HandwritingProfileBuilder::getPredefinedProfileCount |
( |
| ) |
|
|
pure virtual |
Retrieves the number of predefined writing profiles.
- Returns
- the number of predefined profiles.
- Exceptions
-
| std::runtime_error | when the number of predefined writing profiles cannot be retrieved. |
- Since
- 4.2
◆ getPredefinedProfileAt()
| virtual std::shared_ptr< HandwritingProfile > myscript::iink::HandwritingProfileBuilder::getPredefinedProfileAt |
( |
int |
index | ) |
|
|
pure virtual |
Returns the predefined writing profile at the given index.
- Parameters
-
| index | the index of the predefined writing profile. |
- Returns
- the predefined writing profile.
- Exceptions
-
| std::invalid_argument | when index is not a valid index of predefined writing profile. |
- Since
- 4.2
◆ createFromSelection()
Creates a writing profile from a ContentSelection.
- Parameters
-
- Returns
- the newly created writing profile.
- Exceptions
-
| std::invalid_argument | when selection is nullptr or does not contain enough recognized text. |
◆ createFromFile()
| virtual std::shared_ptr< HandwritingProfile > myscript::iink::HandwritingProfileBuilder::createFromFile |
( |
const String & |
fileName | ) |
|
|
pure virtual |
Creates a writing profile from a ContentPackage file name.
- Parameters
-
- Returns
- the newly created writing profile.
- Exceptions
-
| std::invalid_argument | when file cannot be opened. |
| std::invalid_argument | when file does not contain enough recognized text. |
◆ load()
| virtual std::shared_ptr< HandwritingProfile > myscript::iink::HandwritingProfileBuilder::load |
( |
const String & |
fileName | ) |
|
|
pure virtual |
Loads a writing profile from file.
- Parameters
-
| fileName | the profile file name. |
- Returns
- the newly loaded writing profile.
- Exceptions
-
| std::invalid_argument | when fileName is not a valid file name. |
| std::invalid_argument | when fileName does not exist. |
| std::runtime_error | when fileName is not a valid profile. |
◆ store()
| virtual void myscript::iink::HandwritingProfileBuilder::store |
( |
std::shared_ptr< HandwritingProfile > |
profile, |
|
|
const String & |
fileName |
|
) |
| |
|
pure virtual |
Stores a writing profile to file.
- Parameters
-
| profile | the writing profile. |
| fileName | the profile file name. |
- Exceptions
-
| std::invalid_argument | when profile is nullptr. |
| std::invalid_argument | when profile is a predefined HandwritingProfile. |
| std::runtime_error | when profile cannot be stored. |
The documentation for this class was generated from the following file: