public void AddElement(IElement element, IGlobeGraphicsElementProperties elementProperties)
        {
            int elementIndex;

            IGlobeGraphicsLayer globeGraphicsLayer = _layer as IGlobeGraphicsLayer;
            globeGraphicsLayer.AddElement(element, elementProperties, out elementIndex);
        }
        public void AddElement(IElement element, IGlobeGraphicsElementProperties elementProperties)
        {
            int elementIndex;

            IGlobeGraphicsLayer globeGraphicsLayer = _layer as IGlobeGraphicsLayer;

            globeGraphicsLayer.AddElement(element, elementProperties, out elementIndex);
        }
 public PathElements(IElement element, IGeometry elementGeometry, ElementMode elementMode, double height)
 {
     if (elementGeometry.GeometryType == esriGeometryType.esriGeometryPolyline)
     {
         if (elementMode == ElementMode.Element2D)
         {
             _element = Get2DElementTemporaryPath(element, elementGeometry);
         }
         else
         {
             _element           = Get3DElementTemporaryPath(element, elementGeometry);
             _elementProperties = Get3DElementProperties(height);
         }
     }
 }
        public AirplaneElements(IElement element, IGeometry elementGeometry, ICurve curvePath, ElementMode elementMode, double markerSize, double height)
        {
            this.fileName2DElement = @"C:\Users\mgh\Desktop\AirPlane2\Graphics\1.png";
            this.fileName3DElement = @"C:\Users\mgh\Desktop\AirPlane2\Graphics\11_2\13.3ds";

            if (elementGeometry.GeometryType == esriGeometryType.esriGeometryPoint)
            {
                if (elementMode == ElementMode.Element2D)
                {
                    _element = Get2DElementAirplane(element, elementGeometry, curvePath, markerSize);
                }
                else
                {
                    _element           = Get3DElementAirplane(element, elementGeometry, curvePath, markerSize);
                    _elementProperties = Get3DElementProperties(height);
                }
            }
        }
Exemple #5
0
 /// <summary>
 /// 释放资源
 /// </summary>
 public void Dispose()
 {
     if (flashTimer != null)
     {
         flashTimer.Stop();
         flashTimer.Dispose();
         flashTimer = null;
     }
     markerSymbol      = null;
     graphicsLayer     = null;
     index             = -1;
     isFlash           = false;
     isVisible         = true;
     isHightLight      = false;
     isTimer           = false;
     mapControl        = null;
     layer             = null;
     ElementProperties = null;
 }
Exemple #6
0
 /// <summary>
 /// 释放资源
 /// </summary>
 public void Dispose()
 {
     if (flashTimer != null)
     {
         flashTimer.Stop();
         flashTimer.Dispose();
         flashTimer = null;
     }
     layer         = null;
     mapControl    = null;
     pLineSymbol   = null;
     graphcisLayer = null;
     index         = -1;
     isTimer       = false;
     isVisible     = true;
     isHightLight  = false;
     isFlash       = false;
     properties    = null;
 }
Exemple #7
0
 /// <summary>
 /// 释放资源
 /// </summary>
 public void Dispose()
 {
     if (flashTimer != null)
     {
         flashTimer.Stop();
         flashTimer.Dispose();
         flashTimer = null;
     }
     mapControl    = null;
     isHightlight  = false;
     isVisible     = true;
     isTimer       = false;
     isFlash       = false;
     index         = -1;
     lockObj       = null;
     fillSymbol    = null;
     graphicsLayer = null;
     layer         = null;
     properties    = null;
 }
Exemple #8
0
 public PointElement(IGeometry geometry, double size, esriSimple3DMarkerStyle simple3DMarkerStyle)
 {
     _element           = GetElement(geometry, size, simple3DMarkerStyle);
     _elementProperties = GetElementProperties();
 }
Exemple #9
0
 public TextElement(IGeometry geometry, string text, float size)
 {
     _element           = GetElement(geometry, text, size);
     _elementProperties = GetElementProperties();
 }
Exemple #10
0
 public PolylineElement(IGeometry geometry, double width, esriSimpleLineStyle simpleLineStyle)
 {
     _element           = GetElement(geometry, width, simpleLineStyle);
     _elementProperties = GetElementProperties();
 }
 public PolygonElement(IGeometry geometry, esriSimpleFillStyle simpleFillStyle)
 {
     _element = GetElement(geometry, simpleFillStyle);
     _elementProperties = GetElementProperties();
 }
 public TextElement(IGeometry geometry, string text, float size)
 {
     _element = GetElement(geometry, text, size);
     _elementProperties = GetElementProperties();
 }
 public StyleElement(IGeometry geometry, double size, IStyleGalleryItem styleGalleryItem)
 {
     _element = GetElement(geometry, size, styleGalleryItem);
     _elementProperties = GetElementProperties();
 }
Exemple #14
0
 public StyleElement(IGeometry geometry, double size, IStyleGalleryItem styleGalleryItem)
 {
     _element           = GetElement(geometry, size, styleGalleryItem);
     _elementProperties = GetElementProperties();
 }
 public PolylineElement(IGeometry geometry, double width, esriSimpleLineStyle simpleLineStyle)
 {
     _element = GetElement(geometry, width, simpleLineStyle);
     _elementProperties = GetElementProperties();
 }
 public PolygonElement(IGeometry geometry, esriSimpleFillStyle simpleFillStyle)
 {
     _element           = GetElement(geometry, simpleFillStyle);
     _elementProperties = GetElementProperties();
 }
 public PointElement(IGeometry geometry, double size, esriSimple3DMarkerStyle simple3DMarkerStyle)
 {
     _element = GetElement(geometry, size, simple3DMarkerStyle);
     _elementProperties = GetElementProperties();
 }