Blame view

js/app/models/PlotObjects/PlotHistogram2DSerieObject.js 2.55 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
33
34
35
36
37
			  {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;
        me.callParent(arguments);
    },
    
    setDefaultValues: function()
    {
4eb0a428   Benjamin Renard   Set density map a...
38
    	this.set('serie-xaxis-param', '');
b1dc2eb3   Erdogan Furkan   More modifications
39
    	this.set('serie-resampling-mode', amdaDefaultValues.plot.serie.resamplingMode);
3e01c3cc   Erdogan Furkan   11372 - Done
40
		this.set('histo2d-yaxis', amdaDefaultValues.plot.histogram2D.histo2DyAxis);
b1dc2eb3   Erdogan Furkan   More modifications
41
		this.set('histo2d-function', amdaDefaultValues.plot.histogram2D.histo2DFunction);
4eb0a428   Benjamin Renard   Set density map a...
42
    	this.set('histotype-param', '');
b1dc2eb3   Erdogan Furkan   More modifications
43
44
45
    	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...
46
47

	this.callParent(arguments);
6e83f9b9   Erdogan Furkan   Done
48
49
50
51
52
53
    },
    
    getJsonValues : function() 
    {
    	var serieValues  = this.callParent(arguments);
    	serieValues['serie-xaxis-param'] = this.get('serie-xaxis-param');
6e83f9b9   Erdogan Furkan   Done
54
    	serieValues['serie-resampling-mode'] = this.get('serie-resampling-mode');
3e01c3cc   Erdogan Furkan   11372 - Done
55
    	serieValues['histo2d-yaxis'] = this.get('histo2d-yaxis');
6e83f9b9   Erdogan Furkan   Done
56
57
58
59
60
61
62
63
    	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...
64
});