User Tools

Site Tools


api:dk11:delphi:gislayerpixel.tgis_layerpixel

TGIS_LayerPixel class

DK11 for Delphi | GisLayerPixel.TGIS_LayerPixel | Classes | Constructors | Fields | Methods | Properties | Events

Encapsulation of a common image layer - abstract class.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
type
  TGIS_LayerPixel = class( TGIS_Layer )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_LayerPixel : public TGIS_Layer
{
};

Inheritance

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Create a layer with default parameters.
(Overrides TGIS_Layer.Create)

Fields

Inherited Protected
Name Visibility Description
activeTransform protected True when Transform is assigned with Active flag set on True.
alphaAssociated protected Image with associated alpha data.
alphaBuffer protected Alpha data buffer.
altitudeZones protected Table with altitude zones
bandsDefinition protected Band definition.
bandsMap protected Numbers of bands using as red, green, blue and alpha
baseCellHeight protected To restore CellHeight after transformation.
baseCellWidth protected To restore CellWidth after transformation.
baseProjectedExtent protected Helper for rotations.
baseRotation protected Rotation from World file
bigEndian protected Byte order from most significant to least significant.
bitPalette protected Bitmap palette (must follow infoHeader).
bitsPerBand protected Bits per pixel for each band
bitsPerPixel protected Total bits count per pixel (for uncompressed data)
bitsSkipLeft protected Bits to skio on lfet for each band
bitsSkipRight protected Bits to skio on right for each band
blueTransp protected List of transparent colors in Blue channel.
bytesPerBand protected Bytes per pixel for each band
bytesPerPixel protected Summury number bytes per pixel for all bands
cntrRotFactX protected Auxiliary x factor
cntrRotFactY protected Auxiliary y factor
cntrRotX protected Center of rotation x
cntrRotY protected Center of rotation y
colorNoData protected Color used for not defined data.
colorsNo protected Number of colors in palette
corFullRGB protected Full RGB color mapping.
corRGB protected Color correction.
defaultPartialTransparent protected Default using of alpha band.
dstGrid protected Manipulated grid data
extZoom protected Used for importing grid (with association to setFileScale).
extZoomX protected Used for importing grid (with association to setFileScaleXY).
extZoomY protected Used for importing grid (with association to setFileScaleXY).
FActive protected Is layer active?
(Inherited from TGIS_Layer)
FAddition protected Addition value.
(Inherited from TGIS_Layer)
FAge protected Age of the layer.
(Inherited from TGIS_Layer)
FAntialias protected Antialias scaling (for some layers only like PNG and JPG)
FAntialiasFilter protected Scaling filter (like Linear, Lanczos) to be used for scaling images and grids.
FBandsCount protected Number of bands in file.
FBasemap protected True, if layer will be interpreted as basemap.
(Inherited from TGIS_Layer)
FBitHeight protected Height of a layer in pixels.
FBitmapFormat protected Actual bitmap format - ARGB available now .
FBitmapLinesOrder protected Actual lines order - Down available now.
FBitWidth protected Width of a layer in pixels.
FCachedPaint protected False, if layer must be painted directly (bypassing cache).
(Inherited from TGIS_Layer)
FCapabilities protected List of available image format in this layer (assigned with name extension).
FCaption protected Layer caption.
(Inherited from TGIS_Layer)
FCellHeight protected Height of a cell in pixels.
FCellWidth protected Width of a cell in pixels.
FCodePage protected Code Page in which text has been stored.
(Inherited from TGIS_Layer)
FCodePageForced protected Code Page forced by project file or property setting.
(Inherited from TGIS_Layer)
FCollapsed protected Is layer collapsed?
(Inherited from TGIS_Layer)
FComments protected Additional comments.
(Inherited from TGIS_Layer)
FConfigFile protected Configuration file handle.
(Inherited from TGIS_Layer)
FConfigFile2 protected Configuration file handle.
(Inherited from TGIS_Layer)
FConfigName protected Configuration file name.
(Inherited from TGIS_Layer)
FCS protected Projection object.
(Inherited from TGIS_Layer)
FCurrentPage protected Current page i image file (TIF).
FCustomData protected List of custom data.
(Inherited from TGIS_Layer)
FCuttingPolygon protected Cutting polygon
FDormantMode protected Dormant mode for the layer.
(Inherited from TGIS_Layer)
FDriver protected Layer driver.
(Inherited from TGIS_Layer)
FExtent protected Layer extent.
(Inherited from TGIS_Layer)
FExtent3D protected Layer extent 3D.
(Inherited from TGIS_Layer)
FFileCopyright protected Additional textual information about layer copyright.
(Inherited from TGIS_Layer)
FFileInfo protected Additional textual information about the layer such compression, number of pixels, copyright etc.
(Inherited from TGIS_Layer)
FForcedBandsDefinition protected Forced BandsDefinition.
FGridBand protected Band number in file used as grid band.
FGridOperation protected Grid operation event handle.
FHideFromLegend protected True, if layer should not be visible in a legend.
(Inherited from TGIS_Layer)
fileStream protected Bitmap file stream.
FIsContrastEnhanced protected True, if image has automatically enhanced contrast.
FIsGridImage protected True, if image is grid type.
FIsLocked protected True, if layer is in locked state Lock.
(Inherited from TGIS_Layer)
FIsModified protected True, if structure (field, geometry etc).
(Inherited from TGIS_Layer)
FIsNativeGridImage protected True, if image is really grid type.
FIsOpened protected True, if layer was opened.
(Inherited from TGIS_Layer)
FIsPrepared protected True, if layer was opened.
(Inherited from TGIS_Layer)
FIsReadOnly protected Read only flag.
(Inherited from TGIS_Layer)
FIsTiled protected True, if layer is tiled.
FMaxThresholdZ protected Maximum threshold of the grid elevation value to display.
FMaxTileSize protected Maximum allowed tile size for the layer.
(Inherited from TGIS_Layer)
FMaxZ protected Maximum elevation value in grid file.
FMinThresholdZ protected Minimum threshold of the grid elevation value to display.
FMinZ protected Minimum elevation value in grid file.
FMultiUserMode protected Multiuser mode.
(Inherited from TGIS_Layer)
FName protected Layer name.
(Inherited from TGIS_Layer)
FNoDataValue protected Value in the grid file assigned to cells whose value in unknown
FOnBusy protected Busy event.
(Inherited from TGIS_Layer)
FOnPaintLayer protected PaintLayer event.
(Inherited from TGIS_Layer)
FOnPassword protected Will be fired upon opening layer to resolve any username/password
(Inherited from TGIS_Layer)
FOnRead protected Will be fired upon each file Read request.
(Inherited from TGIS_Layer)
FOnWrite protected Will be fired upon each file Write request.
(Inherited from TGIS_Layer)
forceCachedMode protected Set tor True to force cached (bitmap) type of drawing.
(Inherited from TGIS_Layer)
FPagesCount protected Number of pages in an image file (TIF).
FParams protected Selected parameters set.
(Inherited from TGIS_Layer)
FParamsList protected List of parameters set (sections).
(Inherited from TGIS_Layer)
FParentLayer protected Parent layer.
(Inherited from TGIS_Layer)
FPath protected Layer path.
(Inherited from TGIS_Layer)
FPathTAB protected Path to TAB referencing file.
FPixelOperation protected Pixel operation event handle.
FPixelSize protected Size of one image pixel in layer units.
FProgressive protected If true (default) then layer can be drawn as progressive.
FProjectedExtent protected Precalculated projected extent.
(Inherited from TGIS_Layer)
FProjectedExtentBase protected Precalculated projected extent - Base extent (unprojected).
(Inherited from TGIS_Layer)
FProjectedExtentEPSG protected Precalculated projected extent - Layer CS Context.
(Inherited from TGIS_Layer)
FProjectedExtentRotationAngle protected Precalculated projected extent - Rotation context.
(Inherited from TGIS_Layer)
FProjectedExtentRotationPoint protected Precalculated projected extent - Rotation context.
(Inherited from TGIS_Layer)
FProjectedExtentViewerEPSG protected Precalculated projected extent - Viewer CS Context.
(Inherited from TGIS_Layer)
FRenderer protected Handle to a renderer used for drawing shapes.
(Inherited from TGIS_Layer)
FShadowAngle protected Shadow angle used for grid shadowing.
FStatistics protected Statistics engine.
(Inherited from TGIS_Layer)
FStream protected Reference to a potential layer underlying stream.
(Inherited from TGIS_Layer)
FSubFormat protected Current subformat information.
FSubLayers protected Sub layers list.
(Inherited from TGIS_Layer)
FSubType protected Layer Type.
(Inherited from TGIS_Layer)
FTag protected Tag value.
(Inherited from TGIS_Layer)
FTagInternal protected Internal Tag value.
(Inherited from TGIS_Layer)
FTagPointer protected Pointer Tag value
(Inherited from TGIS_Layer)
FTransform protected Custom transformation.
(Inherited from TGIS_Layer)
FTransparency protected Transparency value.
(Inherited from TGIS_Layer)
FUnSupportedOperations protected Set of operations not supported by a layer.
(Inherited from TGIS_Layer)
FUseConfig protected Is config file active?
(Inherited from TGIS_Layer)
FUserObject protected User object.
(Inherited from TGIS_Layer)
FViewer protected Reference to viewer object.
(Inherited from TGIS_Layer)
getLineFunc protected Reading image line (row) function.
greenTransp protected List of transparent colors in Green channel.
gridCol protected To save last grid cell lines values}.
hisBlue protected Histograms for Blue channel.
hisGray protected Histograms for Gray channel..
hisGreen protected Histograms for Green channel.
hisRed protected m Histograms for Red channel.
importMode protected True, if image will be imported; False by default.
inDraw protected True, if layer paint procedure not yet complete.
(Inherited from TGIS_Layer)
internalTransparentColor protected Native transparent color used in some layers
intLineWidth protected Internal line width of layer in bytes.
is48BitsPerPixel protected True, if 48 bits per pixel
isBasicHistogram protected True, if basic histogram exist.
isBGR protected True, if image bands are saved as BGR .
isBitsString protected Image file data as bits string.
isColorMapping protected True if single values are mapped to color values
isColorNoDataGDAL protected No data color is definrd.
isCorFullRGBblue protected Full RGB color mapping -red band.
isCorFullRGBgreen protected Full RGB color mapping -red band.
isCorFullRGBred protected Full RGB color mapping -red band.
isFromNet protected Reading image from net.
isGrayScaleImage protected True, if image is gray scaled.
isHistogram protected True, if histogram exist.
isInverted protected True, if image is inverted.
isPartialTransparent protected True if alpha band is effective used.
isShadow protected Should shadowing be used?
lineAlphaBuffer protected line buffer (line of bytes).
lockedBand protected Number of band locked by function LockPixels.
makeBlueMap protected True, if image must be colorized by blue map; False by default.
makeColorsByVals protected True, if image must be colorized by map; False by default.
makeFullRGBMap protected True, if image must be colorized by full RGB map; False by default.
makeGrayMap protected True, if image must be gray scaled by map; False by default.
makeGreenMap protected True, if image must be colorized by green map; False by default.
makeRedMap protected True, if image must be colorized by red map; False by default.
makeRGBMap protected True, if image must be colorized by map; False by default.
makeSomeCorrection protected If any bitmap pixels changes is needed.
makeTransparent protected True, if image must be transparent; False by default.
mapGray2RGB protected Gray mapping table.
mapRGB protected RGB color mapping.
memoryResident protected Layer created in memory.
modifiedMaxHeight protected MaxHeight is set by user.
modifiedMinHeight protected MinHeight is set by user.
oBand protected Single data lockedBand oflayer when band data are greater than 8-bits.
oBitmap protected ARGB data of generated (built) layer.
oGrid protected Grid data of generated (built) layer.
oLayer protected Layer used for data changing.
one_yRotDivScxRotDivSc protected 1 minus yRotDivSc multiplied by xRotDivSc
outCS protected Output CS used in transformation
paletteCpy protected Copy of bitmap palette
paramsCache protected List of prepared parameters.
(Inherited from TGIS_Layer)
prevShadowDelta protected Last shadow value.
prevShadowValue protected Last shadow value.
realBitCount protected Bits per pixel.
realLineWidth protected Line width of layer in bytes.
redTransp protected List of transparent colors in Red channel.
rgbAsGrid protected True, if pixel image is forced to grid.
scaledHeight protected Used in scaling 2D
scaledWidth protected Used in scaling 2D
scalePixX protected Horizontal scale factor.
scalePixY protected Vertical scale factor.
scaleX protected Horizontal scale factor.
scaleXFactor protected Scale X factor -1 when scaleX in World File is negative otherwise 1
scaleY protected Vertical scale factor.
scaleYFactor protected Scale $ factor -1 when scaleY in World File is positive otherwise 1
scxF_yRotDivScxRotDivSMcsyF protected scaleXFactor minus yRotDivSc multiplied by xRotDivSc and scaleYFactor
scyF_yRotDivScxRotDivSMcsxF protected scaleYFactor minus yRotDivSc multiplied by xRotDivSc and scaleXFactor
sizeShadow protected Approximate pixel size in meters.
srcGrid protected Original layer grid data
strVal protected For grid scaling
swapBW protected True, if white and black are swapped.
testMask protected Used to convert to 24-bit format.
tileRect protected Last tile position in array.
unusedAlpha protected True if unused alpha band
unusedBlue protected True if unused blue band
unusedGreen protected True if unused green band
unusedRed protected True if unused red band
useStrVal protected For grid scaling
View3D public 3D Representation properties.
(Inherited from TGIS_Layer)
wasTransform protected True if transformation was previously set.
wordDivider protected Used for mapping 16-bits band to 8-bits
wordMultiply protected Used for mapping 16-bits band to 8-bits
wordShift protected Used for mapping 16-bits band to 8-bits
workAlpha protected To work on alpha data.
workDestRect protected To save last draw destination parameters.
workSrcRect protected To save last draw source parameters.
xRotDivSc protected rotation about x-axis divided by scaleY
yRotDivSc protected rotation about y-axis divided by scaleY

