Package com.luciad.format.raster
Interface ILcdRasterPainter
- All Superinterfaces:
Cloneable
,ILcdCloneable
,ILcdGXYPainter
,ILcdPropertyChangeSource
,Serializable
- All Known Implementing Classes:
ALcdRasterPainter
,TLcdAllInMemoryRasterPainter
,TLcdHypsometricMultilevelRasterPainter
,TLcdHypsometricRasterPainter
,TLcdMultilevelRasterPainter
,TLcdNoWarpMultilevelRasterPainter
,TLcdNoWarpRasterPainter
,TLcdRasterPainter
,TLcdShadedMultilevelRasterPainter
,TLcdShadedRasterPainter
,TLcdWarpMultilevelRasterPainter
,TLcdWarpRasterPainter
An
ILcdRasterPainter
provides additional common methods
over ILcdGXYPainter
, that are typically useful for painting
rasters.-
Field Summary
Fields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
-
Method Summary
Modifier and TypeMethodDescriptionfloat
int
Deprecated.int
double
double
float
boolean
boolean
void
setBrightness
(float aBrightness) Sets the brightness that is applied to painted rasters.void
setColorModel
(ColorModel aColorModel) Sets the ColorModel that determines how a raster pixel is transformed into color components for a screen pixel.void
setForcePainting
(boolean aForcePainting) Specifies whether the visible portion of the raster should always be painted, irrespective of the startResolutionFactor and stopResolutionFactor.void
setMaxNoOfOutlineTiles
(int aMaxNumberOfOutlineTiles) Deprecated.void
setMaxNumberOfOutlineTiles
(int aMaxNumberOfOutlineTiles) Sets the maximum number of outlines of individual tiles to paint when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor.void
setOutlineColor
(Color aColor) Sets the line color used to paint the raster outlines and tile outlines when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor.void
setPaintOutline
(boolean aPaintOutline) Specifies whether the raster outlines and tile outlines should be painted when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor.void
setStartResolutionFactor
(double aFactor) Sets the highest pixel density (number of raster pixels per screen pixel) at which a raster is painted.void
setStopResolutionFactor
(double aFactor) Sets the lowest pixel density (number of raster pixels per screen pixel) at which a raster is painted.void
setTransparency
(float aTransparency) Sets the transparency factor that is applied to painted rasters.Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
anchorPointSFCT, boundsSFCT, getCursor, getDisplayName, getObject, isTouched, paint, setObject, snapTarget, supportSnap
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Method Details
-
setStartResolutionFactor
void setStartResolutionFactor(double aFactor) Sets the highest pixel density (number of raster pixels per screen pixel) at which a raster is painted. If the pixel density is too high, only the raster outlines and tile outlines are painted (or a lower resolution level is chosen). This can avoid having to load a large raster to fill a relatively small view. -
getStartResolutionFactor
double getStartResolutionFactor()- See Also:
-
setStopResolutionFactor
void setStopResolutionFactor(double aFactor) Sets the lowest pixel density (number of raster pixels per screen pixel) at which a raster is painted. If the pixel density is too low, nothing is painted. This can avoid painting overly pixelated rasters. -
getStopResolutionFactor
double getStopResolutionFactor()- See Also:
-
setForcePainting
void setForcePainting(boolean aForcePainting) Specifies whether the visible portion of the raster should always be painted, irrespective of the startResolutionFactor and stopResolutionFactor.- See Also:
-
isForcePainting
boolean isForcePainting()- See Also:
-
setPaintOutline
void setPaintOutline(boolean aPaintOutline) Specifies whether the raster outlines and tile outlines should be painted when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor.- See Also:
-
isPaintOutline
boolean isPaintOutline()- See Also:
-
setOutlineColor
Sets the line color used to paint the raster outlines and tile outlines when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor.- See Also:
-
getOutlineColor
Color getOutlineColor()- See Also:
-
setMaxNumberOfOutlineTiles
void setMaxNumberOfOutlineTiles(int aMaxNumberOfOutlineTiles) Sets the maximum number of outlines of individual tiles to paint when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor. If the number of tiles is larger than this maximum, only the global outline of the raster is painted.- See Also:
-
getMaxNumberOfOutlineTiles
int getMaxNumberOfOutlineTiles()- See Also:
-
setMaxNoOfOutlineTiles
void setMaxNoOfOutlineTiles(int aMaxNumberOfOutlineTiles) Deprecated. -
getMaxNoOfOutlineTiles
int getMaxNoOfOutlineTiles()Deprecated. -
setColorModel
Sets the ColorModel that determines how a raster pixel is transformed into color components for a screen pixel. If it is not set, the raster itself determines the ColorModel. If that is not set either, the contained raster tiles determine the ColorModel. -
getColorModel
ColorModel getColorModel()- See Also:
-
setBrightness
void setBrightness(float aBrightness) Sets the brightness that is applied to painted rasters. It is a value in[0, 2]
. A value of 1 (the default) leaves the brightness unchanged. Values larger than 1 makes the colors brighter, while a value smaller than 1 makes the colors less bright.- See Also:
-
getBrightness
float getBrightness()- See Also:
-
setTransparency
void setTransparency(float aTransparency) Sets the transparency factor that is applied to painted rasters. It is an alpha value between 0 and 1, with 0 being perfectly transparent, and 1 (the default) being perfectly opaque. -
getTransparency
float getTransparency()- See Also:
-
.getMaxNumberOfOutlineTiles()