Пример #1
0
 protected override void BuildInterface()
 {
     _angleProperty             = new DoublePropertyTabItem();
     _angleProperty.OnSetValue += SetInternalRadius;
     _angleProperty.OnGetValue += GetInternalRadius;
     PropertyListGenerator.AddProperty("Radius", _angleProperty);
 }
Пример #2
0
        private void BuildInertiaMomentProperty()
        {
            var inertiaMomentProperty = new DoublePropertyTabItem();

            inertiaMomentProperty.OnGetValue += OnGetInertiaMomentValueHandler;
            PropertyListGenerator.AddProperty("Iz", inertiaMomentProperty);
        }
Пример #3
0
        private void BuildElasticModulusProperty()
        {
            var elasticModulusProperty = new DoublePropertyTabItem();

            elasticModulusProperty.OnGetValue += OnGetElasticModulusValueHandler;
            PropertyListGenerator.AddProperty("E", elasticModulusProperty);
        }
Пример #4
0
 protected override void BuildInterface()
 {
     _lengthProperty             = new DoublePropertyTabItem();
     _lengthProperty.OnSetValue += SetAngleValue;
     _lengthProperty.OnGetValue += GetAngleValue;
     PropertyListGenerator.AddProperty("Length", _lengthProperty);
 }
Пример #5
0
        private void BuildAreaProperty()
        {
            var areaProperty = new DoublePropertyTabItem();

            areaProperty.OnGetValue += OnGetAreaValueHandler;
            PropertyListGenerator.AddProperty("A", areaProperty);
        }
Пример #6
0
        protected override void BuildInterface()
        {
            _nameProperty = new StringPropertyTabItem();
            _nameProperty.OnGetValue += OnGetName;
            _nameProperty.OnSetValue += OnSetName;

            PropertyListGenerator.AddProperty("Name", _nameProperty);

            _transparencyProperty = new DoubleSliderPropertyTabItem(0, 1);
            _transparencyProperty.OnGetValue += OnGetTransparency;
            _transparencyProperty.OnSetValue += OnSetTransparency;

            PropertyListGenerator.AddProperty("Transparency", _transparencyProperty);

            _colorProperty = new ColorPropertyTabItem();
            _colorProperty.OnGetValue += OnGetColor;
            _colorProperty.OnSetValue += OnSetColor;

            PropertyListGenerator.AddProperty("Color", _colorProperty);

            var container = Parent.Root.Set<LayerContainerInterpreter>();
            _layerProperty = new DropDownPropertyTabItem(container.LayerNames);
            _layerProperty.OnGetValue += OnLayerIndexChange;
            _layerProperty.OnSetValue += OnSetLayerIndex;

            PropertyListGenerator.AddProperty("Layer", _layerProperty);

            _constraintsProperty = new ListPropertyTabItem();
            _constraintsProperty.OnGetValue += OnGetConstraints;
            PropertyListGenerator.AddProperty("Constraints", _constraintsProperty);
            _newConstraintsProperty = new AvailableConstraintsTabItem(44);
            _newConstraintsProperty.OnGetValue += OnGetPossibleConstraints;
            PropertyListGenerator.AddProperty("Add Constraints", _newConstraintsProperty);
        }
Пример #7
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);
        }
Пример #8
0
        private void BuildLengthProperty()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnGetValue += OnGetLengthValueHandler;
            PropertyListGenerator.AddProperty("Length", lengthProperty);
        }
Пример #9
0
        private void BuildSecondNodeProperty()
        {
            var secondNodeProperty = new StringPropertyTabItem();

            secondNodeProperty.OnGetValue += OnGetSecondNodeValueHandler;
            PropertyListGenerator.AddProperty("Node 2", secondNodeProperty);
        }
Пример #10
0
        private void BuildFirstNodeProperty()
        {
            var firstNodeProperty = new StringPropertyTabItem();

            firstNodeProperty.OnGetValue += OnGetFirstNodeValueHandler;
            PropertyListGenerator.AddProperty("Node 1", firstNodeProperty);
        }
