Package com.luciad.ogc.sld.model
Class TLcdSLDChannelSelection
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.sld.model.TLcdSLDChannelSelection
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
The ChannelSelection element specifies the false-color channel selection for a
multi-spectral raster source (such as a multi-band satellite-imagery source).
E.g. [RedChannel,GreenChannel,BlueChannel]; [GrayChannel]
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorTLcdSLDChannelSelection(TLcdDataType aDataType) Empty constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptChannelType(String aChannelType) Checks whether channel type is acceptable when it is being set.Returns the value of the property that maps to theBlueChannelelement.Returns the value of the property that maps to theGrayChannelelement.Returns the value of the property that maps to theGreenChannelelement.Returns the value of the property that maps to theRedChannelelement.getSelectedChannel(String aChannelType) Gets theTLcdSLDSelectedChannelfor a given channel type.voidsetBlueChannel(TLcdSLDSelectedChannel aValue) Sets the value of the property that maps to theBlueChannelelement.voidsetGrayChannel(TLcdSLDSelectedChannel aValue) Sets the value of the property that maps to theGrayChannelelement.voidSets the value of the property that maps to theGreenChannelelement.voidsetRedChannel(TLcdSLDSelectedChannel aValue) Sets the value of the property that maps to theRedChannelelement.voidsetSelectedChannel(String aChannelType, TLcdSLDSelectedChannel aSelectedChannel) Sets aTLcdSLDSelectedChannelto this channel selection If the GREY channel is selected , the RGB channels are deselected and vice versa.
-
Field Details
-
RED_CHANNEL
Red channel- See Also:
-
GREEN_CHANNEL
Green channel- See Also:
-
BLUE_CHANNEL
Blue channel- See Also:
-
GRAY_CHANNEL
Grey channel- See Also:
-
-
Constructor Details
-
TLcdSLDChannelSelection
Empty constructor -
TLcdSLDChannelSelection
public TLcdSLDChannelSelection()Empty constructor
-
-
Method Details
-
setSelectedChannel
Sets aTLcdSLDSelectedChannelto this channel selection If the GREY channel is selected , the RGB channels are deselected and vice versa.- Parameters:
aChannelType- the channel type to set. By default onlyRED_CHANNEL,GREEN_CHANNEL,BLUE_CHANNELandGRAY_CHANNELare supported.aSelectedChannel- the channel to select as grey, red, green or blue channel.- See Also:
-
getSelectedChannel
Gets theTLcdSLDSelectedChannelfor a given channel type.- Parameters:
aChannelType- the channel type. By default onlyRED_CHANNEL,GREEN_CHANNEL,BLUE_CHANNELandGRAY_CHANNELare supported.- Returns:
- an TLcdSLDSelectedChannel, or
nullwhenaChannelTypeis not supported. - See Also:
-
acceptChannelType
Checks whether channel type is acceptable when it is being set. If not it will not be set.- Parameters:
aChannelType- the channel type that would be set.- Returns:
- true if aChannelType is one of the following GRAY_CHANNEL, RED_CHANNEL, GREEN_CHANNEL, BLUE_CHANNEL.
-
getRedChannel
Returns the value of the property that maps to theRedChannelelement.- Returns:
- the value of the
RED_CHANNEL_PROPERTYproperty.
-
setRedChannel
Sets the value of the property that maps to theRedChannelelement.- Parameters:
aValue- the value to set for theRED_CHANNEL_PROPERTYproperty.
-
getGreenChannel
Returns the value of the property that maps to theGreenChannelelement.- Returns:
- the value of the
GREEN_CHANNEL_PROPERTYproperty.
-
setGreenChannel
Sets the value of the property that maps to theGreenChannelelement.- Parameters:
aValue- the value to set for theGREEN_CHANNEL_PROPERTYproperty.
-
getBlueChannel
Returns the value of the property that maps to theBlueChannelelement.- Returns:
- the value of the
BLUE_CHANNEL_PROPERTYproperty.
-
setBlueChannel
Sets the value of the property that maps to theBlueChannelelement.- Parameters:
aValue- the value to set for theBLUE_CHANNEL_PROPERTYproperty.
-
getGrayChannel
Returns the value of the property that maps to theGrayChannelelement.- Returns:
- the value of the
GRAY_CHANNEL_PROPERTYproperty.
-
setGrayChannel
Sets the value of the property that maps to theGrayChannelelement.- Parameters:
aValue- the value to set for theGRAY_CHANNEL_PROPERTYproperty.
-