AddWatershedLayerXYZC
AddWatershedLayerXYZC adds a new watershed map layer to the specified MapFrame object from a slice of a 3D grid. Returns a WatershedLayer object.
Syntax
object. AddWatershedLayerXYZC( Map, GridXYZCFileName, SliceZValue )
Parameter |
Type |
Description |
Map |
MapFrame object |
required; This specifies the MapFrame object for the watershed map creation. |
GridXYZCFileName |
String |
required; This provides the path and file name of the 3D grid file. |
SliceZValue |
Double |
required; The Z-value of the XYZC slice to use as the layer's surface |
Example
This example creates a contour map from the GoldConcentrationXYZC.vtk sample file, then adds a watershed layer in the map with AddWatershedLayer.
'Create contour map
Dim MapFrame As Object
Set MapFrame = Shapes.AddContourMapXYZC(GridXYZCFileName:=SurferApp.Path+"\Samples\GoldConcentrationXYZC.vtk", SliceZValue:=65)
'Set ContourLayer reference to the contour layer
Dim ContourLayer As Object
Set ContourLayer = MapFrame.Overlays(1)
'Create watershed layer
Dim WatershedLayer As Object
Set WatershedLayer = Shapes.AddWatershedLayerXYZC(Map:=MapFrame, GridXYZCFileName:=SurferApp.Path+"\Samples\GoldConcentrationXYZC.vtk", SliceZValue:=65)
Used by: Shapes Collection