Пример #11
0
        protected override void BuildInterface()
        {
            _shapesProperty             = new ListShapesTabItem(144);
            _shapesProperty.OnGetValue += OnGetShapes;

            PropertyListGenerator.AddProperty("Shapes", _shapesProperty);
        }
Пример #12
0
 protected override void BuildInterface()
 {
     _firstPointProperty             = new Point3DPropertyTabItem();
     _firstPointProperty.OnSetValue += OnSetValue;
     _firstPointProperty.OnGetValue += OnGetValue;
     PropertyListGenerator.AddProperty("First Point", _firstPointProperty);
 }
 protected override void BuildInterface()
 {
     _lengthProperty             = new DoublePropertyTabItem();
     _lengthProperty.OnSetValue += SetYValue;
     _lengthProperty.OnGetValue += GetYValue;
     PropertyListGenerator.AddProperty(PropertyDescriptorsResources.VerticalLineTab_X, _lengthProperty);
 }
Пример #14
0
        protected override void BuildInterface()
        {
            _baseRadiusProperty             = new DoublePropertyTabItem();
            _baseRadiusProperty.OnSetValue += SetBaseRadius;
            _baseRadiusProperty.OnGetValue += GetBaseRadius;
            //_baseRadiusProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                     FunctionNames.ConeMinorRadiusConstraint));
            //_baseRadiusProperty.OnLockClicked += MinorRadiusLocked;
            PropertyListGenerator.AddProperty("Base Radius", _baseRadiusProperty);

            _topRadiusProperty             = new DoublePropertyTabItem();
            _topRadiusProperty.OnSetValue += SetTopRadius;
            _topRadiusProperty.OnGetValue += GetTopRadius;
            //_topRadiusProperty.OnLockClicked += TopRadiusLocked;
            //_topRadiusProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                    FunctionNames.ConeMajorRadiusConstraint));

            PropertyListGenerator.AddProperty("Top Radius", _topRadiusProperty);

            _heightConeProperty             = new DoublePropertyTabItem();
            _heightConeProperty.OnSetValue += SetConeHeight;
            _heightConeProperty.OnGetValue += GetConeHeight;
            //_heightConeProperty.OnLockClicked += HeightRadiusLocked;
            //_heightConeProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                     FunctionNames.ConeHeightConstraint));
            PropertyListGenerator.AddProperty("Height", _heightConeProperty);

            _heightProperty             = new DoublePropertyTabItem();
            _heightProperty.OnSetValue += SetAngle;
            _heightProperty.OnGetValue += GetAngle;
            PropertyListGenerator.AddProperty("Angle", _heightProperty);
        }
        protected override void BuildInterface()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += SetLength;
            lengthProperty.OnGetValue += GetLength;
            PropertyListGenerator.AddProperty("Distance", lengthProperty);
        }
        protected override void BuildInterface()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += SetValue;
            lengthProperty.OnGetValue += GetValue;
            PropertyListGenerator.AddProperty(_itemTitle, lengthProperty);
        }
        protected override void BuildInterface()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += OnSetLengthValueHandler;
            lengthProperty.OnGetValue += OnGetLengthValueHandler;
            PropertyListGenerator.AddProperty("Length", lengthProperty);
        }
Пример #18
0
 protected override void BuildInterface()
 {
     _lengthProperty             = new DoublePropertyTabItem();
     _lengthProperty.OnSetValue += SetValue;
     _lengthProperty.OnGetValue += GetValue;
     //  _lengthProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent, FunctionNames.CircleRangeConstraint));
     //   _lengthProperty.OnLockClicked += OnLengthLocked;
     PropertyListGenerator.AddProperty(PropertyDescriptorsResources.CircleTab_Range, _lengthProperty);
 }