Methods

Inherited Overrides Protected
Name Visibility Description
addTransparency protected Adding transparency defined in transparen zones to image pixels .
Alive public Makes a layer non-dormant.
(Inherited from TGIS_Layer)
applyColorsCorrectionByVals protected Applaing brightness, contrast and colors correction from pixel params to finalcorrection table.
applyConfigOptions protected Read config option parameters.
(Overrides TGIS_Layer.applyConfigOptions)
applyConfigProjection protected Read config projection parameters.
(Inherited from TGIS_Layer)
ApplyCuttingPolygon public Set cutting polygon for a layer.
(Overrides TGIS_Layer.ApplyCuttingPolygon)
ARGB2Gray protected Gray scale from ARGB bitmap.
AssignedParentLayerInternal public Assign parent layer.
bandsMappingChanging protected Checks bands mapping.
basePointRot protected Compute position of the point after the defined in world file rotation.
basePointUnRot protected Compute original position of the rotated point.
baseRotatedExtent protected Compute extent (encompassing area of the extent) after defined in world file rotation.
baseUnrotatedExtent protected Compute original extent of the rotated extent.
Build(Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Double) public Build an in-memory layer.
Build(Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Integer; Integer) public Build an in-memory layer.
Build(String; Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Double; TGIS_LayerPixelSubFormat) public Build a layer.
Build(String; Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Integer; Integer; TGIS_LayerPixelSubFormat) public Build a layer.
Build(String; TGIS_CSCoordinateSystem; TGIS_Extent; Double) public Build an image layer.
Build(String; TGIS_CSCoordinateSystem; TGIS_Extent; Integer; Integer) public Build an image layer.
ChangeHash public Change hash.
(Inherited from TGIS_Layer)
ClearModified public Set IsModified flag to false for a layer and sublayers.
(Inherited from TGIS_Layer)
convertBitsToPixels protected Internal use only.
Dormant public Makes a layer dormant.
(Inherited from TGIS_Layer)
DormantGain public Calculate approximate gain (in Megabytes) which can be achieved releasing memory by calling Dormant()
(Inherited from TGIS_Layer)
Draw public Draws a layer.
(Inherited from TGIS_Layer)
DrawEx public Draws a layer with given extent.
(Overrides TGIS_Layer.DrawEx)
drawExtent protected Calculates the drawing area /clipping area of device/.
(Inherited from TGIS_Layer)
drawExtentEx protected Calculates the drawing area /clipping area of device/.
(Inherited from TGIS_Layer)
DrawFlash public For compatibility only.
(Overrides TGIS_Layer.DrawFlash)
DrawSelected public Draws a layer.
(Inherited from TGIS_Layer)
DrawSelectedEx public Draws a layer with given extent.
(Inherited from TGIS_Layer)
enhanceContrast protected Enhance contrast by changing RGB values proportionally from 0 to 255.
ExportLayer public Export layer.
finalARGBMap protected Does final ARGB bands mapping and set on/off.
FinalizeWrite public Do any operation required to safely finalize write operation like building quad trees for TGIS_FilePixelStore.
findProperPixelLock protected Checks locked pixels.
ForEachSubLayer public Return in callback event a layer and all sublayers that belong it.
(Inherited from TGIS_Layer)
fullCorrection protected Prepare final mapping table for full color (32-bits) images.
fullRGBCorrection protected Mapping full color (32-bits) images by .
GenerateRamp public Generate grid ramp.
GenerateRampEx public Generate grid ramp from array of color map.
get12BLine protected Internal use only.
get16BLine protected Internal use only.
get1BLine protected Internal use.
get4BLine protected Internal use only.
get8BLine protected Internal use only.
getAlphaLine protected Internal use only.
getAsyncState protected Report data fetching state from asynchronous sources like ECW.
GetAvailableLayers public Get a list of layers available in storage.
(Inherited from TGIS_Layer)
GetBitmap public Fills provided _bitmap array with values defined by _extent.
getBitmapData protected Fills provided _bitmap array with values defined by _extent.
getBitmapPixels protected Gets bitmap layer data in ARGB format.
GetColorRamp public Calculate default color ramp RGB value.
GetGrid public Fills provided _grid array with values defined by _extent.
getGridData protected Fills provided _grid array with values defined by _extent.
getGridDataSup protected Fills provided _grid array with values defined by _extent.
getLine protected Internal use only.
getLineBasic protected Internal use only.
getLineBits protected Internal use only.
getLinePixels protected Internal use only.
getMapZoneVal protected Getting mapping zone from String
getNativeLine protected Internal use only.
getNativeValue protected Internal use only.
GetRawBitmap public Fills provided _bitmap array with values defined by _extent.
gridToARGBTable protected Fills pixels array with ARGB values from source grid table.
histEqPav protected Prepare correction (mapping) table with histogram equalization for full color images.
histRGB2Gray protected Prepare one histogram from RGB channel histograms.
HourglassShake public Notify on hourglass on busy state.
(Inherited from TGIS_Layer)
ImportLayer(TGIS_LayerPixel; TGIS_Extent) public Import layer from an existing layer.
ImportLayer(TGIS_LayerPixel; TGIS_Extent; TGIS_CSCoordinateSystem; Cardinal; Cardinal) public Import layer from an existing layer.
ImportLayer(TGIS_LayerPixel; TGIS_Extent; TGIS_CSCoordinateSystem; Cardinal; Cardinal; TGIS_LayerPixelSubFormat) public Import layer from an existing layer.
importPixelData protected Imports and saves data form pixel layer.
InitializeWrite public Do any operation required to safely initialize write operation like batch operations for TGIS_FilePixelStore.
inversePalette protected Prepare a negative from the RGB palette.
IsGrid public Is layer a grid type.
(Overrides TGIS_Layer.IsGrid)
IsPixel public Is layer a pixel type.
(Overrides TGIS_Layer.IsPixel)
isSublayer protected Gives us information if layer is sublayer.
(Inherited from TGIS_Layer)
IsSupported public Is operation supported by a layer.
(Inherited from TGIS_Layer)
IsVector public Is layer a vector type.
(Inherited from TGIS_Layer)
IsVector3D public Is layer a vector type.
(Inherited from TGIS_Layer)
IsVisible public Check if a layer is visible in given extent and current params.
(Inherited from TGIS_Layer)
lanczos3 protected Lanczos filtering function.
linear protected Linear (triangle) filtering function.
Locate public If given point is located in image area, return true and set variables.
Lock public Lock a layer burst-mode operation.
(Inherited from TGIS_Layer)
LockEstimate public Estimate memory size for raster to update.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Boolean) public Lock fragment of the raster for update.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Double; Boolean) public Lock fragment of the raster for update.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Double; Integer; Boolean) public Lock fragment of the raster for update.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Integer; Boolean) public Lock fragment of the raster for update.
LockPixels(TRect; Boolean) public Lock fragment of the raster for update.
LockPixels(TRect; Integer; Boolean) public Lock fragment of the raster for update.
LockPixels(TRect; TGIS_Extent; Integer; Integer; Integer; Boolean) public Lock fragment of the raster for update.
lockThread protected Lock thread.
(Inherited from TGIS_Layer)
Loop(Double; TGIS_Shape; Boolean) public Prepare enumerator to iterate layer.
Loop(TGIS_Extent; Double; Boolean) public Prepare enumerator to iterate layer.
Loop(TGIS_Extent; Double; Boolean; TGIS_Shape; String; Boolean) public Prepare enumerator to iterate layer.
Loop(TGIS_Extent; Double; TGIS_Shape; String; Boolean) public Prepare enumerator to iterate layer.
makeHistogram protected Read, or make and save, the histogram.
makeLineGrid protected Internal use only.
MapColorValue public Mapping color value to pixel color.
MapGridValue public Mapping grid value to pixel color.
MapToRaster public Convert map coordinates to a raster pixel location
MapToRasterRect public Convert map coordinates to a raster pixel location
MergeLayer public Merge layer to an existing layer.
Move public Move a layer up or down in a viewer zorder list.
(Inherited from TGIS_Layer)
MoveEx public Move a layer up or down in a viewer zorder list.
(Inherited from TGIS_Layer)
MustCalculateStatistics public Verify if all statistics required to properly render layer are available.
(Inherited from TGIS_Layer)
MustReproject public Do layer must reproject.
(Inherited from TGIS_Layer)
MustSave public Check if the layer was modified by editing.
(Overrides TGIS_Layer.MustSave)
Open public Open the layer.
(Inherited from TGIS_Layer)
openBufferedFileStream protected Open a file stream in read mode.
optimizeParamsCache protected Move section specified by _idx to the top of the cached list.
(Inherited from TGIS_Layer)
Paint public Draws a layer or fires PaintLayer event ( if defined ).
(Inherited from TGIS_Layer)
prepAltitudeMapTbl protected Prepare altitude map table.
Prepare public Open the layer.
(Inherited from TGIS_Layer)
prepareParamsCache protected Prepare cached section list meeting the _style name.
(Inherited from TGIS_Layer)
prepColorMapTbl protected Prepare an array (corRGB) for mapping full RGB colors.
prepCorTbl protected Prepare mapping table with no correction for full color images.
prepFinalCorTable protected Prepare final mapping table for full color (32-bits) images.
prepFullGrayTable protected Preparing map table for making a gray scale image from a full color (32-bits) bitmap scan line.
prepFullRGBMapTbl protected Prepare corFullRGB table.
prepGrayMapTbl protected Prepare an array (mapGray2RGB) for mapping gray scale to colors by points (grayMapList).
prepRGBHist protected Prepare histograms for ARGB (32-bits) bitmap scan line.
prepTransparent protected Prepare transparency table.
PreRecognize public Check if layer can read a file.
(Inherited from TGIS_Layer)
Project public Apply a projection on the single point.
(Inherited from TGIS_Layer)
Project3D public Apply a projection on the single point in 3D.
(Inherited from TGIS_Layer)
Project3D_Ref public Apply a projection on the single point in 3D.
(Inherited from TGIS_Layer)
projectExtent protected Project a given extent.
(Inherited from TGIS_Layer)
projectionNeed protected If image reprojection is needed.
Project_Ref public Apply a projection on the single point.
(Inherited from TGIS_Layer)
putBitmapRawData protected Fills provided _bitmap array with values defined by _extent.
PutGrid public Puts _grid array into layer place defined by _extent.
RaiseBusyEvent public Fire Busy event of a layer.
(Inherited from TGIS_Layer)
RaiseBusyPrepare public Fire BusyPrepare method of a viewer.
(Inherited from TGIS_Layer)
RaiseBusyRelease public Fire BusyRelease method of a viewer.
(Inherited from TGIS_Layer)
RaiseBusyShake public Fire BusyShake method of a viewer.
(Inherited from TGIS_Layer)
RasterToMap public Convert raster pixel location to map coordinates
RasterToMapRect public Convert raster pixel location to map coordinates
ReadConfig public Read layer configuration files.
(Inherited from TGIS_Layer)
ReadConfigParam public Read layer configuration parameter.
(Inherited from TGIS_Layer)
readDoubleBE protected Read double (8 bytes) from big endian stored bytes.
readDoubleLE protected Read double (8 bytes) from little endian stored bytes.
ReadGridLine public Reads specific line of the grid into the preallocated buffer.
RecalcExtent public Recalculate extent based on real shapes.
(Inherited from TGIS_Layer)
RecalcProjectedExtent public Recalculate projected extent.
(Overrides TGIS_Layer.RecalcProjectedExtent)
Recalculate public Param Recalculate layer values (like MinZ MaxZ)
ReOpen public Reopen the layer.
(Inherited from TGIS_Layer)
RereadConfig public Reread layer configuration files.
(Inherited from TGIS_Layer)
resetMustReproject protected Reset MustReporoject state.
(Inherited from TGIS_Layer)
resolveBandDefintion protected Resolve bands definition from ForceBandLayout or metadata.
RevertAll public Revert a layer to a original content.
(Overrides TGIS_Layer.RevertAll)
RootLayer public Return absolute parent layer.
(Inherited from TGIS_Layer)
rotationNeed protected If image rotation is needed.
SaveAll public Save layer and destroy mirrored items.
(Inherited from TGIS_Layer)
SaveData public Save the entire layer to the file.
(Overrides TGIS_Layer.SaveData)
ScaleGrid(TGIS_GridArray; TGIS_GridArray; Integer; Integer) public Scales grid array using linear filter by default
ScaleGrid(TGIS_GridArray; TGIS_GridArray; Integer; Integer; TGIS_ScalingFilter) public Scales grid array using
setBitmapPalette protected Set bitmap palette to gray scale image.
setBmpTransparent protected Fills provided _bitmap array with Alpha value = $FF (full transparent).
SetCSByEPSG public Setup Coordinate System to a coordinate system provided by EPSG code.
(Inherited from TGIS_Layer)
SetCSByWKT public Setup Coordinate System to a coordinate system provided by WKT string (GEOGCS or PROJCS).
(Inherited from TGIS_Layer)
SetCSByWKTFile public Setup Coordinate System to a coordinate system provided by file which contains WKT string (GEOGCS or PROJCS).
(Inherited from TGIS_Layer)
SetCurrentFileScale public Sets internal file scales - (1.0, 1.0) is always possible
setFileScale protected Set internal imagery scale.
setFileScaleXY protected Set internal imagery scale.
setFileView protected Set internal imagery view.
setLineFuncAddr protected Finds and sets line reading function.
setMapZone protected Set mapping zone in color map table.
setNoDataTable protected Fills provided _grid array with NoDataValue
setPage protected Sets CurrentPage in multipages image
setUp protected makes a general layer setup
(Overrides TGIS_Layer.setUp)
setUp2 protected Makes a general layer setup second step.
(Inherited from TGIS_Layer)
setUp3 protected Makes a general layer setup third step.
(Inherited from TGIS_Layer)
setUpInternal protected setting up pixel layer parameters
setupParams protected Set up parameters cache.
SetWorld public Setting world parameters (equivalent to worldfile).
setWorldFile protected Set extent based on world file (like .tfw, .bpw) itp.
simpleRGBCorrection protected Mapping red, green, blue colors bands if image.
storeConfigOptions protected Store layer options in a configuration file.
(Overrides TGIS_Layer.storeConfigOptions)
transformExtent protected Custom transformation of the extent.
(Inherited from TGIS_Layer)
transformNeed protected If image transformation is needed.
Unlock public Unlock a layer from burst-mode operation.
(Inherited from TGIS_Layer)
UnlockPixels public Lock fragment.
unlockThread protected Unlock thread.
(Inherited from TGIS_Layer)
Unproject public Apply reverse projection (recover from projection) on the single point.
(Inherited from TGIS_Layer)
Unproject3D public Apply reverse projection (recover from projection) on the single point in 3D.
(Inherited from TGIS_Layer)
Unproject3D_Ref public Apply reverse projection (recover from projection) on the single point in 3D.
(Inherited from TGIS_Layer)
unprojectExtent protected Unproject a given extent.
(Inherited from TGIS_Layer)
Unproject_Ref public Apply reverse projection (recover from projection) on the single point.
(Inherited from TGIS_Layer)
WriteConfig public Write layer configuration files.
(Inherited from TGIS_Layer)

