private void SetDisplayMode() { Param_Integer param = (Param_Integer)this.Params.Input[1]; param.ClearNamedValues(); int i = 0; foreach (Rhino.Display.DisplayModeDescription DM in Rhino.Display.DisplayModeDescription.GetDisplayModes()) { param.AddNamedValue(DM.EnglishName, i); i += 1; } }
private void DiagRMode(Object sender, EventArgs e) { PatternModeStatus = 4; Param_Integer param = (Param_Integer)this.Params.Input[1]; param.ClearNamedValues(); param.AddNamedValue("Solid", 0); param.AddNamedValue("Dots", 1); param.AddNamedValue("Dashed", 2); param.AddNamedValue("Staggerd", 3); this.ExpireSolution(true); }
protected override void SetOutputOptions() { base.SetOutputOptions(); UnitsOut = GetUnitType(outputIndex); Param_Integer paramOut = (Param_Integer)Params.Input[2]; paramOut.ClearNamedValues(); int i = 0; foreach (Unit unit in UnitsOut) { paramOut.AddNamedValue(unit.Name, i); i += 1; } }
protected override void SetInputOptions() { base.SetInputOptions(); UnitsIn = GetUnitType(inputIndex); Param_Integer paramIn = (Param_Integer)Params.Input[1]; paramIn.ClearNamedValues(); int i = 0; foreach (Unit unit in UnitsIn) { paramIn.AddNamedValue(unit.Name, i); i += 1; } }
private void GridMode(Object sender, EventArgs e) { PatternModeStatus = 0; Param_Integer param = (Param_Integer)this.Params.Input[1]; param.ClearNamedValues(); param.AddNamedValue("Grid", 0); param.AddNamedValue("Diamond", 1); param.AddNamedValue("Triangular", 2); param.AddNamedValue("Hexagonal", 3); param.AddNamedValue("Stagger", 4); param.AddNamedValue("Checker", 5); param.AddNamedValue("Solid Diamond", 6); param.AddNamedValue("Trellis", 7); param.AddNamedValue("Dots", 8); this.ExpireSolution(true); }
private void ArchMode(Object sender, EventArgs e) { PatternModeStatus = 7; Param_Integer param = (Param_Integer)this.Params.Input[1]; param.ClearNamedValues(); param.AddNamedValue("Steel", 0); param.AddNamedValue("Aluminum", 1); param.AddNamedValue("Glass", 2); param.AddNamedValue("Concrete", 3); param.AddNamedValue("Stone", 4); param.AddNamedValue("Tile", 5); param.AddNamedValue("Wood", 6); param.AddNamedValue("Parquet", 7); param.AddNamedValue("Earth", 8); param.AddNamedValue("Grass", 9); this.ExpireSolution(true); }
private void PatternMode(Object sender, EventArgs e) { PatternModeStatus = 6; Param_Integer param = (Param_Integer)this.Params.Input[1]; param.ClearNamedValues(); param.AddNamedValue("ZigZag", 0); param.AddNamedValue("Confetti", 1); param.AddNamedValue("Tile", 2); param.AddNamedValue("Bamboo", 3); param.AddNamedValue("Cross", 4); param.AddNamedValue("Scatter", 5); param.AddNamedValue("Star", 6); param.AddNamedValue("Pinwheel", 7); param.AddNamedValue("Rings", 8); param.AddNamedValue("Weave", 9); this.ExpireSolution(true); }
private void PercentMode(Object sender, EventArgs e) { PatternModeStatus = 5; Param_Integer param = (Param_Integer)this.Params.Input[1]; param.ClearNamedValues(); param.AddNamedValue("10", 0); param.AddNamedValue("20", 1); param.AddNamedValue("30", 2); param.AddNamedValue("40", 3); param.AddNamedValue("50", 4); param.AddNamedValue("60", 5); param.AddNamedValue("70", 6); param.AddNamedValue("80", 7); param.AddNamedValue("90", 8); this.ExpireSolution(true); }