GetLayerProps

Declaration: TMetaData.GetLayerProps(Layer: integer; var LType: TLayerType; var DerivOrder: integer; var LCaption: string; var ReverseAxis: boolean; var TechData: integer): integer;
Returns the type and the caption of the specified Layer. The layer type is returned in the variable parameter LType, the order of derivative in the DerivOrder parameter and the caption of the layer is returned in the LCaption parameter. The parameter ReverseAxis indicates whether the spectral axis is plotted from left to right (ReverseAxis = FALSE) or from right to left (ReverseAxis = TRUE). The parameter TechData returns the supplementary technical data which can be used - for example - for debugging purposes (Epina ImageLab does not use this parameter).

The following layer types are declared:

ctUndefined .... undefined/unknown property type
ctIRspec ....... IR spectrum
ctMSPos ........ MS positive spectrum (lines)
ctMSPosRaw ..... MS positive spectrum (continuous)
ctMSNeg ........ MS negative spectrum (lines)
ctMSNegRaw ..... MS negative spectrum (continuous)
ctMSsim ........ MS single ion monitoring (lines)
ctRaman ........ Raman spectrum
ctUvVis ........ UV/VIS/NIR spectrum
ctColor ........ individual color
ctRGBcolors .... red green and blue from a color image (always three layers!)
ctBwImg ........ black and white image (gray scale 0..255 per pixel)
ctPixMask ...... pixel mask (deprecated!! masks are managed in an extra structure from version 1.0 upwards)
ctPhysProp ..... physical properties
ctTHzSpec ...... THz spectrum
ctImpulse ...... impulse over time
ctOESRaw ....... optical emission spectroscopy (single lines)
ctOESsl ........ optical emission spectroscopy (single lines)
ctEDX .......... energy dispersive xray (single lines)
ctEDXRaw ....... energy dispersive xray (raw spectra)
ctSIMS ......... SIMS lines
ctAFM .......... AFM layers
ctIRdiscrete ... discrete infrared lines
ctClassMap ..... classification results
ctChemMap ...... chemical map
ctSpecDesc ..... spectral descriptor
ctPhaseSpec .... phase spectrum
ctMagSpec ...... magnitude spectrum
ctPowerSpec .... power spectrum
ctLibsRaw ...... LIBS raw data (continuous spectrum)
ctLibssl ....... LIBS single line data
ctTime ......... time
ctInvalid ...... indicates an invalid layer type
The function returns the following error codes:
 0 .... everything OK
-1 ... layer out of range

Hint: In order to directly access the metadata of the currently loaded dataset you can use the pre-declared global variable MData.