Пример #19
0
        protected override void BuildInterface()
        {
            _radiusPropertyItem             = new DoublePropertyTabItem();
            _radiusPropertyItem.OnSetValue += SetInternalRadius;
            _radiusPropertyItem.OnGetValue += GetInternalRadius;
            //_radiusPropertyItem.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                     FunctionNames.SphereRadiusConstraint));
            //_radiusPropertyItem.OnLockClicked += OnLockClicked;

            PropertyListGenerator.AddProperty("Radius", _radiusPropertyItem);
        }
Пример #20
0
        protected override void BuildInterface()
        {
            _heightProperty             = new DoublePropertyTabItem();
            _heightProperty.OnSetValue += SetCutHeight;
            _heightProperty.OnGetValue += GetCutHeight;
            PropertyListGenerator.AddProperty("Depth", _heightProperty);

            _cutTypeProperty             = new DropDownPropertyTabItem(_cutTypes);
            _cutTypeProperty.OnSetValue += SetCutType;
            _cutTypeProperty.OnGetValue += GetCutType;
            PropertyListGenerator.AddProperty("Type", _cutTypeProperty);
        }
Пример #21
0
        protected override void BuildInterface()
        {
            _heightProperty             = new DoublePropertyTabItem();
            _heightProperty.OnSetValue += SetHeight;
            _heightProperty.OnGetValue += GetHeight;
            //_heightProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent, FunctionNames.BoxHeightConstraint));
            //_heightProperty.OnLockClicked += OnHeightLocked;

            PropertyListGenerator.AddProperty("Height", _heightProperty);

            base.BuildInterface();
        }
        protected override void BuildInterface()
        {
            _shapesProperty             = new ListShapesTabItem();
            _shapesProperty.OnGetValue += OnGetShapes;
            PropertyListGenerator.AddProperty("Shapes", _shapesProperty);

            _constraintsProperty             = new ListPropertyTabItem();
            _constraintsProperty.OnGetValue += OnGetConstraints;
            PropertyListGenerator.AddProperty("Constraints", _constraintsProperty);
            _newConstraintsProperty             = new AvailableConstraintsTabItem(120);
            _newConstraintsProperty.OnGetValue += OnGetPossibleConstraints;
            PropertyListGenerator.AddProperty("Add Constraints", _newConstraintsProperty);
        }
Пример #23
0
        protected override void BuildInterface()
        {
            _heightProperty             = new DoublePropertyTabItem();
            _heightProperty.OnSetValue += SetInternalRadius;
            _heightProperty.OnGetValue += GetInternalRadius;

            PropertyListGenerator.AddProperty("Depth", _heightProperty);

            _extrudeTypeProperty             = new DropDownPropertyTabItem(_extrudeTypes);
            _extrudeTypeProperty.OnSetValue += SetExtrudeType;
            _extrudeTypeProperty.OnGetValue += GetExtrudeType;
            PropertyListGenerator.AddProperty("Type", _extrudeTypeProperty);
        }
Пример #24
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);
        }
Пример #25
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);
        }
Пример #26
0
        protected override void BuildInterface()
        {
            var widthProperty = new DoublePropertyTabItem();

            widthProperty.OnSetValue += SetWidthValue;
            widthProperty.OnGetValue += GetWidthValue;
            PropertyListGenerator.AddProperty("Width", widthProperty);

            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += SetHeightValue;
            lengthProperty.OnGetValue += GetHeightValue;
            PropertyListGenerator.AddProperty("Length", lengthProperty);
        }
        protected override void BuildInterface()
        {
            _widthProperty             = new DoublePropertyTabItem();
            _widthProperty.OnSetValue += SetWidthValue;
            _widthProperty.OnGetValue += GetWidthValue;
            //_widthProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                FunctionNames.RectangleWidthConstraint));
            //_widthProperty.OnLockClicked = WidthLocked;
            PropertyListGenerator.AddProperty("Width", _widthProperty);

            _lengthProperty             = new DoublePropertyTabItem();
            _lengthProperty.OnSetValue += SetHeightValue;
            _lengthProperty.OnGetValue += GetHeightValue;
            //_lengthProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                 FunctionNames.RectangleHeightConstraint));
            //_lengthProperty.OnLockClicked += LengthLocked;
            PropertyListGenerator.AddProperty(PropertyDescriptorsResources.CircleRangeConstraintTab_Length,
                                              _lengthProperty);
        }