Properties

Inherited Protected
Name Visibility Description
Active public Is the Layer active? Active means that it can be visible, and that an object can be localized on such layers.
(Inherited from TGIS_Layer)
Addition public Addition value.
(Inherited from TGIS_Layer)
Age public Age of the layer.
(Inherited from TGIS_Layer)
Antialias public Antialias scaling (for some layers only like PNG and JPG)
AntialiasFilter public Scaling filter (like Linear, Lanczos) to be used for scaling images and grids.
BandsCount public Number of bands in a file.
Basemap public True, if layer must be interpreted as basemap (for background painting).
(Inherited from TGIS_Layer)
BitHeight public Height of layer in pixels.
BitWidth public Width of layer in pixels.
CachedPaint public False, if layer must be painted directly (bypassing cache).
(Inherited from TGIS_Layer)
Capabilities public Pixel subformats list available for write operation.
Caption public Caption of layer, if not filed directly then will be filed with Name while adding to the Viewer.
(Inherited from TGIS_Layer)
CellHeight public Height of a cell in pixels.
CellWidth public Width of a cell in pixels.
CodePage public Code Page in which text has been stored.
(Inherited from TGIS_Layer)
Collapsed public Is the Layer collapsed? Collapsed means that inside legend only title will be visible.
(Inherited from TGIS_Layer)
Comments public Additional user comments.
(Inherited from TGIS_Layer)
ConfigFile public Configuration file handle.
(Inherited from TGIS_Layer)
ConfigName public Configuration file name.
(Inherited from TGIS_Layer)
ContrastEnhancement public True, if image has automatically enhanced contrast.
CS public Coordinate System assigned to the layer.
(Inherited from TGIS_Layer)
CurrentPage public Current for multipage file.
CustomData public List of custom, user-defined data.
(Inherited from TGIS_Layer)
CuttingPolygon public Cutting polygon that defines input image valid area.
DefaultSubFormat public Default subformat information.
DirectMode public Return True, if the layer is direct-mode (bypassing cache).
(Inherited from TGIS_Layer)
DormantMode public Dormant mode for the layer.
(Inherited from TGIS_Layer)
Driver public Layer driver name.
(Inherited from TGIS_Layer)
Extent public Extent of the layer.
(Inherited from TGIS_Layer)
Extent3D public Extent 3D of the layer.
(Inherited from TGIS_Layer)
FileCopyrights public Copyright information about the layer.
(Inherited from TGIS_Layer)
FileInfo public Additional textual information about the layer such compression, number of pixels, copyright etc.
(Inherited from TGIS_Layer)
ForcedBandsDefinition public Force interpretation of bands in a layer.
GridBand public Grid band number.
HideFromLegend public False, if layer should not be visible in a legend.
(Inherited from TGIS_Layer)
IsExportable public True if layer is exportable.
(Inherited from TGIS_Layer)
IsGridImage public True, if image is digital elevation model.
IsLocked public True, if layer is in locked state Lock.
(Inherited from TGIS_Layer)
IsNativeGridImage public True, if image is native digital elevation model.
IsOpened public True, if layer was opened and is ready for operations.
(Inherited from TGIS_Layer)
IsPersistent public True if layer is persistent.
(Inherited from TGIS_Layer)
IsReadOnly public Is layer read only.
(Inherited from TGIS_Layer)
IsTiled public True, if layer is tiled.
IsTopmost public True, if layer can be interpreted as topmost (trackable).
(Inherited from TGIS_Layer)
MaxHeight public Maximum elevation value of the grid.
MaxHeightThreshold public Maximum threshold of the grid elevation value to display.
MaxTileSize public Maximum allowed tile size for the layer.
(Inherited from TGIS_Layer)
MinHeight public Minimum elevation value of the grid.
MinHeightThreshold public Minimum threshold of the grid elevation value to display.
MultiUserMode public Multiuser mode.
(Inherited from TGIS_Layer)
Name public Name of layer, if not field directly then will be field with Path while adding to the Viewer.
(Inherited from TGIS_Layer)
NoDataValue public Grid "no-value".
PageCount public Number of pages in an image file.
Params public Returns parameters for pixel layer.
ParamsList public List of all parameters sections attached to the current layer.
(Inherited from TGIS_Layer)
ParentLayer public Sub layer parent layer.
(Inherited from TGIS_Layer)
Path public Path to file with layer data.
(Inherited from TGIS_Layer)
PathTAB public Path to TAB referencing file.
PathWithDriver public Path to file with layer data extended with driver name.
(Inherited from TGIS_Layer)
Progressive public If true (default) then layer can be drawn as progressive.
ProjectedExtent public Extent of the layer in projected units.
(Inherited from TGIS_Layer)
Renderer public Handle to a renderer used for drawing shapes.
(Inherited from TGIS_Layer)
ShadowAngle public Shadow angle used for grid shadowing.
Statistics public Layer statistics engine
(Inherited from TGIS_Layer)
Stream public Reference to a potential layer underlying stream.
(Inherited from TGIS_Layer)
SubFormat public Current subformat information.
SubLayers public Sub layers list.
(Inherited from TGIS_Layer)
SubType public Layer type.
(Inherited from TGIS_Layer)
Tag public Tag has no predefined meaning.
(Inherited from TGIS_Layer)
TagInternal public TagInternal has no predefined meaning.
(Inherited from TGIS_Layer)
TagPointer public TagPointer has no predefined meaning.
(Inherited from TGIS_Layer)
Transform public Custom transformation.
(Inherited from TGIS_Layer)
Transparency public Transparency value.
(Inherited from TGIS_Layer)
UnSupportedOperations public Set of operations not supported by a layer.
(Inherited from TGIS_Layer)
UseConfig public Is config file active?
(Inherited from TGIS_Layer)
UserObject public UserObject can be used to associate with the layer a user defined objects.
(Inherited from TGIS_Layer)
Viewer public Reference to viewer object.
(Inherited from TGIS_Layer)
ZOrder public Layer position relative to other layers.
(Inherited from TGIS_Layer)
ZOrderEx public Layer position relative to other layers.
(Inherited from TGIS_Layer)

