STK ObjectsSend comments on this topic.
IAgVeGfxElevationsElement Interface

Description

2D Graphics settings for elevation contours.

Public Properties

Public Property ColorContour color.
Public Property DistanceVisibleDistance visible.
Public Property ElevationElevation level. Uses Angle Dimension.
Public Property LabelAngleThe angle (0-359 deg, starting at 12 o'clock) along the contour at which the label displays.
Public Property LineStyleContour line style.
Public Property LineWidthContour line width.
Public Property UserTextOpt whether to display user defined text for the contour.
Public Property UserTextVisibleShow User Defined Text on Contour

Example

Configure elevation contours
[C#]
gfxContours.IsVisible = true;
gfxContours.IsFillVisible = true;
gfxContours.FillStyle = AgEFillStyle.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 = 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.0;
Configure elevation contours
[Visual Basic .NET]
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
© 2024 Analytical Graphics, Inc. All Rights Reserved.