Description
Configures the Vector Geometry Tool 3D visualization.
Public Properties
AngleSizeScale | The angle size scale. Dimensionless. |
RefCrdns | Gets a collection that manages the 3D VGT visualizations. |
ScaleRelativeToModel | Controls whether to scale the geometric elements relative to an object scale with the object's model. |
VectorSizeScale | The size scale of the geometric elements. Dimensionless. |
Example
Configure 3D vector
[C#] |
---|
// 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] |
---|
' 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
|
|
Add a Vector to display in 3D
[Python - STK API] |
---|
# IAgSatellite satellite: Satellite object
vector = satellite.VO.Vector
angVel = vector.RefCrdns.Add(0, 'Satellite/MySatellite AngVelocity')
angVel.LabelVisible = True
|
|
Display Vector and set properties in 3D Display
[MATLAB] |
---|
% IAgSatellite satellite: Satellite object
vector = satellite.VO.Vector;
sunVector = vector.RefCrdns.Add('eVectorElem', 'Satellite/MySatellite Sun Vector');
vector.VectorSizeScale = 2;
sunVector.Visible = true;
sunVector.Color = 65535; % yellow
sunVector.LabelVisible = true;
sunVector.MagnitudeVisible = true;
|
|
Add a Vector to display in 3D
[MATLAB] |
---|
% IAgSatellite satellite: Satellite object
vector = satellite.VO.Vector;
angVel = vector.RefCrdns.Add('eVectorElem', 'Satellite/MySatellite AngVelocity');
angVel.LabelVisible = true;
|
|