MyScript Interactive Ink SDK  4.0.0
Public Member Functions | List of all members
myscript::iink::MathSolverController Class Referenceabstract

#include <MathSolverController.h>

Public Member Functions

virtual ~MathSolverController ()=default
 
virtual std::vector< String > getAvailableActions (const String &blockId, std::shared_ptr< ParameterSet > overrideConfiguration=nullptr)=0
 
virtual String getActionOutput (const String &blockId, const String &action, MimeType mimeType, std::shared_ptr< ParameterSet > overrideConfiguration=nullptr)=0
 
virtual void applyAction (const String &blockId, const String &action, std::shared_ptr< ParameterSet > overrideConfiguration=nullptr)=0
 

Detailed Description

The MathSolverController allows to configure and run math operations on an editor.

See also
Editor.
OffscreenEditor.
Since
4.0

Constructor & Destructor Documentation

◆ ~MathSolverController()

virtual myscript::iink::MathSolverController::~MathSolverController ( )
virtualdefault

Member Function Documentation

◆ getAvailableActions()

virtual std::vector<String> myscript::iink::MathSolverController::getAvailableActions ( const String &  blockId,
std::shared_ptr< ParameterSet >  overrideConfiguration = nullptr 
)
pure virtual

Returns the available actions for the specified block.

Note
following limitation applies: the part managed by the associated editor must be a "Raw Content" and the specified block must be a "Math" block.
Parameters
blockIdthe identifier of the block.
overrideConfigurationthe extra configuration used.
Returns
an array of the available actions.
Exceptions
std::invalid_argumentwhen blockId is invalid.
std::invalid_argumentwhen overrideConfiguration is invalid.
std::runtime_errorwhen associated part type is not "Raw Content" or block type is not "Math".

◆ getActionOutput()

virtual String myscript::iink::MathSolverController::getActionOutput ( const String &  blockId,
const String &  action,
MimeType  mimeType,
std::shared_ptr< ParameterSet >  overrideConfiguration = nullptr 
)
pure virtual

Returns the output for the given action and the specified block.

Note
following limitation applies: the part managed by the associated editor must be a "Raw Content" and the specified block must be a "Math" block.
Parameters
blockIdthe identifier of the block.
actionthe action operated by the math solver.
mimeTypethe MIME type that specifies the output format, either JIIX or LATEX.
overrideConfigurationthe extra configuration used.
Returns
a string representing the output formatted with the given MIME type.
Exceptions
std::invalid_argumentwhen blockId is invalid.
std::invalid_argumentwhen action is invalid
std::invalid_argumentwhen the specified MIME type is not supported.
std::invalid_argumentwhen overrideConfiguration is invalid.
std::runtime_errorwhen associated part type is not "Raw Content" or block type is not "Math".

◆ applyAction()

virtual void myscript::iink::MathSolverController::applyAction ( const String &  blockId,
const String &  action,
std::shared_ptr< ParameterSet >  overrideConfiguration = nullptr 
)
pure virtual

Applies the solved action of the specified block to the rendering.

Note
following limitation applies: incompatible with Offscreen interactivity service.
Parameters
blockIdthe identifier of the block.
actionthe action used by the math solver.
overrideConfigurationthe extra configuration used.
Exceptions
std::invalid_argumentwhen blockId is invalid.
std::invalid_argumentwhen action is invalid.
std::invalid_argumentwhen overrideConfiguration is invalid.
std::runtime_errorwhen associated part type is not "Raw Content" or block type is not "Math".
std::runtime_errorwhen associated with an offscreen editor.

The documentation for this class was generated from the following file: