AGI STK Objects 11 Send comments on this topic.
IAgVeGfxElevationsCollection Collection





Description

Collection for elevation contours. Used by vehicles.

Object Model

Public Methods

Public Method AddLevel Adds a new element to the collection.
Public Method AddLevelRange Adds a range of new levels to the collection.
Public Method RemoveAll Removes all elements from the collection.
Public Method RemoveAt Removes an element from the collection using specified index.

Public Properties

Public Property Count Returns the number of elements in a collection.
Public Property Item Given an index, returns an element in the collection.

Example

Configure elevation contours
[C#] Copy Code
gfxContours.IsVisible = true
gfxContours.IsFillVisible = true
gfxContours.FillStyle =  <a href="STKUtil.chm::/STKUtil~Enumerations~AgEFillStyle_EN.html">AgEFillStyle</a>.eFillStyleHorizontalStripe; 
gfxContours.NumOfDecimalDigits = 5
 
// Add contour elevation level 
IAgVeGfxElevationsElement elevation = gfxContours.Elevations.AddLevel(25.0); 
 
// Configure contour elevation element 
elevation.Color = Color.Red; 
elevation.DistanceVisible = true
elevation.LineStyle =  <a href="STKUtil.chm::/STKUtil~Enumerations~AgELineStyle_EN.html">AgELineStyle</a>.eDotted; 
elevation.LineWidth = AgELineWidth.e3; 
elevation.UserTextVisible = true
elevation.UserText = "My new elevation"
 
// Set contours to visible on scenario 
voContours.IsVisible = true
voContours.Fill = true
voContours.FillTranslucency = 80.0
 

Configure elevation contours
[Visual Basic .NET] Copy Code
gfxContours.IsVisible = True
gfxContours.IsFillVisible = True
gfxContours.FillStyle = AgEFillStyle.eFillStyleHorizontalStripe
gfxContours.NumOfDecimalDigits = 5

' Add contour elevation level
Dim elevation As IAgVeGfxElevationsElement = gfxContours.Elevations.AddLevel(25)

' Configure contour elevation element
elevation.Color = Color.Red
elevation.DistanceVisible = True
elevation.LineStyle = AgELineStyle.eDotted
elevation.LineWidth = AgELineWidth.e3
elevation.UserTextVisible = True
elevation.UserText = "My new elevation"

' Set contours to visible on scenario
voContours.IsVisible = True
voContours.Fill = True
voContours.FillTranslucency = 80

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1