コード例 #1
0
ファイル: ArchBrush.cs プロジェクト: 074769/sledge
        public ArchBrush()
        {
            _numSides = new NumericControl(this) { LabelText = "Number of sides" };
            _wallWidth = new NumericControl(this) { LabelText = "Wall width", Minimum = 1, Maximum = 1024, Value = 16, Precision = 1 };
            _arc = new NumericControl(this) { LabelText = "Arc", Minimum = 1, Maximum = 360 * 4, Value = 360 };
            _startAngle = new NumericControl(this) { LabelText = "Start angle", Minimum = 0, Maximum = 359, Value = 0 };
            _addHeight = new NumericControl(this) { LabelText = "Add height", Minimum = -1024, Maximum = 1024, Value = 0, Precision = 1 };
            _curvedRamp = new BooleanControl(this) { LabelText = "Curved ramp", Checked = false };
            _tiltAngle = new NumericControl(this) { LabelText = "Tilt angle", Minimum = -Atan2, Maximum = Atan2, Value = 0, Enabled = false, Precision = 1 };
            _tiltInterp = new BooleanControl(this) { LabelText = "Tilt interpolation", Checked = false, Enabled = false };

            _curvedRamp.ValuesChanged += (s, b) => _tiltAngle.Enabled = _tiltInterp.Enabled = _curvedRamp.GetValue();
        }
コード例 #2
0
ファイル: TorusBrush.cs プロジェクト: silky/sledge
 public TorusBrush()
 {
     _crossSides = new NumericControl(this) { LabelText = "Cross sec. sides" };
     _crossRadius = new NumericControl(this) { LabelText = "Ring width", Minimum = 16, Maximum = 1024, Value = 32, Precision = 1 };
     _crossStartAngle = new NumericControl(this) { LabelText = "Cross sec. start", Minimum = 0, Maximum = 359, Value = 0 };
     _crossMakeHollow = new BooleanControl(this) { LabelText = "Make hollow", Checked = false };
     _crossArc = new NumericControl(this) { LabelText = "Cross sec. arc", Minimum = 1, Maximum = 360, Value = 360, Enabled = false };
     _crossWallWidth = new NumericControl(this) { LabelText = "Hollow wall width", Minimum = 1, Maximum = 1024, Value = 16, Precision = 1, Enabled = false};
     _ringSides = new NumericControl(this) { LabelText = "Ring sides" };
     _ringArc = new NumericControl(this) { LabelText = "Ring arc", Minimum = 1, Maximum = 1080, Value = 360 };
     _ringStartAngle = new NumericControl(this) { LabelText = "Ring start", Minimum = 0, Maximum = 359, Value = 0 };
     _rotationHeight = new NumericControl(this) { LabelText = "Rotation height", Minimum = -1024, Maximum = 1024, Value = 0, Precision = 1};
     _crossMakeHollow.ValuesChanged += (s, b) => _crossWallWidth.Enabled = _crossArc.Enabled = _crossMakeHollow.GetValue();
 }
コード例 #3
0
ファイル: CylinderBrush.cs プロジェクト: 074769/sledge
 public CylinderBrush()
 {
     _numSides = new NumericControl(this) { LabelText = "Number of sides" };
 }
コード例 #4
0
ファイル: PipeBrush.cs プロジェクト: KonstantinUb/sledge
 public PipeBrush()
 {
     _numSides = new NumericControl(this) { LabelText = "Number of sides" };
     _wallWidth = new NumericControl(this) { LabelText = "Wall width", Minimum = 1, Maximum = 1024, Value = 32, Precision = 1 };
 }
コード例 #5
0
ファイル: TextBrush.cs プロジェクト: silky/sledge
 public TextBrush()
 {
     _fontChooser = new FontChooserControl(this);
     _flattenFactor = new NumericControl(this) { LabelText = "Aliasing Factor", Minimum = 0.1m, Maximum = 10m, Value = 1, Precision = 1, Increment = 0.1m };
     _text = new TextControl(this) { EnteredText = "Enter text here" };
 }
コード例 #6
0
ファイル: PipeBrush.cs プロジェクト: jpiolho/sledge
 public PipeBrush()
 {
     _numSides = new NumericControl(this) { LabelText = "Num. sides" };
     _width = new NumericControl(this) { LabelText = "Wall width", Minimum = 1, Maximum = 1024, Value = 32 };
 }
コード例 #7
0
ファイル: ConeBrush.cs プロジェクト: jpiolho/sledge
 public ConeBrush()
 {
     _numSides = new NumericControl(this) {LabelText = "Num. sides"};
 }