Exemplo n.º 1
0
 public FormLayout(Map map)
 {
     InitializeComponent();
     m_workspace        = map.Workspace;
     m_map              = map;
     m_mapLayoutControl = new MapLayoutControl();
     base.Controls.Add(m_mapLayoutControl);
     base.Controls.SetChildIndex(m_mapLayoutControl, 0);
     m_mapLayoutControl.Dock = DockStyle.Fill;
     m_mapLayoutControl.MapLayout.Workspace          = m_workspace;
     m_mapLayoutControl.IsHorizontalScrollbarVisible = false;
     m_mapLayoutControl.IsVerticalScrollbarVisible   = false;
 }
Exemplo n.º 2
0
        public SampleRun(WorkspaceControl workspaceControl,
                         LayersControl layersControl,
                         MapControl mapControl,
                         MapControl mapControl2,
                         MapLayoutControl mapLayoutControl1,
                         ToolStripStatusLabel toolStripStatusLabel2,
                         TextBox textBoxResult,
                         ToolStripStatusLabel toolStripStatusLabel3,
                         SceneControl scenecontrol
                         )
        {
            workspaceControl1    = workspaceControl;
            workspace1           = workspaceControl1.WorkspaceTree.Workspace;
            layersControl1       = layersControl;
            mapControl1          = mapControl;
            m_mapControlEagleEye = mapControl2;
            m_mapLayoutControl   = mapLayoutControl1;
            m_toolStrip          = toolStripStatusLabel2;
            m_textBoxResult      = textBoxResult;
            scontrol             = scenecontrol;
            label1        = toolStripStatusLabel3;
            m_datasource  = workspace1.Datasources[0];
            m_point3Ds    = new Point3Ds();
            m_pointName   = "Point";
            m_geoLine3D   = new GeoLine3D();
            m_point3DsAll = new Point3Ds();

            m_flyManager = scontrol.Scene.FlyManager;
            m_flyManager.Routes.Clear();
            m_flyManager.Scene = scontrol.Scene;

            m_mapControlEagleEye.MouseMove            += new MouseEventHandler(EagleEyeMapMouseMoveHandler);
            m_mapControlEagleEye.MouseDown            += new MouseEventHandler(EagleEyeMapMouseDownHandler);
            m_mapControlEagleEye.MouseUp              += new MouseEventHandler(EagleEyeMapMouseUpHandler);
            m_mapControlEagleEye.ActionCursorChanging += new ActionCursorChangingEventHandler(EagleEyeMapCursorChangedHandler);
            mapControl1.Map.Drawn += new MapDrawnEventHandler(MainMapDrawnHandler);
            scontrol.MouseDown    += new System.Windows.Forms.MouseEventHandler(m_sceneControl_MouseDown);
            scontrol.MouseMove    += new System.Windows.Forms.MouseEventHandler(m_sceneControl_MouseMove);
            Initialize();
        }