Description | Example | Return message | Group

VO Annotation

Control the display of annotations in the 3D window.

Syntax

VO <ScenarioPath> Annotation {AnnotationAction} <Parameters>

Related commands

Description

The VO Annotation command enables you to display textual data in the 3D Graphics window. You can also control the position, color, and size of the data being displayed.

{AnnotationAction}<Parameters>
Add <AnnotationName> Text [{AnnotationOption} <Value> {AnnotationOption2} <Value>...]
Modify
Delete{<AnnotationName> | AllAnnotations} Text

The <AnnotationName> must be a unique identifier for the text annotation. If you attempt to add an annotation with the same name using add, the command will NACK. If STK cannot find the annotation name for the modify or delete commands, they will also NACK.

If {AnnotationAction} is Add or Modify, the following {AnnotationOptions} <Value> pairs are available:

You can specify {AnnotationOptions} in any order and use any number of {AnnotationOptions} in a single command.

{AnnotationOption}<Value>Description
String"<AnnotationText>" [String "<AnnotationText2>"]This is the actual text that should appear as the annotation. You can add two or more text strings each time you issue the command. The "<AnnotationText>" from each String "<AnnotationText>" keyword combination will appear on a separate line in the 3D Graphics window.
Coord{LatLon | Pixel}Indicate the spacing used to draw annotations.
Position<XPosition/Longitude> <YPosition/Latitude> <ZPosition/Altitude>

If Coord is Pixel, then <XPosition> and <YPosition> parameters enables you to set the position of the text, where (0,0) is defined as the lower-left corner of the 3D Graphics window.

If Coord is LatLon, then enter the <Longitude> and <Latitude> values, in this order, to set the position of the text.

Color{Color}Specify the annotation color. For valid {Color} options, see Common Options.
FontStyle{Small | Medium | Large}{FontStyle} controls the size of the text displayed in the 3D Graphics window.
CentralBody <CBName> If the <Coord> is <LatLon>, the annotation will show relative to the central body specified using <CBName>. If you do not specify CentralBody, STK will use the central body of the scenario.
HorizPixelOrigin {Left | Right}Sets the horizontal origin of the annotation to the left or right side of the screen. If not specified, the default is Left.
VertPixelOrigin {Top | Bottom}Sets the vertical origin of the annotation to the top or bottom of the screen. If not specified, the default is Bottom.
WindowID<WinNumber>Indicate the 3D Graphics window within which the annotation should appear. If you don't specify a <WinNumber>, the annotations will appear in all 3D Graphics windows. If you specify a <WinNumber> that doesn't exist, Connect returns a NACK.
Interval{Action} [<Parameters>]Indicate the intervals during which the annotation should appear.

If {AnnotationOption} is Interval, {Action} can be:

{Action}<Parameters>Description
Add<NumIntervalPairs> "<IntervalStart>" "<IntervalStop>" ["<IntervalStart>" "<IntervalStop>"...]Adds intervals to the list of display times. The number of "<IntervalStart>" "<IntervalStop>" value sets to be entered depends on the <NumIntervalPairs> specified.
Load"<FilePath>"Replaces or creates the interval list with the intervals specified in the interval list file. The file must be in the STK interval list file format and end with an .int extension.

"<FilePath>" is the path to a file on your local drive.

Import"<TimeComponent>"Replaces or creates the interval list with the intervals specified in the Interval or Interval List "<TimeComponent>".

For information about "<TimeComponent>", see Component Specification.

ClearN/ARemove all display intervals for the display list.

Number assignments for colors are stored in the <STKUserDir>\Config\Defaults\_Default.ap file. You can view, edit, and store them.

Examples

To Add a red text annotation with the string "LatLonAnnotation" at the lat,lon,alt position of 10,30,1000:

VO * Annotation Add annotation1 Text String "LatLonAnnotation" Coord LatLon Position 30 10 1000 Color red

To add the same three lines that were added in the above example, but with each on a separate line in the 3D Graphics window:

VO * Annotation Add annotation1 Text String "Lat" String "Lon" String "Annotation" Coord LatLon Position 30 10 1000 Color red

To Add a blue text annotation with the string "MarsLatLon" at the lat,lon,alt position of -30,100,0 on the central body of Mars:

VO * Annotation Add annotation2 Text String "MarsLatLon" Coord latlon Position 100 -30 0 Color blue CentralBody Mars

To Add a yellow text annotation with the string "PixelAnnotation" at the pixel position of 50,100 relative to the lower left corner of the screen only on 3D windows with ids of 1 and 4:

VO * Annotation Add annotation3 Text String "PixelAnnotation" Coord pixel Position 50 100 0 Color yellow VertPixelOrigin bottom WindowID 1 WindowID 4

To Modify annotation with annotation id annotation3 by changing the text to "NewString" and moving it to position 200,50:

VO * Annotation Modify annotation3 Text String "NewString" Position 200 50 0

To Delete annotation with annotation id annotation1:

VO * Annotation Delete annotation1 Text

To add annotation3, in the position 50 20, and have it dislplay the two intervals specified:

VO * Annotation Add annotation3 Text String "IntervalText3" Position 50 20 0 Interval Add 2 "1 Jan 2001 00:00:00.00" "1 Jan 2001 01:00:00.00" "1 Jan 2001 01:20:00.00" "1 Jan 2001 02:30:00.00"

To add two additional intervals to annotation3:

VO * Annotation Modify annotation3 Text Interval Add 2 "1 Jan 2001 01:40:00.00" "1 Jan 2001 02:20:00.00" "1 Jan 2001 02:40:00.00" "1 Jan 2001 03:10:00.00"

To change the string for annotation3, and replace the interval list with the intervals in the file TestInt.int:

VO * Annotation Modify annotation3 Text String "LoadIntervalTest" Interval Load "e:/master42/TestInt.int"

To clear all intervals from annotation3:

VO * Annotation Modify annotation3 Text Interval Clear

Return message

Group membership

This command belongs to the following group(s):

VO

VO Window

Version

12.10