Events

Inherited Protected
Name Visibility Description
GridOperationEvent published Grid operation event.
PixelOperationEvent published Pixel operation event.

Remarks

Pixel.Params operations

For specifying some more advanced pixel layer appearance like color mappings, transparent zones etc a property Pixel.Params should be used.

Color Map Zones

For properties like: RedMapZones, BlueMapZones, GreenMapZones there is possible to create a section for different values zones:

lp.Params.Pixel.RedMapZones.Add( "1,100,0,127"); 
lp.Params.Pixel.RedMapZones.Add( "200,100,127,255"); 

The general format is:

"start_value,end_value,start_value_mapped,end_value_mapped"

Where:

  • start_value
    is the start value of the zone expressed in native layer values (so for 16bit layers can be above 255);
  • end_value
    is a the end value of the zone expressed in native layer values (so for 16bit layers can be above 255);
  • start_value_mapped
    is the start value of the zone expressed in RGB channel value (0..255);
  • end_value_mapped
    is the end value of the zone expressed in RGB channel value (0..255).

Values between start_value and end_value will be smoothly mapped to values between start_value_mapped and end_value_mapped. If start_value_mapped can be smaller then end_value_mapped to achieve inversion.

Accepted value are an integer like 37 or hexadecimal like $25

FullRGB zones

