Blame view

js/app/models/PlotObjects/PlotHistogram2DSerieObject.js 2.81 KB
6e83f9b9   Erdogan Furkan   Done
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * Project      : TMA-AMDA
 * Name         : PlotHistogram2DSerieObject.js
 * @class   amdaPlotObj.PlotHistogram2DSerieObject
 * @extends amdaPlotObj.PlotBaseSerieObject
 * @brief   Plot Histogram2D Business Object Definition 
 * @author  Furkan Erdogan
 * @version $Id: PlotHistogram2DSerieObject.js furkan $
 ******************************************************************************
 *    FT Id     :   Date   : Name - Description
 ******************************************************************************
 *	:           :08/02/2023: FER  - file creation
 */
 
 		
Ext.define('amdaPlotObj.PlotHistogram2DSerieObject', {
	extend: 'amdaPlotObj.PlotBaseSerieObject',
	requires: ['amdaPlotObj.PlotAxisObject'],
	fields : [
        {name: 'serie-xaxis-param', type: 'string'},
6e83f9b9   Erdogan Furkan   Done
21
        {name: 'serie-resampling-mode', type: 'string'},
3e01c3cc   Erdogan Furkan   11372 - Done
22
			  {name: 'histo2d-yaxis', type: 'string'},
6e83f9b9   Erdogan Furkan   Done
23
24
25
26
27
28
29
30
31
32
			  {name: 'histo2d-function', type: 'string'},
			  {name: 'histotype-param', type: 'string' },
			  {name: 'histo2d-xbinnumber', type: 'int'},
			  {name: 'histo2d-ybinnumber', type: 'int'},
			  {name: 'histo2d-smoothfactor', type: 'int'}

    ],
    
    constructor: function(){
        var me = this;
b4553b19   Myriam Bouchemit   Fix compatibility...
33
34
35
36
37
38
39
	if ((arguments.length > 0) && arguments[0]) {
        	if (!arguments[0]['histo2d-yaxis']) {
            		// Compatibility mode to support old saved requests
            		arguments[0]['histo2d-yaxis'] = amdaDefaultValues.plot.histogram2D.histo2DyAxis;
        	}
	}
	me.callParent(arguments);
6e83f9b9   Erdogan Furkan   Done
40
41
42
43
    },
    
    setDefaultValues: function()
    {
4eb0a428   Benjamin Renard   Set density map a...
44
    	this.set('serie-xaxis-param', '');
b1dc2eb3   Erdogan Furkan   More modifications
45
    	this.set('serie-resampling-mode', amdaDefaultValues.plot.serie.resamplingMode);
3e01c3cc   Erdogan Furkan   11372 - Done
46
		this.set('histo2d-yaxis', amdaDefaultValues.plot.histogram2D.histo2DyAxis);
b1dc2eb3   Erdogan Furkan   More modifications
47
		this.set('histo2d-function', amdaDefaultValues.plot.histogram2D.histo2DFunction);
4eb0a428   Benjamin Renard   Set density map a...
48
    	this.set('histotype-param', '');
b1dc2eb3   Erdogan Furkan   More modifications
49
50
51
    	this.set('histo2d-xbinnumber', amdaDefaultValues.plot.histogram2D.xbinnumber);
    	this.set('histo2d-ybinnumber', amdaDefaultValues.plot.histogram2D.ybinnumber);
    	this.set('histo2d-smoothfactor', amdaDefaultValues.plot.histogram2D.smoothfactor)
4eb0a428   Benjamin Renard   Set density map a...
52
53

	this.callParent(arguments);
6e83f9b9   Erdogan Furkan   Done
54
55
56
57
58
59
    },
    
    getJsonValues : function() 
    {
    	var serieValues  = this.callParent(arguments);
    	serieValues['serie-xaxis-param'] = this.get('serie-xaxis-param');
6e83f9b9   Erdogan Furkan   Done
60
    	serieValues['serie-resampling-mode'] = this.get('serie-resampling-mode');
3e01c3cc   Erdogan Furkan   11372 - Done
61
    	serieValues['histo2d-yaxis'] = this.get('histo2d-yaxis');
6e83f9b9   Erdogan Furkan   Done
62
63
64
65
66
67
68
69
    	serieValues['histo2d-function'] = this.get('histo2d-function');
    	serieValues['histotype-param'] = this.get('histotype-param');
      serieValues['histo2d-xbinnumber'] = this.get('histo2d-xbinnumber');
      serieValues['histo2d-ybinnumber'] = this.get('histo2d-ybinnumber');
      serieValues['histo2d-smoothfactor'] = this.get('histo2d-smoothfactor');
    	
    	return serieValues;
    }
4eb0a428   Benjamin Renard   Set density map a...
70
});