AGI STK Objects 11 Send comments on this topic.
IAgVOVector Interface





Description

Configures the Vector Geometry Tool 3D visualization.

Object Model


Public Properties

Public Property AngleSizeScale The angle size scale. Dimensionless.
Public Property ArrowPtSize The arrow point size. Dimensionless.
Public Property RefCrdns Gets a collection that manages the 3D VGT visualizations.
Public Property ScaleRelativeToModel Controls whether to scale the geometric elements relative to an object scale with the object's model.
Public Property VectorSizeScale The size scale of the geometric elements. Dimensionless

Example

Configure 3D vector
[C#] Copy Code
// See AvailableCrdns for supported elements 
vector.RefCrdns.Add(AgEGeometricElemType.eVectorElem, ((IAgCrdn)m_Root.CentralBodies["Earth"].Vgt.Vectors["Moon"]).QualifiedPath); 
vector.RefCrdns.Add(AgEGeometricElemType.eAxesElem, ((IAgCrdn)m_Root.CentralBodies["Moon"].Vgt.Vectors["Position"]).QualifiedPath); 
vector.RefCrdns.Add(AgEGeometricElemType.eVectorElem, ((IAgCrdn)m_Root.CentralBodies["Sun"].Vgt.Vectors["Velocity(Barycenter)"]).QualifiedPath); 
 
// Draw on Central Body 
IAgVORefCrdnVector body = vector.RefCrdns.GetCrdnByName(AgEGeometricElemType.eAxesElem, ((IAgCrdn)m_Root.CentralBodies["Earth"].Vgt.Vectors["Moon"]).QualifiedPath) as IAgVORefCrdnVector; 
((IAgVORefCrdn)body).Color = Color.Yellow; 
body.DrawAtCB = true
body.Axes = "CentralBody/Earth Fixed Axes"
body.ArrowType = AgEArrowType.e3D; 
 
vector.ScaleRelativeToModel = true
vector.AngleSizeScale = 4.5
vector.ArrowPtSize = 11.0
 

Configure 3D vector
[Visual Basic .NET] Copy Code
' See AvailableCrdns for supported elements
vector.RefCrdns.Add(AgEGeometricElemType.eVectorElem, DirectCast(m_Root.CentralBodies("Earth").Vgt.Vectors("Moon"), IAgCrdn).QualifiedPath)
vector.RefCrdns.Add(AgEGeometricElemType.eAxesElem, DirectCast(m_Root.CentralBodies("Moon").Vgt.Vectors("Position"), IAgCrdn).QualifiedPath)
vector.RefCrdns.Add(AgEGeometricElemType.eVectorElem, DirectCast(m_Root.CentralBodies("Sun").Vgt.Vectors("Velocity(Barycenter)"), IAgCrdn).QualifiedPath)

' Draw on Central Body
Dim body As IAgVORefCrdnVector = TryCast(vector.RefCrdns.GetCrdnByName(AgEGeometricElemType.eAxesElem, DirectCast(m_Root.CentralBodies("Earth").Vgt.Vectors("Moon"), IAgCrdn).QualifiedPath), IAgVORefCrdnVector)
DirectCast(body, IAgVORefCrdn).Color = Color.Yellow
body.DrawAtCB = True
body.Axes = "CentralBody/Earth Fixed Axes"
body.ArrowType = AgEArrowType.e3D

vector.ScaleRelativeToModel = True
vector.AngleSizeScale = 4.5
vector.ArrowPtSize = 11

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1