Are used to map one color to another.

lp.Params.Pixel.RedMapZones.Add( "$EFEFEF,$FFFFFF,$00FF00" ); 
lp.Params.Pixel.RedMapZones.Add( "$000000,$0F0F0F,$0000FF"); 

The general format is:

"start_color,end_color,mapped_color"

Where:

  • start_color
    start color expressed as RGB value;
  • end_color
    end color expressed as RGB value;
  • mapped_color
    mapped color expressed as RGB value.

If color is between start_color and end_color then it will be mapped to mapped_color.

Operation “between” is done per channel. So construction between $102030 and $A0B0C0 means that any color with R:$10..$A0, G:$20..$B0 and B:$30..$C0 will be mapped. It can be used for example to match any color close to white to another color.

Accepted color values are an RGB integer like 255, hexadecimal like $0000FF, R:G:B like 0:0:255 or using names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If last provided parameter is BGR like $112233,$AABBCCF,BGR then the color will be interpreted as BGR, not RGB.

Gray zones

Are used to map gray to color.

The general format is:

"start_value,end_value,start_color,end_color"
lp.Params.Pixel.GrayMapZones.Add( "0,127,$0000A0,$0000FF" ); 
lp.Params.Pixel.GrayMapZones.Add( "127,255,$A00000,$FF0000FF"); 

