SetLayerProps

Declaration: TMetaData.SetLayerProps(Layer: integer; LType: TLayerType; DerivOrder: integer; LCaption: string; ReverseAxis: boolean; TechData: integer): integer;
The method SetLayerProps sets the properties of the specified Layer. The parameter LType contains the layer type, the parameter DerivOrder the order of derivative and the caption of the layer is specified in the LCaption parameter. The parameter ReverseAxis controls whether the spectral axis plotted from left to right (ReverseAxis = FALSE) or from right to left (ReverseAxis = TRUE).

The parameter TechData can be used to store supplementary technical data for each layer. Please note that Epina ImageLab does not use the supplementary technical data. So it's up to the user whether and how these technical data entries are utilized.

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.