Blame view

js/app/views/PlotComponents/PlotSpectroForm.js 2.36 KB
17433635   Benjamin Renard   Add series and sp...
1
2
3
4
/**
 * Project   : AMDA-NG
 * Name      : PlotSpectroForm.js
 * @class   amdaPlotComp.PlotSpectroForm
a0bf9157   Benjamin Renard   Add tick plot and...
5
 * @extends amdaPlotComp.PlotStandardForm
17433635   Benjamin Renard   Add series and sp...
6
7
8
9
10
11
12
13
14
15
16
17
18
 * @brief   Form to define specifics spectro options
 * @author  Benjamin Renard
 * @version $Id: PlotSpectroForm.js benjamin $
 */

Ext.define('amdaPlotComp.PlotSpectroForm', {
	extend: 'amdaPlotComp.PlotStandardForm',
	
	setObject : function(object) {
		this.object = object.get('param-drawing-object');
		this.loadRecord(this.object);
	},
	
df008372   Benjamin Renard   Min/max value def...
19
20
	getValuesRangeItems: function() {
		return [
9b3f49e3   Elena.Budnik   info bulls Plot r...
21
22
					this.addStandardFloat2('spectro-value-min', 'Min value', -Number.MAX_VALUE, Number.MAX_VALUE, true),
					this.addStandardFloat2('spectro-value-max', 'Max value', -Number.MAX_VALUE, Number.MAX_VALUE, true)
df008372   Benjamin Renard   Min/max value def...
23
24
		];
	},
e3b40909   Hacene SI HADJ MOHAND   spectro ihm et pa...
25
26
27
28
29
                    getFilteringItems: function(){
                               return[
                                 this.addStandardCombo('filtering-level', 'Level', amdaPlotObj.PlotObjectConfig.availableFilteringLevel)
                               ];
                    },
df008372   Benjamin Renard   Min/max value def...
30
	
17433635   Benjamin Renard   Add series and sp...
31
	getFormItems: function() {
dbb7bcbe   Benjamin Renard   Add curves defint...
32
		var me = this;
17433635   Benjamin Renard   Add series and sp...
33
		return [
828dd660   Benjamin Renard   Give the possibil...
34
35
36
			this.addStandardCombo('spectro-resolution', 'Points per plot', amdaPlotObj.PlotObjectConfig.availableResolutions, function(name, value, oldValue) {
                        	me.object.set('spectro-resolution', value);
                    	}),
9b3f49e3   Elena.Budnik   info bulls Plot r...
37
38
39
40
41
42
43
44
			this.addStandardCombo('spectro-yaxis', 'Y axis', amdaPlotObj.PlotObjectConfig.availableYAxes, function(name, value, oldValue) {
				me.object.set('spectro-yaxis', value);
				me.crtTree.refresh();
			}),
			myDesktopApp.addAmdaInfo('MinMaxThreshold','vertical-align:bottom'),
			this.addStandardFieldSet('Min/Max thresholds', '', this.getValuesRangeItems()),
			this.addStandardCheck('spectro-log0-as-min', 'Show 0 values as Min Values in log scale', function(name, value, oldValue) {
				me.object.set('spectro-log0-as-min', value);
4c89e876   Hacene SI HADJ MOHAND   ihn normalization ok
45
			}),
0dbe3844   Hacene SI HADJ MOHAND   merge with remote
46
                        this.addStandardCombo('spectro-normalization', 'Normalization', amdaPlotObj.PlotObjectConfig.availableSpectroNormalization, function(name, value, oldValue) {
4c89e876   Hacene SI HADJ MOHAND   ihn normalization ok
47
48
49
50
		    	if (me.object.get('spectro-normalization') != value)
		    	{
		    		me.object.set('spectro-normalization', value);
		    	}
e3b40909   Hacene SI HADJ MOHAND   spectro ihm et pa...
51
                                                            }),
0dbe3844   Hacene SI HADJ MOHAND   merge with remote
52
                        this.addStandardFieldSet('Spike Filtering ( ! Experimental ! )', 'filtering-activated', this.getFilteringItems())
17433635   Benjamin Renard   Add series and sp...
53
54
		];
	}
afb7b464   Benjamin Renard   Fix decimal preci...
55
});