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
-
Constructor Summary
ConstructorDescriptionEmpty constructorTLcdSLDChannelSelection
(TLcdDataType aDataType) Empty constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptChannelType
(String aChannelType) Checks whether channel type is acceptable when it is being set.Returns the value of the property that maps to theBlueChannel
element.Returns the value of the property that maps to theGrayChannel
element.Returns the value of the property that maps to theGreenChannel
element.Returns the value of the property that maps to theRedChannel
element.getSelectedChannel
(String aChannelType) Gets theTLcdSLDSelectedChannel
for a given channel type.void
setBlueChannel
(TLcdSLDSelectedChannel aValue) Sets the value of the property that maps to theBlueChannel
element.void
setGrayChannel
(TLcdSLDSelectedChannel aValue) Sets the value of the property that maps to theGrayChannel
element.void
Sets the value of the property that maps to theGreenChannel
element.void
setRedChannel
(TLcdSLDSelectedChannel aValue) Sets the value of the property that maps to theRedChannel
element.void
setSelectedChannel
(String aChannelType, TLcdSLDSelectedChannel aSelectedChannel) Sets aTLcdSLDSelectedChannel
to 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 aTLcdSLDSelectedChannel
to 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_CHANNEL
andGRAY_CHANNEL
are supported.aSelectedChannel
- the channel to select as grey, red, green or blue channel.- See Also:
-
getSelectedChannel
Gets theTLcdSLDSelectedChannel
for a given channel type.- Parameters:
aChannelType
- the channel type. By default onlyRED_CHANNEL
,GREEN_CHANNEL
,BLUE_CHANNEL
andGRAY_CHANNEL
are supported.- Returns:
- an TLcdSLDSelectedChannel, or
null
whenaChannelType
is 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 theRedChannel
element.- Returns:
- the value of the
RED_CHANNEL_PROPERTY
property.
-
setRedChannel
Sets the value of the property that maps to theRedChannel
element.- Parameters:
aValue
- the value to set for theRED_CHANNEL_PROPERTY
property.
-
getGreenChannel
Returns the value of the property that maps to theGreenChannel
element.- Returns:
- the value of the
GREEN_CHANNEL_PROPERTY
property.
-
setGreenChannel
Sets the value of the property that maps to theGreenChannel
element.- Parameters:
aValue
- the value to set for theGREEN_CHANNEL_PROPERTY
property.
-
getBlueChannel
Returns the value of the property that maps to theBlueChannel
element.- Returns:
- the value of the
BLUE_CHANNEL_PROPERTY
property.
-
setBlueChannel
Sets the value of the property that maps to theBlueChannel
element.- Parameters:
aValue
- the value to set for theBLUE_CHANNEL_PROPERTY
property.
-
getGrayChannel
Returns the value of the property that maps to theGrayChannel
element.- Returns:
- the value of the
GRAY_CHANNEL_PROPERTY
property.
-
setGrayChannel
Sets the value of the property that maps to theGrayChannel
element.- Parameters:
aValue
- the value to set for theGRAY_CHANNEL_PROPERTY
property.
-