Revision 4389

View differences:

trunk/extensions/extWCS/src/com/iver/cit/gvsig/gui/panels/PropertiesWCSDialog.java
148 148
	 * 
149 149
	 * @param app
150 150
	 */
151
	public PropertiesWCSDialog(FLyrWCS layer, int[][] rangeR, int[][] rangeG, int[][] rangeB){
151
	public PropertiesWCSDialog(FLyrWCS layer, ArrayList ranges){
152 152
		super();
153 153
		fLayer = layer;
154 154
		this.px = layer.getPxRaster();
......
159 159
		}else
160 160
			rasterStatus = (StatusLayerRaster)fLayer.getStatus();
161 161
		initialize();
162
		this.setRanges(rangeR, rangeG, rangeB);
162
		this.setRanges(ranges);
163 163
		FilterRasterDialogPanel fr = ((FilterRasterDialogPanel)this.getContentPane());
164 164
		fr.getBandSetup().getFileList().getJButtonAdd().setEnabled(false);
165 165
		fr.getBandSetup().getFileList().getJButtonRemove().setEnabled(false);
......
177 177
		
178 178
		RasterTransparencyPanel tpan = this.getTransparencyPanel();
179 179
		
180
		tpan.lGreenValue.setText(PluginServices.getText(this,"Valor_verde"));
181
		tpan.lRedValue.setText(PluginServices.getText(this,"Valor_rojo"));
182
		tpan.lBlueValue.setText(PluginServices.getText(this,"Valor_azul"));
183 180
		tpan.getTransparencyCheck().setText(PluginServices.getText(this,"transparencia"));
184 181
		tpan.getOpacityCheck().setText(PluginServices.getText(this,"opacidad"));
185
		tpan.lRange.setText(PluginServices.getText(this,"usar_rango"));
186
		tpan.lPixelValue.setText(PluginServices.getText(this,"valor_pixel")+": 0 a 255");
187
		
182
				
188 183
		EnhancedPanel ep = this.getEnhancedPanel();
189 184
		ep.lLineal.setText(PluginServices.getText(this,"lineal_directo"));
190 185
		ep.lQueue.setText(PluginServices.getText(this,"recorte_colas"));
......
277 272
	 */
278 273
	public void addNumBands(int numBands){
279 274
		nbands += numBands;
280
		if(this.getTransparencyPanel() != null && this.getTransparencyPanel().getTRojo().isEnabled())
281
			this.getTransparencyPanel().setActiveTransparencyControl(true); 
275
		/*if(this.getTransparencyPanel() != null && this.getTransparencyPanel().getTRojo().isEnabled())
276
			this.getTransparencyPanel().setActiveTransparencyControl(true);*/ 
282 277
	}
283 278
	
284 279
	/**
......
438 433
				
439 434
		//TRANSPARENCIA
440 435
		if(	this.getTransparencyPanel().getTransparencyCheck().isSelected()){
441
			this.checkTransparencyValues();
442
			stackManager.addTransparencyFilter(	this.getRangeRed(),
443
													this.getRangeGreen(),
444
													this.getRangeBlue(),
436
			stackManager.addTransparencyFilter(	getTransparencyPanel().getPTranspByPixel().getEntries(),
445 437
													0x10,	//Transparencia
446 438
													0xff,	//Color Transparencia R
447 439
													0xff,	//Color Transparencia G
448 440
													0xff);	//Color Transparencia B
441
													
449 442
		}else
450 443
			px.filterStack.removeFilter(stackManager.getTypeFilter("transparency"));
451 444
			
trunk/extensions/extWCS/src/com/iver/cit/gvsig/gui/toc/WCSPropsRaster.java
97 97

  
98 98
			stackManager = new RasterFilterStackManager(layer.getFilterStack());
99 99
			
100
			int[][] rangeR = stackManager.getTransparecyR();
101
			int[][] rangeG = stackManager.getTransparecyG();
102
			int[][] rangeB = stackManager.getTransparecyB();
103
			
104
			propsDialog = new PropertiesWCSDialog(layer, rangeR, rangeG, rangeB);
100
			propsDialog = new PropertiesWCSDialog(layer, stackManager.getTransparencyRGB());
105 101
		       			
106 102
			int alpha = layer.getPxRaster().getAlpha();
107 103
			

Also available in: Unified diff