org.deegree.style.styling
Class RasterChannelSelection

java.lang.Object
  extended by org.deegree.style.styling.RasterChannelSelection
All Implemented Interfaces:
Copyable<RasterChannelSelection>

public class RasterChannelSelection
extends Object
implements Copyable<RasterChannelSelection>

ChannelSelection TODO: move the evaluation code somewhere else

Version:
$Revision: 22327 $, $Date: 2010-02-02 09:32:51 +0100 (Tue, 02 Feb 2010) $
Author:
Andrei Aiordachioaie, last edited by: $Author: aschmitz $

Nested Class Summary
static class RasterChannelSelection.ChannelSelectionMode
          ChannelSelectionMode
 
Field Summary
 HashMap<String,RasterStyling.ContrastEnhancement> channelContrastEnhancements
          Contrast Enhancements for all channels.
 
Constructor Summary
RasterChannelSelection(String redChannel, String greenChannel, String blueChannel, String grayChannel, HashMap<String,RasterStyling.ContrastEnhancement> enhancements)
           
 
Method Summary
 RasterChannelSelection copy()
           
 int[] evaluate(BandType[] bands)
          Compute the indexes of selected channel for a particular raster (given its channels)
 RasterChannelSelection.ChannelSelectionMode getMode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channelContrastEnhancements

public HashMap<String,RasterStyling.ContrastEnhancement> channelContrastEnhancements
Contrast Enhancements for all channels.

Constructor Detail

RasterChannelSelection

public RasterChannelSelection(String redChannel,
                              String greenChannel,
                              String blueChannel,
                              String grayChannel,
                              HashMap<String,RasterStyling.ContrastEnhancement> enhancements)
Parameters:
redChannel -
greenChannel -
blueChannel -
grayChannel -
enhancements -
Method Detail

copy

public RasterChannelSelection copy()
Specified by:
copy in interface Copyable<RasterChannelSelection>
Returns:
the copied object

evaluate

public int[] evaluate(BandType[] bands)
Compute the indexes of selected channel for a particular raster (given its channels)

Parameters:
bands - array of information about each band
Returns:
index information for all bands

getMode

public RasterChannelSelection.ChannelSelectionMode getMode()
Returns:
the mode of selection


Copyright © 2011. All Rights Reserved.