Пример #28
0
        protected override void BuildInterface()
        {
            _minorRadiusProperty             = new DoublePropertyTabItem();
            _minorRadiusProperty.OnSetValue += SetMinorRadius;
            _minorRadiusProperty.OnGetValue += GetMinorRadius;
            //_minorRadiusProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                      FunctionNames.
            //                                                                          EllipseMinorRadiusConstraint));
            _minorRadiusProperty.OnLockClicked += OnMinorRadiusLocked;
            PropertyListGenerator.AddProperty("Minor radius", _minorRadiusProperty);

            _majorRadiusProperty             = new DoublePropertyTabItem();
            _majorRadiusProperty.OnSetValue += SetMajorRadius;
            _majorRadiusProperty.OnGetValue += GetMajorRadius;
            //_majorRadiusProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                      FunctionNames.
            //                                                                          EllipseMajorRadiusConstraint));
            _majorRadiusProperty.OnLockClicked += OnMajorRadiusLocked;
            PropertyListGenerator.AddProperty("Major radius", _majorRadiusProperty);
        }
Пример #29
0
        protected override void BuildInterface()
        {
            _internalRadiusProperty             = new DoublePropertyTabItem();
            _internalRadiusProperty.OnSetValue += SetInternalRadius;
            _internalRadiusProperty.OnGetValue += GetInternalRadius;
            //_internalRadiusProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                         FunctionNames.
            //                                                                             TorusMinorRangeConstraint));
            //_internalRadiusProperty.OnLockClicked += InternalRadiusLocked;
            PropertyListGenerator.AddProperty("Internal radius", _internalRadiusProperty);

            _externalRadiusProperty             = new DoublePropertyTabItem();
            _externalRadiusProperty.OnSetValue += SetExternalRadius;
            _externalRadiusProperty.OnGetValue += GetEternalRadius;
            //_externalRadiusProperty.OnLockClicked += ExternalRadiusLocked;
            //_externalRadiusProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                         FunctionNames.
            //                                                                             TorusMajorRangeConstraint));
            PropertyListGenerator.AddProperty("External radius", _externalRadiusProperty);
        }
Пример #30
0
        protected override void BuildInterface()
        {
            _lengthProperty = new DoublePropertyTabItem();
            _lengthProperty.OnGetValue += GetRadiusValue;
            _lengthProperty.OnSetValue += SetRadiusValue;
            PropertyListGenerator.AddProperty(PropertyDescriptorsResources.CircleTab_Range, _lengthProperty);

            _startAngleProperty = new DoublePropertyTabItem();
            _startAngleProperty.OnGetValue += GetStartAngleValue;
            _startAngleProperty.OnSetValue += SetStartAngleValue;

            PropertyListGenerator.AddProperty(PropertyDescriptorsResources.ArcTab_StartAngle, _startAngleProperty);

            _endAngleProperty = new DoublePropertyTabItem();
            _endAngleProperty.OnGetValue += GetEndAngleValue;
            _endAngleProperty.OnSetValue += SetEndAngleValue;

            PropertyListGenerator.AddProperty(PropertyDescriptorsResources.ArcTab_EndAngle, _endAngleProperty);
            _internalAngleProperty = new DoublePropertyTabItem();
            _internalAngleProperty.OnGetValue += GetInternalAngleValue;
            _internalAngleProperty.OnSetValue += SetInternalAngleValue;
            PropertyListGenerator.AddProperty(PropertyDescriptorsResources.ArcTab_InternalAngle, _internalAngleProperty);
        }