Ejemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 18JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * default constructor.
         */
        public MapRegion()
        {
            SetMapObjectType(REGION);
            PenStyle   = new MapPen();
            BrushStyle = new MapBrush();
            CenterPt   = new GeoLatLng();
            Region     = null;
        }
Ejemplo n.º 2
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 18JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Copy constructor.
  * @param region     map object copy from.
  */
 public MapRegion(MapRegion region)
     : base(region)
 {
     SetMapObjectType(REGION);
     PenStyle = new MapPen(region.PenStyle);
     BrushStyle = new MapBrush(region.BrushStyle);
     Region = new GeoPolygon(region.Region);
     CenterPt = new GeoLatLng(region.CenterPt);
 }
Ejemplo n.º 3
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 18JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Copy constructor.
         * @param region     map object copy from.
         */
        public MapRegion(MapRegion region)
            : base(region)
        {
            SetMapObjectType(REGION);
            PenStyle   = new MapPen(region.PenStyle);
            BrushStyle = new MapBrush(region.BrushStyle);
            Region     = new GeoPolygon(region.Region);
            CenterPt   = new GeoLatLng(region.CenterPt);
        }
Ejemplo n.º 4
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 18JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Copy constructor.
  * @param multiRegion     map object copy from.
  */
 public MapMultiRegion(MapMultiRegion multiRegion)
     : base(multiRegion)
 {
     SetMapObjectType(MULTIREGION);
     PenStyle = new MapPen(multiRegion.PenStyle);
     BrushStyle = new MapBrush(multiRegion.BrushStyle);
     Regions = new GeoPolygon[multiRegion.Regions.Length];
     for (int i = 0; i < Regions.Length; i++)
     {
         Regions[i] = new GeoPolygon(multiRegion.Regions[i]);
     }
     CenterPt = new GeoLatLng(multiRegion.CenterPt);
 }
Ejemplo n.º 5
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 18JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Copy constructor.
         * @param multiRegion     map object copy from.
         */
        public MapMultiRegion(MapMultiRegion multiRegion)
            : base(multiRegion)
        {
            SetMapObjectType(MULTIREGION);
            PenStyle   = new MapPen(multiRegion.PenStyle);
            BrushStyle = new MapBrush(multiRegion.BrushStyle);
            Regions    = new GeoPolygon[multiRegion.Regions.Length];
            for (int i = 0; i < Regions.Length; i++)
            {
                Regions[i] = new GeoPolygon(multiRegion.Regions[i]);
            }
            CenterPt = new GeoLatLng(multiRegion.CenterPt);
        }
Ejemplo n.º 6
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 18JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * default constructor.
  */
 public MapRegion()
 {
     SetMapObjectType(REGION);
     PenStyle = new MapPen();
     BrushStyle = new MapBrush();
     CenterPt = new GeoLatLng();
     Region = null;
 }
Ejemplo n.º 7
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 18JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Set the brush type of the map region.
  * @param mapBrush the brush type
  */
 public void SetPenType(MapBrush mapBrush)
 {
     BrushStyle = mapBrush;
 }
Ejemplo n.º 8
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 18JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Set the brush type of the map region.
         * @param mapBrush the brush type
         */
        public void SetPenType(MapBrush mapBrush)
        {
            BrushStyle = mapBrush;
        }