Revision 2178 org.gvsig.raster.multifile/trunk/org.gvsig.raster.multifile/org.gvsig.raster.multifile.app.multifileclient/src/main/java/org/gvsig/raster/multifile/app/panel/BandSelectorPropertiesListener.java
BandSelectorPropertiesListener.java | ||
---|---|---|
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
if (e.getSource().equals(bandSetupPanel.getSaveButton())) { |
114 |
int rBand = bandSetupPanel.getAssignedBand(RasterDataStore.RED_BAND);
|
|
115 |
int gBand = bandSetupPanel.getAssignedBand(RasterDataStore.GREEN_BAND);
|
|
116 |
int bBand = bandSetupPanel.getAssignedBand(RasterDataStore.BLUE_BAND);
|
|
117 |
int aBand = bandSetupPanel.getAssignedBand(RasterDataStore.ALPHA_BAND);
|
|
114 |
int rBand = bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.RED_BAND);
|
|
115 |
int gBand = bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.GREEN_BAND);
|
|
116 |
int bBand = bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.BLUE_BAND);
|
|
117 |
int aBand = bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.ALPHA_BAND);
|
|
118 | 118 |
|
119 | 119 |
if (!isCorrectAssignedBand(rBand, gBand, bBand, aBand)) { |
120 | 120 |
RasterSwingLibrary.messageBoxError(Messages.getText("combinacion_no_asignable"), bandSetupPanel); |
... | ... | |
303 | 303 |
|
304 | 304 |
public void setNewBandsPositionInRendering() { |
305 | 305 |
if (fLayer != null && fLayer.getRender() != null) { |
306 |
fLayer.getRender().setRenderBands(new int[]{bandSetupPanel.getAssignedBand(RasterDataStore.RED_BAND),
|
|
307 |
bandSetupPanel.getAssignedBand(RasterDataStore.GREEN_BAND),
|
|
308 |
bandSetupPanel.getAssignedBand(RasterDataStore.BLUE_BAND)});
|
|
309 |
int alphaBand = bandSetupPanel.getAssignedBand(RasterDataStore.ALPHA_BAND);
|
|
306 |
fLayer.getRender().setRenderBands(new int[]{bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.RED_BAND),
|
|
307 |
bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.GREEN_BAND),
|
|
308 |
bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.BLUE_BAND)});
|
|
309 |
int alphaBand = bandSetupPanel.getColorInterpretationByColorBandBand(RasterDataStore.ALPHA_BAND);
|
|
310 | 310 |
// Ultima transparencia aplicada en el renderizador |
311 | 311 |
Transparency gt = fLayer.getRender().getLastTransparency(); |
312 | 312 |
if(gt != null) |
Also available in: Unified diff