Description
Configures the Vector Geometry Tool 3D visualization.
Object Model
Public Properties
AngleSizeScale | The angle size scale. Dimensionless. |
ArrowPtSize | This property is deprecated. The arrow point size. 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#] | Copy Code |
---|
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);
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 |
---|
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)
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
|
|