summaryrefslogtreecommitdiff
path: root/js/Sinks/BARXY.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sinks/BARXY.js')
-rw-r--r--js/Sinks/BARXY.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/js/Sinks/BARXY.js b/js/Sinks/BARXY.js
index 48eb2b5e..88d642d7 100644
--- a/js/Sinks/BARXY.js
+++ b/js/Sinks/BARXY.js
@@ -1,21 +1,21 @@
/* autogenerated from "macros/Sinks/BARXY.sci" */
function BARXY() {
BARXY.prototype.define = function BARXY() {
- model = scicos_model();
+ this.model = scicos_model();
this.xmin = -15;
this.xmax = 15;
this.ymin = -15;
this.ymax = 15;
- model.sim = list("BARXY_sim",5);
- model.blocktype = "d";
- model.dep_ut = [true,false];
- model.in1 = [[-1],[-1]];
- model.intyp = [1];
- model.out = [];
- model.evtin = [1];
- model.rpar = [[this.xmin],[this.xmax],[this.ymin],[this.ymax]];
- model.ipar = 1;
- this.x = standard_define([2,2],model,[],[]);
+ this.model.sim = list("BARXY_sim",5);
+ this.model.blocktype = new ScilabString("d");
+ this.model.dep_ut = [true,false];
+ this.model.in1 = [[-1],[-1]];
+ this.model.intyp = [1];
+ this.model.out = [];
+ this.model.evtin = [1];
+ this.model.rpar = [[this.xmin],[this.xmax],[this.ymin],[this.ymax]];
+ this.model.ipar = new ScilabDouble(1);
+ this.x = standard_define([2,2],this.model,[],[]);
this.x.graphics.in_implicit = ["E","E"];
this.x.graphics.out_implicit = [];
this.x.graphics.exprs = [["-15"],["15"],["-15"],["15"],["1"]];
@@ -43,7 +43,7 @@ function BARXY() {
this.x = arg1;
graphics = arg1.graphics;
exprs = graphics.exprs;
- model = arg1.model;
+ this.model = arg1.model;
while (true) {
[ok,this.xmin,this.xmax,this.ymin,this.ymax,this.thickness,exprs] = scicos_getvalue("Set Scope parameters",["Xmin","Xmax","Ymin","Ymax","Segs Thickness"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
if (!ok) {
@@ -65,11 +65,11 @@ function BARXY() {
if (!ok) {
message(mess);
} else {
- model.rpar = [[this.xmin],[this.xmax],[this.ymin],[this.ymax]];
- model.ipar = this.thickness;
+ this.model.rpar = [[this.xmin],[this.xmax],[this.ymin],[this.ymax]];
+ this.model.ipar = new ScilabDouble(this.thickness);
graphics.exprs = exprs;
this.x.graphics = graphics;
- this.x.model = model;
+ this.x.model = this.model;
break;
}
}