Ejemplo n.º 1
0
        private void PreviewCut()
        {
            if (CutType == CutTypes.ThroughAll)
            {
                _cutNode[2].Integer = (int)ExtrusionTypes.MidPlane;
                _cutNode[1].Real    = 10000;
            }
            if (CutType == CutTypes.ToDepth)
            {
                _cutNode[2].Integer = (int)ExtrusionTypes.ToDepth;
                _cutNode[1].Real    = CutDepth;
            }
            _cutNode.Color = Color.White;
            _cutNode.ExecuteFunction();

            _view.Update();
        }
Ejemplo n.º 2
0
        /// <summary>
        ///   Called when the user selects a label in the object tree view.
        /// </summary>
        /// <param name = "label"></param>
        private void TreeViewSelectedLabel(Node label)
        {
            // Store the current selected level
            _currentLabel = label;

            if (label == null)
            {
                return;
            }
            TreeViewHoverLabel(label);

            // Display the shape properties in the property grid, even if it is not a visible element
            _wpfPropertyView.OnSelectNode(label);
            _nodeSelectInput.OnSelect(label);

            _view.Update();
        }