Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  ENVI API  >  Display Control  >  ENVIROILayer

ENVIROILayer

ENVIROILayer

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


3.2

See Also


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



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us