Exemplo n.º 1
0
 protected override void BuildInterface()
 {
     _firstPointProperty             = new Point3DPropertyTabItem();
     _firstPointProperty.OnSetValue += OnSetValue;
     _firstPointProperty.OnGetValue += OnGetValue;
     PropertyListGenerator.AddProperty("First Point", _firstPointProperty);
 }
Exemplo n.º 2
0
        protected override void BuildInterface()
        {
            if (_pivotProperty == null)
            {
                _pivotProperty             = new Point3DPropertyTabItem();
                _pivotProperty.OnSetValue += SetPivotValue;
                _pivotProperty.OnGetValue += GetPivotValue;
            }
            PropertyListGenerator.AddProperty("Pivot", _pivotProperty);

            if (_translateproperty == null)
            {
                _translateproperty             = new Point3DPropertyTabItem();
                _translateproperty.OnSetValue += SetTranslateValue;
                _translateproperty.OnGetValue += GetTranslateValue;
            }
            PropertyListGenerator.AddProperty("Translate", _translateproperty);

            if (_rotateProperty == null)
            {
                _rotateProperty             = new Point3DPropertyTabItem();
                _rotateProperty.OnSetValue += SetRotateValue;
                _rotateProperty.OnGetValue += GetRotateValue;
            }
            PropertyListGenerator.AddProperty("Rotate", _rotateProperty);

            if (_scaleProperty == null)
            {
                _scaleProperty             = new DoublePropertyTabItem();
                _scaleProperty.OnSetValue += SetScaleValue;
                _scaleProperty.OnGetValue += GetScaleValue;
            }
            PropertyListGenerator.AddProperty("Scale", _scaleProperty);
        }
Exemplo n.º 3
0
        protected override void BuildInterface()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += SetLength;
            lengthProperty.OnGetValue += GetLength;
            PropertyListGenerator.AddProperty("Length", lengthProperty);

            var pointProperty = new Point3DPropertyTabItem();

            pointProperty.OnSetValue += SetRelativeOffset;
            pointProperty.OnGetValue += GetRelativeOffset;
            PropertyListGenerator.AddProperty("Relative Offset", pointProperty);
        }
Exemplo n.º 4
0
        protected override void BuildInterface()
        {
            _secondPointProperty             = new Point3DPropertyTabItem();
            _secondPointProperty.OnSetValue += OnSetSecondPointValueHandler;
            _secondPointProperty.OnGetValue += OnGetSecondPointValueHandler;
            PropertyListGenerator.AddProperty("Second Point", _secondPointProperty);

            _lengthProperty = new DoublePropertyTabItem();
            //   _lengthProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent, FunctionNames.LineLengthConstraint));
            // _lengthProperty.OnLockClicked += OnLengthLocked;
            _lengthProperty.OnSetValue += OnSetLengthValueHandler;
            _lengthProperty.OnGetValue += delegate(ref object data) { data = TreeUtils.GetLineLength(Parent); };
            PropertyListGenerator.AddProperty("Length", _lengthProperty);
        }