コード例 #1
0
        private void BuildAreaProperty()
        {
            var areaProperty = new DoublePropertyTabItem();

            areaProperty.OnGetValue += OnGetAreaValueHandler;
            PropertyListGenerator.AddProperty("A", areaProperty);
        }
コード例 #2
0
        private void BuildElasticModulusProperty()
        {
            var elasticModulusProperty = new DoublePropertyTabItem();

            elasticModulusProperty.OnGetValue += OnGetElasticModulusValueHandler;
            PropertyListGenerator.AddProperty("E", elasticModulusProperty);
        }
コード例 #3
0
        private void BuildInertiaMomentProperty()
        {
            var inertiaMomentProperty = new DoublePropertyTabItem();

            inertiaMomentProperty.OnGetValue += OnGetInertiaMomentValueHandler;
            PropertyListGenerator.AddProperty("Iz", inertiaMomentProperty);
        }
コード例 #4
0
 protected override void BuildInterface()
 {
     _angleProperty             = new DoublePropertyTabItem();
     _angleProperty.OnSetValue += SetInternalRadius;
     _angleProperty.OnGetValue += GetInternalRadius;
     PropertyListGenerator.AddProperty("Radius", _angleProperty);
 }
コード例 #5
0
        private void BuildLengthProperty()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnGetValue += OnGetLengthValueHandler;
            PropertyListGenerator.AddProperty("Length", lengthProperty);
        }
コード例 #6
0
 protected override void BuildInterface()
 {
     _lengthProperty             = new DoublePropertyTabItem();
     _lengthProperty.OnSetValue += SetYValue;
     _lengthProperty.OnGetValue += GetYValue;
     PropertyListGenerator.AddProperty(PropertyDescriptorsResources.VerticalLineTab_X, _lengthProperty);
 }
コード例 #7
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);
        }
コード例 #8
0
 protected override void BuildInterface()
 {
     _lengthProperty             = new DoublePropertyTabItem();
     _lengthProperty.OnSetValue += SetAngleValue;
     _lengthProperty.OnGetValue += GetAngleValue;
     PropertyListGenerator.AddProperty("Length", _lengthProperty);
 }
コード例 #9
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);
        }
コード例 #10
0
        protected override void BuildInterface()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += SetLength;
            lengthProperty.OnGetValue += GetLength;
            PropertyListGenerator.AddProperty("Distance", lengthProperty);
        }
コード例 #11
0
        protected override void BuildInterface()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += SetValue;
            lengthProperty.OnGetValue += GetValue;
            PropertyListGenerator.AddProperty(_itemTitle, lengthProperty);
        }
コード例 #12
0
        protected override void BuildInterface()
        {
            var lengthProperty = new DoublePropertyTabItem();

            lengthProperty.OnSetValue += OnSetLengthValueHandler;
            lengthProperty.OnGetValue += OnGetLengthValueHandler;
            PropertyListGenerator.AddProperty("Length", lengthProperty);
        }
コード例 #13
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);
 }
コード例 #14
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);
        }
コード例 #15
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);
        }
コード例 #16
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();
        }
コード例 #17
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);
        }
コード例 #18
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);
        }
コード例 #19
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);
        }
コード例 #20
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);
        }
コード例 #21
0
        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);
        }
コード例 #22
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);
        }
コード例 #23
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);
        }
コード例 #24
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);
        }
コード例 #25
0
        protected override void BuildInterface()
        {
            _radiusProperty             = new DoublePropertyTabItem();
            _radiusProperty.OnSetValue += SetRadius;
            _radiusProperty.OnGetValue += GetRadius;
            //_radiusProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                 FunctionNames.CylinderRadiusConstraint));
            //_radiusProperty.OnLockClicked += OnRadiusLocked;
            PropertyListGenerator.AddProperty("Radius", _radiusProperty);

            _lengthProperty             = new DoublePropertyTabItem();
            _lengthProperty.OnSetValue += SetLength;
            _lengthProperty.OnGetValue += GetLength;
            //_lengthProperty.ShowLockImage(NodeBuilderUtils.IsRefencedByShape(Parent,
            //                                                                 FunctionNames.CylinderHeightConstraint));
            //_lengthProperty.OnLockClicked += OnHeightLocked;
            PropertyListGenerator.AddProperty("Height", _lengthProperty);

            _angleProperty             = new DoublePropertyTabItem();
            _angleProperty.OnSetValue += SetAngle;
            _angleProperty.OnGetValue += GetAngle;
            PropertyListGenerator.AddProperty("Angle", _angleProperty);
        }
コード例 #26
0
 protected override void BuildInterface()
 {
     _lengthProperty             = new DoublePropertyTabItem();
     _lengthProperty.OnGetValue += GetRadiusValue;
     PropertyListGenerator.AddProperty(PropertyDescriptorsResources.CircleTab_Range, _lengthProperty);
 }