Newer
Older
GHFX_REFACTOR / PipeSys.cs
wxn on 2 Nov 2016 1 KB 提交
using System;
using System.Collections.Generic;
using System.Text;
using GeoScene.Globe;
using GeoScene.Data;

namespace Cyberpipe
{
    static class PipeSys
    {
        internal static void Attach(System.Windows.Forms.Control.ControlCollection control)
        {
            //init 
            m_globeCtrl = new GeoScene.Globe.GSOGlobeControl();
            m_pipeFunc = new Pipe();
            //attach
            control.Add(m_globeCtrl);
        }
        internal static GSOLayer getSelectedLayer()
        {
            return m_globeCtrl.Globe.SelectedObjectLayer;
        }
        internal static GSOFeature getSelectedFeature()
        {
            return m_globeCtrl.Globe.SelectedObject;
        }
        internal static GSOGlobeControl getGlobeCtrl()
        {
            return m_globeCtrl;
        }

        internal static Pipe getPipe()
        {
            return m_pipeFunc;
        }

        internal static GeoScene.Globe.GSOGlobeControl m_globeCtrl;
        internal static Pipe m_pipeFunc;
    }
}