using System.Windows.Forms; using GeoScene.Data; using GeoScene.Globe; namespace Cyberpipe { static class PipeSys { internal static void Attach(Control.ControlCollection control) { //init m_globeCtrl = new 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 GSOGlobeControl m_globeCtrl; internal static Pipe m_pipeFunc; } }