The general format is:

"start_value,end_value,mapped_color"

Where:

  • start_value
    is the start value of gray-scale image (0..255)
  • end_value
    is a the end value of gray-scale image (0..255)
  • start_color
    start color expressed as RGB value;
  • end_color
    end color expressed as RGB value;

Values between start_value and end_value will be smoothly mapped to values between start_color and endcolor. If start_value can be smaller then end_value to achieve inversion.

Operation “between” is done per channel. So construction between $102030 and $A0B0C0 means that any color with R:$10..$A0, G:$20..$B0 and B:$30..$C0 will be mapped.

Accepted color values are an RGB integer like 255, hexadecimal like $0000FF, R:G:B like 0:0:255 or using names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If last provided parameter is BGR like $112233,$AABBCCF,BGR then the color will be interpreted as BGR, not RGB.

Transparency zones

Are used to define which color should be transparent

lp.Params.Pixel.TransparentZones.Add( "$EFEFEF,$FFFFFF"); 
lp.Params.Pixel.TransparentZones.Add( "$000000,$0F0F0F"); 

The general format is:

"start_color,end_color"

Where:

  • start_color
    start color expressed as RGB value;
  • end_color
    end color expressed as RGB value;

If color is between start_color and end_color then it will be mapped as transparent.

Operation “between” is done per channel. So construction between $102030 and $A0B0C0 means that any color with R:$10..$A0, G:$20..$B0 and B:$30..$C0 will be mapped. It can be used for example to match any color close to white to transparent.

