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; } }