public FloodLevelForm(FloodLevel mesh) { InitializeComponent(); this.fl = mesh; buttonColorPicker.BackColor = fl.FloodColor; numFloodLevel.Value = (decimal)fl.FloodElevation; }
/// <summary> /// Plugin entry point - All plugins must implement this function /// </summary> public override void Load() { if (ParentApplication.WorldWindow.CurrentWorld != null && ParentApplication.WorldWindow.CurrentWorld.Name.IndexOf("SDSS") == -1) { FloodLevel layer = new FloodLevel(LayerName, ParentApplication.WorldWindow); ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer); } }
/// <summary> /// Plugin entry point - All plugins must implement this function /// </summary> public override void Load() { if (Global.worldWindow.CurrentWorld != null && Global.worldWindow.CurrentWorld.Name.IndexOf("SDSS") == -1) { FloodLevel layer = new FloodLevel(LayerName, Global.worldWindow); Global.worldWindow.CurrentWorld.RenderableObjects.Add(layer); } }