Accepted color values are an RGB integer like 255, hexadecimal like $0000FF, R:G:B like 0:0:255 or using names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If last provided parameter is BGR like $112233,$AABBCCF,BGR then the color will be interpreted as BGR, not RGB.

Altitude zones

Are used to apply grid layer coloring.

lp.Params.Pixel.AltitudeMapZones.Add( "100.45,800.12,$FF0000"); 
lp.Params.Pixel.AltitudeMapZones.Add( "800.12,900.45,$FFFF00"); 

The general format is:

"start_value,end_value,color"

Where:

  1. start_value
    is the start value of the zone expressed in native layer values;
  2. end_value
    is the end value of the zone expressed in native layer values;
  3. color
    is an RGB vvalue representing zone color.

Accepted grid values are float values with dot decimal point like “123.45”.

Accepted color values are an RGB integer like 255, hexadecimal like $0000FF, R:G:B like 0:0:255 or using names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If last provided parameter is BGR like $112233,$AABBCCF,BGR then the color will be interpreted as BGR, not RGB.

Order of operation

Image layers

  1. Selecting which channel will be used to form RGB.
  2. Mapping of native layer values to 0.255 (RGB) zone with the use of RedMapZones, GreenMapZones BlueMapZones if any of them exists.
  3. Mapping of color-to-color if FullRGMMapZones exits.
  4. Firing event for additional custom color mapping.
  5. Applying TransparentZoneMaps if any exists.
  6. Making grayscale if requested.
  7. Applying GreyScaleZones if any exists.
  8. Applying histogram correction if requested.
  9. Applying brightness, contrast, inverse and RGB channels values modifications.

Grid Layers

  1. Selecting which channel will be used as grid source.
  2. Applying AltitudeMapZones if exists if not a simple mapping to a grayscale image.

All properties of Params.Pixel are availble as: TGIS_ParamsPixel class.

References

2019/09/07 08:38