PlotSpectroForm.js
2.42 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Project : AMDA-NG
* Name : PlotSpectroForm.js
* @class amdaPlotComp.PlotSpectroForm
* @extends amdaPlotComp.PlotStandardForm
* @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);
},
getValuesRangeItems: function() {
return [
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)
];
},
getFilteringItems: function(){
return[
this.addStandardCombo('filtering-level', 'Level', amdaPlotObj.PlotObjectConfig.availableFilteringLevel)
];
},
getFormItems: function() {
var me = this;
return [
this.addStandardCombo('spectro-resolution', 'Points per plot', amdaPlotObj.PlotObjectConfig.availableResolutions, function(name, value, oldValue) {
me.object.set('spectro-resolution', value);
}),
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);
}),
this.addStandardCombo('spectro-normalization', 'Normalization', amdaPlotObj.PlotObjectConfig.availableSpectroNormalization, function(name, value, oldValue) {
if (me.object.get('spectro-normalization') != value)
{
me.object.set('spectro-normalization', value);
}
}),
this.addStandardFieldSet('Filtering ( ! Experimental ! )', 'filtering-activated', this.getFilteringItems())
];
}
});