Blame view

js/app/views/PlotComponents/PlotZoomPlug.js 17.1 KB
9f08f4eb   Benjamin Renard   Zoom in interacti...
1
/**
b2481b88   Nathanael Jourdane   fix indent
2
3
4
5
6
7
8
9
10
11
12
13
14
 * Project      :  AMDA-NG
 * Name         : PlotZoomPlug.js
 * @plugin    amdaPlotComp.PlotZoomPlug
 * @extends    Ext.util.Observable
 * @ptype      plotZoomPlugin
 * @brief     Plot Zoom UI (View)
 * @author Benjamin
 * @version $Id: PlotZoomPlug.js
 ********************************************************************************
 *    FT Id     :   Date   : Name - Description
 *******************************************************************************
 *  :
 */
9f08f4eb   Benjamin Renard   Zoom in interacti...
15
16
17


Ext.define('amdaPlotComp.PlotZoomPlug', {
b2481b88   Nathanael Jourdane   fix indent
18
19
  extend: 'Ext.util.Observable',
  alias: 'plugin.plotZoomPlugin',
1f9f9178   Menouard AZIB   I have created a ...
20
  requires: [
bd8d75af   Menouard AZIB   Disable paramter ...
21
    'amdaPlotComp.plotFunction.ParamField', 'amdaPlotComp.plotFunction.FunctionType', 'amdaPlotComp.plotFunction.CreatePlot'],
9f08f4eb   Benjamin Renard   Zoom in interacti...
22

b2481b88   Nathanael Jourdane   fix indent
23
  id: 'plot-zoom-plug',
9f08f4eb   Benjamin Renard   Zoom in interacti...
24

b2481b88   Nathanael Jourdane   fix indent
25
  ttModuleId: 'timetab-win',
8b11b1af   Benjamin Renard   Insert intervals ...
26
  catModuleId: 'catalog-win',
b2481b88   Nathanael Jourdane   fix indent
27
28
29
30

  win: null,
  form: null,
  zoomType: '',
b39c9d1d   Benjamin Renard   Fix interactive n...
31
  interactiveId: '',
b2481b88   Nathanael Jourdane   fix indent
32
  panelId: -1,
bd8d75af   Menouard AZIB   Disable paramter ...
33
  path_context_file: "",
b2481b88   Nathanael Jourdane   fix indent
34

8b11b1af   Benjamin Renard   Insert intervals ...
35
  linkedTTCatNode: null,
48e98e36   Menouard AZIB   I have created a ...
36
37
38
  /**
   * Un composant de 'PlotFunction' qui permet d'afficher le min samplig de chaque paramètre et le nombre de points théoriques entre un start time et stop time
   */
1f9f9178   Menouard AZIB   I have created a ...
39
  plotFunctionParamField: null,
48e98e36   Menouard AZIB   I have created a ...
40
41
42
43
  /**
   * Un composant de 'PlotFunction' qui permet à l'utilisateur de séléctionner le type de fonction à appliquer : FFT, SUM, ...
   */
  plotFunctionType: null,
b2481b88   Nathanael Jourdane   fix indent
44
45
46
47
48
49
50
51
52
53
54
55
56
57

  constructor: function (config) {
    Ext.apply(this, config);
    this.callParent(arguments);
  },

  onDestroy: function () {
    this.win = null;
  },

  init: function (cmp) {
    this.hostCmp = cmp;
  },

1f9f9178   Menouard AZIB   I have created a ...
58
59
60
61
62
  /**
   * Set different parameters displayed on the current panel
   * @param {*} listParams_  parameters displayed on the current panel
   */
  setParameters: function (listParams_) {
bd8d75af   Menouard AZIB   Disable paramter ...
63
    console.log(this.path_context_file);
1f9f9178   Menouard AZIB   I have created a ...
64
    this.listParams = listParams_;
bd8d75af   Menouard AZIB   Disable paramter ...
65
    //this.plotFunctionParamField = new amdaPlotComp.plotFunction.ParamField({ params: this.listParams });
a53fe520   Menouard AZIB   The UI of plotFun...
66
    this.plotFunctionType = new amdaPlotComp.plotFunction.FunctionType({});
1f9f9178   Menouard AZIB   I have created a ...
67
68
69
  },


b2481b88   Nathanael Jourdane   fix indent
70
71
72
73
  setMinValue: function (min) {
    if (!this.form)
      return;

1f9f9178   Menouard AZIB   I have created a ...
74
    if (this.zoomType == 'timeAxis') {
b2481b88   Nathanael Jourdane   fix indent
75
      this.form.getForm().findField('zoom-min-time').setValue(min);
1f9f9178   Menouard AZIB   I have created a ...
76
77

    }
b2481b88   Nathanael Jourdane   fix indent
78
79
80
81
82
83
84
85
86
87
    else
      this.form.getForm().findField('zoom-min-float').setValue(min);
  },

  setMaxValue: function (max) {
    if (!this.form)
      return;

    if (this.zoomType == 'timeAxis') {
      var minValue = this.form.getForm().findField('zoom-min-time').getValue();
1f9f9178   Menouard AZIB   I have created a ...
88
      if (minValue <= max) {
b2481b88   Nathanael Jourdane   fix indent
89
        this.form.getForm().findField('zoom-max-time').setValue(max);
bd8d75af   Menouard AZIB   Disable paramter ...
90
91
        //if (this.isPlotFunction)
        //this.plotFunctionParamField.setValues(minValue, max);
1f9f9178   Menouard AZIB   I have created a ...
92
      }
b2481b88   Nathanael Jourdane   fix indent
93
94
95
      else {
        this.form.getForm().findField('zoom-min-time').setValue(max);
        this.form.getForm().findField('zoom-max-time').setValue(minValue);
bd8d75af   Menouard AZIB   Disable paramter ...
96
97
        // if (this.isPlotFunction)
        // this.plotFunctionParamField.setValues(max, minValue);
b2481b88   Nathanael Jourdane   fix indent
98
      }
b2481b88   Nathanael Jourdane   fix indent
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
    }
    else {
      var minValue = this.form.getForm().findField('zoom-min-float').getValue();
      if (minValue <= max)
        this.form.getForm().findField('zoom-max-float').setValue(max);
      else {
        this.form.getForm().findField('zoom-min-float').setValue(max);
        this.form.getForm().findField('zoom-max-float').setValue(minValue);
      }
    }
  },

  /**
   *  add Interval to Time table
   **/
  insertInterval: function () {
    if (this.zoomType != 'timeAxis')
      return;

    var start = this.form.getForm().findField('zoom-min-time').getValue();
    var stop = this.form.getForm().findField('zoom-max-time').getValue();

8b11b1af   Benjamin Renard   Insert intervals ...
121
122
123
124
    var TTCatType = this.form.getForm().findField('ttcat-type').getValue();
    var isCatalog = (TTCatType == 'catalog');

    myDesktopApp.getLoadedModule(isCatalog ? this.catModuleId : this.ttModuleId, true, function (module) {
b2481b88   Nathanael Jourdane   fix indent
125
126
127
128
129
130
131
132
133
      var targetModuleUI = module.getUiContent();
      if (targetModuleUI)
        targetModuleUI.addInterval(start, stop);
    });
  },

  /**
   *  creation of the window
   */
85721867   Menouard AZIB   I have added plot...
134
135
  show: function (interactiveId, zoomType, panelId, isPlotFunction_ = false) {
    this.isPlotFunction = isPlotFunction_;
b2481b88   Nathanael Jourdane   fix indent
136
137
138
    if (!this.win) {
      this.win = new Ext.Window({
        id: 'plot-zoom-win-' + this.hostCmp.ownerCt.getId(), // Plot window ID
47de182c   Nathanael Jourdane   fix zoom panel width
139
        width: 250,
b2481b88   Nathanael Jourdane   fix indent
140
141
142
        x: 0, y: 0,
        baseCls: 'x-panel',
        title: 'Zoom',
b2481b88   Nathanael Jourdane   fix indent
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
        constrain: true,
        collapsible: true,
        resizable: false,
        ghost: false,
        renderTo: this.hostCmp.ownerCt.body,
        items: this.getFormConfig(),
        listeners: {
          scope: this,
          beforeclose: function () {
            this.hostCmp.panelImage.stopZoom();
            Ext.PluginManager.unregister(this);
          }
        },
        getConstrainVector: function (constrainTo) {
          var me = this;
          if (me.constrain || me.constrainHeader) {
            constrainTo = constrainTo || (me.floatParent && me.floatParent.getTargetEl()) || me.container || me.el.getScopeParent();
            return (me.constrainHeader ? me.header.el : me.el).getConstrainVector(constrainTo);
          }
        }
      });

      this.win.on('destroy', this.onDestroy, this);

      Ext.PluginManager.register(this);
    }
b39c9d1d   Benjamin Renard   Fix interactive n...
169
    this.interactiveId = interactiveId;
b2481b88   Nathanael Jourdane   fix indent
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
    this.updateWinByType(zoomType, panelId);
    this.win.show();
    this.win.setPosition(0, 0);
  },

  close: function () {
    if (this.win == null)
      return;
    this.win.close();
  },

  updateWinByType: function (zoomType, panelId) {
    if (this.win == null)
      return;

    this.zoomType = zoomType;
    this.panelId = panelId;

    switch (zoomType) {
      case 'timeAxis':
550c940c   Menouard AZIB   The title of a wi...
190
        if (this.isPlotFunction) {
304d091a   Benjamin Renard   Minor fix
191
          const title = "Apply a Function on Interval";
550c940c   Menouard AZIB   The title of a wi...
192
193
194
195
          this.win.setTitle(title + '-Panel Id: ' + panelId);
        } else {
          this.win.setTitle('Zoom on time axis & Interval selection - Panel Id : ' + panelId);
        }
b2481b88   Nathanael Jourdane   fix indent
196
        break;
85721867   Menouard AZIB   I have added plot...
197
      case 'y-left':
b2481b88   Nathanael Jourdane   fix indent
198
199
        this.win.setTitle('Zoom on Y Left axis - Panel Id : ' + panelId);
        break;
85721867   Menouard AZIB   I have added plot...
200
      case 'y-right':
b2481b88   Nathanael Jourdane   fix indent
201
202
        this.win.setTitle('Zoom on Y Right axis - Panel Id : ' + panelId);
        break;
85721867   Menouard AZIB   I have added plot...
203
      case 'xaxis_id':
b2481b88   Nathanael Jourdane   fix indent
204
205
206
207
208
209
210
211
212
213
        this.win.setTitle('Zoom on X axis - Panel Id : ' + panelId);
        break;
    }

    this.form.getForm().findField('zoom-min-time').setVisible(this.zoomType == 'timeAxis');
    this.form.getForm().findField('zoom-max-time').setVisible(this.zoomType == 'timeAxis');

    this.form.getForm().findField('zoom-min-float').setVisible(this.zoomType != 'timeAxis');
    this.form.getForm().findField('zoom-max-float').setVisible(this.zoomType != 'timeAxis');

8b11b1af   Benjamin Renard   Insert intervals ...
214
215
216
    var ttCatNameField = this.form.getForm().findField('ttcat-name');
    if (ttCatNameField)
      ttCatNameField.findParentByType('fieldset').setVisible(this.zoomType == 'timeAxis');
b2481b88   Nathanael Jourdane   fix indent
217
218
219
220
221
222
223
224
225
226
227
228
229
230
  },

  resetMinMaxValue: function () {
    if (this.zoomType == 'timeAxis') {
      this.form.getForm().findField('zoom-min-time').setValue('');
      this.form.getForm().findField('zoom-max-time').setValue('');
    }
    else {
      this.form.getForm().findField('zoom-min-float').setValue(null);
      this.form.getForm().findField('zoom-max-float').setValue(null);
    }

    this.hostCmp.panelImage.resetZoom();
  },
85721867   Menouard AZIB   I have added plot...
231
  setTimePlot: function () {
67210d01   Hacene SI HADJ MOHAND   #9800
232
233
234
    var timeObj = new Object();
    timeObj.start = this.form.getForm().findField('zoom-min-time').getValue();
    timeObj.stop = this.form.getForm().findField('zoom-max-time').getValue();
a54cfb3f   Benjamin Renard   Merge amdadev int...
235
    timeObj.interactiveId = this.interactiveId;
67210d01   Hacene SI HADJ MOHAND   #9800
236
237
    var plotModule = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.plot.id);
    plotModule.setTimeInterval(timeObj);
85721867   Menouard AZIB   I have added plot...
238
  },
b2481b88   Nathanael Jourdane   fix indent
239
240
241
242
  /**
   *        Main form
   */
  getFormConfig: function () {
b2481b88   Nathanael Jourdane   fix indent
243
244
245
246
247
248
249
250
251
252
253
254
255
    var intervalFieldSet = {
      xtype: 'fieldset',
      title: 'Interval Selection',
      name: 'interval-selection-fieldset',
      collapsible: false,
      layout: {
        type: 'vbox',
        pack: 'start',
        align: 'stretch'
      },
      items: [
        {
          xtype: 'datefield', name: 'zoom-min-time', fieldLabel: 'Start Time',
85721867   Menouard AZIB   I have added plot...
256
          format: 'Y/m/d H:i:s.u',
b2481b88   Nathanael Jourdane   fix indent
257
258
259
        },
        {
          xtype: 'datefield', name: 'zoom-max-time', fieldLabel: 'Stop Time',
c3cfed52   Hacene SI HADJ MOHAND   us oki
260
          format: 'Y/m/d H:i:s.u'
b2481b88   Nathanael Jourdane   fix indent
261
262
263
264
265
266
267
268
269
270
        },
        {
          xtype: 'numberfield', name: 'zoom-min-float', fieldLabel: 'Min Value'
        },
        {
          xtype: 'numberfield', name: 'zoom-max-float', fieldLabel: 'Max Value'
        },
        {
          xtype: 'button',
          width: 100,
76447670   Benjamin Renard   Minor fixes
271
          text: 'Reset',
b2481b88   Nathanael Jourdane   fix indent
272
273
274
275
          scope: this,
          handler: function () {
            this.resetMinMaxValue();
          }
85721867   Menouard AZIB   I have added plot...
276
277
        },
        {
67210d01   Hacene SI HADJ MOHAND   #9800
278
279
          xtype: 'button',
          width: 100,
76447670   Benjamin Renard   Minor fixes
280
          text: 'Use in Time Selection',
67210d01   Hacene SI HADJ MOHAND   #9800
281
282
283
284
          scope: this,
          handler: function () {
            this.setTimePlot();
          }
b2481b88   Nathanael Jourdane   fix indent
285
286
287
288
        }
      ]
    };

8b11b1af   Benjamin Renard   Insert intervals ...
289
    var insertTypeStore = Ext.create('Ext.data.Store', {
85721867   Menouard AZIB   I have added plot...
290
291
292
293
294
      fields: ['key', 'name'],
      data: [
        { "key": "timeTable", "name": "TimeTable" },
        { "key": "catalog", "name": "Catalog" }
      ]
8b11b1af   Benjamin Renard   Insert intervals ...
295
296
297
    });

    var me = this;
b2481b88   Nathanael Jourdane   fix indent
298
299
    var insertTTFieldSet = {
      xtype: 'fieldset',
d4d660bc   Benjamin Renard   Minor fix (#9881)
300
      title: 'Add in Time Table or Catalog',
b2481b88   Nathanael Jourdane   fix indent
301
302
303
304
305
306
307
308
309
      name: 'tt-insertion-fieldset',
      collapsible: false,
      layout: {
        type: 'vbox',
        pack: 'start',
        align: 'stretch'
      },
      items: [
        {
8b11b1af   Benjamin Renard   Insert intervals ...
310
311
312
313
314
315
316
317
318
319
320
          xtype: 'combo',
          fieldLabel: 'Insert In',
          store: insertTypeStore,
          queryMode: 'local',
          displayField: 'name',
          valueField: 'key',
          editable: false,
          value: 'timeTable',
          name: 'ttcat-type'
        },
        {
b2481b88   Nathanael Jourdane   fix indent
321
          xtype: 'textfield',
8b11b1af   Benjamin Renard   Insert intervals ...
322
323
          fieldLabel: 'Name',
          name: 'ttcat-name',
b2481b88   Nathanael Jourdane   fix indent
324
          listeners:
85721867   Menouard AZIB   I have added plot...
325
326
327
328
329
330
331
332
333
334
335
          {
            render: function (o, op) {
              var field = this;
              var el = this.el;
              var dropTarget = Ext.create('Ext.dd.DropTarget', el, {
                ddGroup: 'explorerTree',
                notifyOver: function (ddSource, e, data) {
                  var TTCatType = me.form.getForm().findField('ttcat-type').getValue();
                  if (data.records[0].data.leaf && (data.records[0].data.nodeType == TTCatType)) {
                    this.valid = true;
                    return this.dropAllowed;
b2481b88   Nathanael Jourdane   fix indent
336
                  }
85721867   Menouard AZIB   I have added plot...
337
338
339
340
341
342
343
344
345
346
                  this.valid = false;
                  return this.dropNotAllowed;
                },
                notifyDrop: function (ddSource, e, data) {
                  if (!this.valid)
                    return false;
                  field.setValue(data.records[0].get('text'));
                  return true;
                }
              });
b2481b88   Nathanael Jourdane   fix indent
347
            }
85721867   Menouard AZIB   I have added plot...
348
          }
b2481b88   Nathanael Jourdane   fix indent
349
350
351
352
353
354
355
356
357
        },
        {
          xtype: 'button',
          width: 100,
          text: 'Insert Interval',
          scope: this,
          handler: function () {
            var me = this;

8b11b1af   Benjamin Renard   Insert intervals ...
358
359
            var TTCatType = this.form.getForm().findField('ttcat-type').getValue();
            var TTCatName = this.form.getForm().findField('ttcat-name').getValue();
b2481b88   Nathanael Jourdane   fix indent
360

8b11b1af   Benjamin Renard   Insert intervals ...
361
362
            var isCatalog = (TTCatType == 'catalog');
            myDesktopApp.getLoadedModule(isCatalog ? this.catModuleId : this.ttModuleId, true, function (module) {
b2481b88   Nathanael Jourdane   fix indent
363
              var targetModuleUI = module.getUiContent();
8b11b1af   Benjamin Renard   Insert intervals ...
364
              if (me.linkedTTCatNode && (me.linkedTTCatNode.get('text') == TTCatName) && (me.linkedTTCatNode.get('nodeType') == TTCatType)) {
b2481b88   Nathanael Jourdane   fix indent
365
366
367
                if (targetModuleUI)
                  me.insertInterval();
                else {
8b11b1af   Benjamin Renard   Insert intervals ...
368
                  me.linkedTTCatNode.editLeaf(function () {
b2481b88   Nathanael Jourdane   fix indent
369
370
371
372
373
                    me.insertInterval();
                  });
                }
              }
              else {
b2481b88   Nathanael Jourdane   fix indent
374
                var explorerTree = Ext.getCmp(amdaUI.ExplorerUI.RESRC_TAB.TREE_ID);
8b11b1af   Benjamin Renard   Insert intervals ...
375
376
                var ttCatRootNode = explorerTree.getRootNode().findChild('id', isCatalog ? 'catalog-treeRootNode' : 'timeTable-treeRootNode', true);
                amdaModel.InteractiveNode.preloadNodes(ttCatRootNode, function () {
b2481b88   Nathanael Jourdane   fix indent
377
378
                  var nodeWithSameName = null;

8b11b1af   Benjamin Renard   Insert intervals ...
379
380
                  if (TTCatName != '')
                    nodeWithSameName = ttCatRootNode.findChild('text', TTCatName, true);
b2481b88   Nathanael Jourdane   fix indent
381
382

                  if (nodeWithSameName !== null)
8b11b1af   Benjamin Renard   Insert intervals ...
383
                    me.linkedTTCatNode = nodeWithSameName;
b2481b88   Nathanael Jourdane   fix indent
384
                  else {
85721867   Menouard AZIB   I have added plot...
385
386
387
388
389
390
                    module.createLinkedNode();
                    module.getLinkedNode().set('text', TTCatName);
                    me.linkedTTCatNode = module.getLinkedNode();
                    var obj = {
                      name: TTCatName,
                      fromPlugin: true
8b11b1af   Benjamin Renard   Insert intervals ...
391
                    };
85721867   Menouard AZIB   I have added plot...
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
                    if (isCatalog) {
                      Ext.Msg.prompt('Define Parameters', 'Please enter parameters number for the new catalog:', function (btn, text) {
                        if (btn == 'ok') {
                          obj.nbParameters = parseInt(text, 10);
                          if (isNaN(obj.nbParameters)) {
                            obj.nbParameters = 1;
                          }
                          module.createObject(obj);
                          me.linkedTTCatNode.editLeaf(function () {
                            me.insertInterval();
                          });
                        }
                      });
                      return;
                    }
                    else {
                      module.createObject(obj);
                    }
b2481b88   Nathanael Jourdane   fix indent
410
411
                  }

8b11b1af   Benjamin Renard   Insert intervals ...
412
                  me.linkedTTCatNode.editLeaf(function () {
b2481b88   Nathanael Jourdane   fix indent
413
414
415
416
417
418
419
420
421
422
423
424
                    me.insertInterval();
                  });
                });
              }
            });
          }
        }
      ]
    };

    this.form = new Ext.form.FormPanel({
      frame: true,
8b1a8c67   Hacene SI HADJ MOHAND   patch bug ouvertu...
425
      width: 255,
b2481b88   Nathanael Jourdane   fix indent
426
427
428
429
430
431
432
433
434
435
      layout: {
        type: 'vbox',
        pack: 'start',
        align: 'stretch'
      },
      fieldDefaults: {
        labelWidth: 60
      },
      items: [
        intervalFieldSet,
48e98e36   Menouard AZIB   I have created a ...
436
437
        //Ici on rajoute les composants associés à la fonctionnalité 'PlotFunction'
        me.isPlotFunction ? this.plotFunctionType : insertTTFieldSet,
bd8d75af   Menouard AZIB   Disable paramter ...
438
        // me.isPlotFunction ? this.plotFunctionParamField : null,
b2481b88   Nathanael Jourdane   fix indent
439
440
441
      ],
      fbar: [
        {
a53fe520   Menouard AZIB   The UI of plotFun...
442
          text: me.isPlotFunction ? "Apply" : 'Apply Zoom',
b2481b88   Nathanael Jourdane   fix indent
443
444
445
446
          width: 100,
          scope: this,
          handler: function () {
            if (this.zoomType == 'timeAxis') {
02d7d98e   Benjamin Renard   Fix time format
447
              var minZoom = Ext.Date.format(this.form.getForm().findField('zoom-min-time').getValue(), 'Y-m-d\\TH:i:s.u');
bd8d75af   Menouard AZIB   Disable paramter ...
448
              var maxZoom = Ext.Date.format(this.form.getForm().findField('zoom-max-time').getValue(), 'Y-m-d\\TH:i:s.u');
b2481b88   Nathanael Jourdane   fix indent
449
450
451
452
453
454
455
456
457
458
459
            }
            else {
              var minZoom = this.form.getForm().findField('zoom-min-float').getValue();
              var maxZoom = this.form.getForm().findField('zoom-max-float').getValue();
            }

            if (!maxZoom || !minZoom || !this.form.getForm().isValid()) {
              myDesktopApp.warningMsg('Error in values definition');
              return;
            }

eeb3432d   Menouard AZIB   La feature 'PlotF...
460
            if (me.isPlotFunction) {
6d5a4308   Menouard AZIB   La feature 'PlotF...
461
462
463
464
              const start_time = this.form.getForm().findField('zoom-min-time').getValue();
              const stop_time = this.form.getForm().findField('zoom-max-time').getValue();

              let request_to_send = {};
bd8d75af   Menouard AZIB   Disable paramter ...
465
              request_to_send = Object.assign({}, me.plotFunctionType.getValues()/*, me.plotFunctionParamField.getValues()*/);
6d5a4308   Menouard AZIB   La feature 'PlotF...
466
467
468
469
470
471
472
              request_to_send = Object.assign({}, request_to_send, {
                'action': 'plotFunction',
                'interactiveId': this.interactiveId,
                'panelId': this.panelId,
                'starttime': start_time,
                'stoptime': stop_time
              });
bf6ef7e0   Menouard AZIB   Suppression d'un ...
473

bd8d75af   Menouard AZIB   Disable paramter ...
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
              console.log(request_to_send);
              // const parent = this;
              this.hostCmp.callInteractivePlot(request_to_send);/*, function () {
                Ext.Ajax.request({
                  url: parent.path_context_file,
                  success: function (response, options) {
                    var xmlDoc = response.responseXML;
                    const wind = new amdaPlotComp.plotFunction.CreatePlot({
                      xmlDoc: xmlDoc, plotFunctionType: me.plotFunctionType,
                      plotFunctionParamField: me.plotFunctionParamField
                    });
                    wind.show();
                    wind.plot();
                  }
                });
              });*/
6d5a4308   Menouard AZIB   La feature 'PlotF...
490

eeb3432d   Menouard AZIB   La feature 'PlotF...
491
492
493
494
495
496
497
498
499
500
501
            } else {
              this.hostCmp.callInteractivePlot({
                'action': 'zoom',
                'interactiveId': this.interactiveId,
                'panelId': this.panelId,
                'axeId': this.zoomType,
                'min': minZoom,
                'max': maxZoom
              });
            }

b2481b88   Nathanael Jourdane   fix indent
502
503
504
505
506
507
508
509
510
511
            this.hostCmp.panelImage.resetZoom();
          }
        },
        {
          text: 'Undo Zoom',
          width: 100,
          scope: this,
          handler: function () {
            this.hostCmp.callInteractivePlot({
              'action': 'undozoom',
b39c9d1d   Benjamin Renard   Fix interactive n...
512
              'interactiveId': this.interactiveId,
b2481b88   Nathanael Jourdane   fix indent
513
514
515
516
517
518
519
520
              'panelId': this.panelId,
              'axeId': this.zoomType
            });
            this.hostCmp.panelImage.resetZoom();
          }
        }
      ]
    });
85721867   Menouard AZIB   I have added plot...
521

48e98e36   Menouard AZIB   I have created a ...
522
    this.plotFunctionType.setParent(this.form.getForm());
bd8d75af   Menouard AZIB   Disable paramter ...
523
    // this.plotFunctionParamField.setParent(this.form.getForm());
b2481b88   Nathanael Jourdane   fix indent
524
    return this.form;
1f9f9178   Menouard AZIB   I have created a ...
525
526
  },

8b11b1af   Benjamin Renard   Insert intervals ...
527
});