File: /home/padewitte/projets/webcomponents/myscript-js/src/input/shape/shapeRecognitionInput.js
'use strict';
(function (scope) {
/**
* Recognition input object for shape recognition
*
* @class ShapeRecognitionInput
* @extends AbstractRecognitionInput
* @constructor
*/
function ShapeRecognitionInput() {
}
/**
* Inheritance property
*/
ShapeRecognitionInput.prototype = new scope.AbstractRecognitionInput();
/**
* Constructor property
*/
ShapeRecognitionInput.prototype.constructor = ShapeRecognitionInput;
/**
* Get parameters
*
* @method getParameters
* @returns {ShapeParameter}
*/
ShapeRecognitionInput.prototype.getParameters = function () {
return new ShapeParameter({
rejectDetectionSensitivity: this.rejectDetectionSensitivity,
doBeautification: this.doBeautification,
userResources: this.userResources
});
};
/**
* Set parameters
*
* @method setParameters
* @param {ShapeParameter} parameters
*/
ShapeRecognitionInput.prototype.setParameters = function (parameters) {
if (parameters) {
this.rejectDetectionSensitivity = parameters.getRejectDetectionSensitivity();
this.doBeautification = parameters.hasBeautification();
this.userResources = parameters.getUserResources();
}
};
/**
* Get input components
*
* @method getComponents
* @returns {AbstractComponent[]}
*/
ShapeRecognitionInput.prototype.getComponents = function () {
return this.components;
};
/**
* Set input components
*
* @method setComponents
* @param {AbstractComponent[]} components
*/
ShapeRecognitionInput.prototype.setComponents = function (components) {
this.components = components;
};
// Export
scope.ShapeRecognitionInput = ShapeRecognitionInput;
})(MyScript);