Beispiel #1
0
        private void DisplayElement(AgEGeometricElemType type, IAgCrdn element, Color color)
        {
            IAgVOVector  vectorGraphics = m_selectedObject.VO.Vector;
            IAgVORefCrdn elementGraphics;

            // If element exists, get by name. otherwise add it.
            try
            {
                elementGraphics = vectorGraphics.RefCrdns.GetCrdnByName(type, element.QualifiedPath);
            }
            catch
            {
                elementGraphics = vectorGraphics.RefCrdns.Add(type, element.QualifiedPath);
            }

            elementGraphics.Visible      = true;
            elementGraphics.LabelVisible = true;
            elementGraphics.Color        = color;

            try
            {
                ((IAgVORefCrdnAngle)elementGraphics).AngleValueVisible = true;
            }
            catch
            {
                // element is not an angle
            }
        }
Beispiel #2
0
 public static void VectorChangeSize(string vectorName, double ScaleValue, IAgStkObject stkObject)
 {
     if (stkObject.ClassName == "Aircraft")
     {
         IAgAircraft _aircraft = stkObject as IAgAircraft;
         IAgCrdn     vector    = stkObject.Vgt.Vectors[vectorName] as IAgCrdn;
         IAgVOVector vectorVO  = _aircraft.VO.Vector;
         vectorVO.ScaleRelativeToModel = true;
         vectorVO.VectorSizeScale      = ScaleValue;
     }
 }