This is a reference to an ROI layer object. Use the ENVIRasterLayer::AddROI method to create an ENVIROILayer object.

Example


; Launch the application
e = ENVI()
 
; open and display qb_boulder_msi
file = Filepath('qb_boulder_msi', ROOT_DIR=e.Root_Dir, $
  SUBDIRECTORY=['data'])
raster = e.OpenRaster(file)
view = e.GetView()
layer = view.CreateLayer(raster)
 
; open and display the ROIs from qb_boulder_roi
file = Filepath('qb_boulder_roi.xml', ROOT_DIR=e.Root_Dir, $
  SUBDIRECTORY=['data'])
rois = e.OpenRoi(file)
roiLayers = OBJARR(N_ELEMENTS(rois))
FOR i=0, N_ELEMENTS(rois)-1 DO roiLayers[i] = layer.AddROI(rois[i])
 
; Change the transparency
roiLayers[2].Transparency = 50

Methods


Close

GetView

MoveDown

MoveToBottom

MoveToTop

MoveUp

Properties


Properties marked as (Get) can be retrieved, but not set.

DATA (Get)

The ENVIROI displayed on this layer.

HIDE (Get, Set)

Set this property to 1 to hide the layer, and to 0 to display it. The default value is 0.

NAME (Set)

Specify a string value with the name of the layer.

TRANSPARENCY (Get, Set)

Specify an integer value between 0 (opaque) and 100 (invisible) that defines the transparency of the layer. The default value is 0.

Version History


ENVI 5.1

Introduced

API Version


4.3

See Also


ENVI::OpenROI, ENVIROI, ENVIRasterLayer::AddROI, How do I process the pixels within a region of interest (ROI)?