Wireframe Object
The Wireframe object contains the properties of a wireframe map created in Surfer with the Shapes method AddWireframe.
Derived from: Shape object(All methods and properties of Shape apply to this object.)
The following table provides the properties of the WireFrame object:
Property |
Description |
Returns/sets the base elevation. |
|
Returns the line format object for the base. It is a read-only property. |
|
Returns/sets the surface plot border style. |
|
Returns the color scale object if enabled. It is a read-only property. |
|
Returns the grid object used to create the plot. It is a read-only property. |
|
Returns the 3D grid being used for slices. It is a read-only propoerty. |
|
Returns/sets the name of the grid file used to create the plot. |
|
Returns/sets the name of the 3D grid files used to create the map. |
|
Returns/sets the directions to plot lines (a combination of the srfWireDir values). |
|
Returns/sets the opacity. |
|
Returns/sets the remove hidden lines state. |
|
Returns/sets the show base state. |
|
Returns/sets the show color scale state. |
|
Returns/sets the show lower state. |
|
Returns/sets the show upper state. |
|
Returns/sets the show vertical base lines state. |
|
Returns/sets the Z-value of the XYZC slice being used as the contour surface |
|
Returns the line format object for lines of constant X. It is a read-only property. |
|
Returns the line format object for lines of constant Y. It is a read-only property. |
|
Returns the levels object for lines of constant Z. It is a read-only property. |
|
Returns the line format object for lines of constant Z. It is a read-only property. |
|
Returns/sets the line directions to apply color zones to (a combination of the srfWireDir values). |
|
Returns the levels object for color zones. It is a read-only property. |
Example
The following script demonstrates how the Wireframe object is used in reference to the MapFrame object.
Sub Main
'Declares SurferApp as an object
Dim SurferApp As Object
'Creates an instance of the Surfer Application object and assigns it
'to the variable named "SurferApp"
Set SurferApp = CreateObject("Surfer.Application")
'Makes Surfer visible
SurferApp.Visible = True
'Declares Plot as an object
Dim Plot As Object
'Creates a plot document in Surfer and assigns it to the variable
'named "Plot"
Set Plot = SurferApp.Documents.Add(srfDocPlot)
'Declares Shapes as an Object
Dim Shapes As Object
'Assigns the Shapes collection to the variable named "Shapes"
Set Shapes = Plot.Shapes
'Declares MapFrame as an object
Dim MapFrame As Object
'Creates a wireframe and assigns the map coordinate system to the
'variable named "MapFrame"
Set MapFrame = Shapes.AddWireframe(GridFileName:=SurferApp.Path+"\Samples\demogrid.grd")
'Declares Wireframe as an object
Dim Wireframe As Object
'Assigns the wireframe properties to the variable named
'"Wireframe"
Set Wireframe = MapFrame.Overlays(1)
End Sub