Blame view

js/app/models/PlotObjects/PlotHistogram2DSerieObject.js 2.88 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * 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'},
        {name: 'histo2d-xmin', type:'float', useNull:true},
        {name: 'histo2d-xmax', type:'float', useNull:true},
        {name: 'histo2d-ymin', type:'float', useNull:true},
        {name: 'histo2d-ymax', type:'float', useNull:true},
        {name: 'serie-resampling-mode', type: 'string'},
			  {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...
41
42
43
44
45
46
47
48
49
    	this.set('serie-xaxis-param', '');
    	this.set('serie-resampling-mode', amdaPlotObj.PlotObjectConfig.defaultValues.serie.resamplingMode);
	this.set('histo2d-function', 'density');
    	this.set('histotype-param', '');
    	this.set('histo2d-xbinnumber', amdaPlotObj.PlotObjectConfig.defaultValues.histogram2D.xbinnumber);
    	this.set('histo2d-ybinnumber', amdaPlotObj.PlotObjectConfig.defaultValues.histogram2D.ybinnumber);
    	this.set('histo2d-smoothfactor', amdaPlotObj.PlotObjectConfig.defaultValues.histogram2D.smoothfactor)

	this.callParent(arguments);
6e83f9b9   Erdogan Furkan   Done
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
    },
    
    getJsonValues : function() 
    {
    	var serieValues  = this.callParent(arguments);
    	serieValues['serie-xaxis-param'] = this.get('serie-xaxis-param');
    	serieValues['histo2d-xmin'] = this.get('histo2d-xmin');
    	serieValues['histo2d-xmax'] = this.get('histo2d-xmax');
    	serieValues['histo2d-ymin'] = this.get('histo2d-ymin');
    	serieValues['histo2d-ymax'] = this.get('histo2d-ymax');
    	serieValues['serie-resampling-mode'] = this.get('serie-resampling-mode');
    	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...
69
});