Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 public CylinderBrush()
 {
     _numSides = new NumericControl(this) { LabelText = "Number of sides" };
 }
Esempio n. 4
0
 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 };
 }
Esempio n. 5
0
 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" };
 }
Esempio n. 6
0
 public PipeBrush()
 {
     _numSides = new NumericControl(this) { LabelText = "Num. sides" };
     _width = new NumericControl(this) { LabelText = "Wall width", Minimum = 1, Maximum = 1024, Value = 32 };
 }
Esempio n. 7
0
 public ConeBrush()
 {
     _numSides = new NumericControl(this) {LabelText = "Num. sides"};
 }