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






Windows & Linux

Description

Configures the Vector Geometry Tool 3D visualization.

Object Model


Public Properties

Public Property AngleSizeScaleThe angle size scale. Dimensionless.
Public Property ArrowPtSizeThis property is deprecated. The arrow point size. Dimensionless.
Public Property RefCrdnsGets a collection that manages the 3D VGT visualizations.
Public Property ScaleRelativeToModelControls whether to scale the geometric elements relative to an object scale with the object's model.
Public Property VectorSizeScaleThe 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"
 
vector.ScaleRelativeToModel = true
vector.AngleSizeScale = 4.5
 

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"

vector.ScaleRelativeToModel = True
vector.AngleSizeScale = 4.5

© 2018 Analytical Graphics, Inc. All Rights Reserved.